Search
, and
a list of searches, respectively. You can use them directly to perform
searches or retrieve co-mentions. For example:
Search
object has the following attributes:
id
: The unique identifier of the search, a 32-character hexadecimal
string. This is only set if the search has been saved.name
: The name of the search. This is only set if the search has
been saved.query
: The query object that represents the search criteria. You
will typically never access this attribute directly.company_shared_permission
:
SharePermission
value that represents the share status of this saved
search within the company. The only valid values are
SharePermission.READ
, if the search is currently shared with the
company, or None
if it’s not shared or the search has not even been
saved. See the section sharing_searches
for more details.share_with_company
method on
the search object. For example:
company_shared_permission
attribute of the search
object will be set to SharePermission.READ
. To share all searches, you
can iterate through them:
unshare_with_company
method:
delete
method
on the search object if you have it, or by calling the delete
method
on the bigdata.search
object with the search ID as an argument if you
don’t have the search object. For example: