query
: A query object that represents the search criteria. It can contain several query filters combined with standard operators. More details in Query Filtersrerank_threshold
(Optional): A float between 0 and 1 for an optional re-ranking phase. More details in Rerank searchscope
(Optional): An object that filters the search results by content type (news, files, etc.). More details in Scope.date_range
(Optional): A date range object that specifies the time frame of the search. More details in Date Range.sortby
(Optional): An enum that specifies the sorting criteria of the search results, either bySortBy.DATE
orSortBy.RELEVANCE
.
The quickest way to test the Search Service is with the Search Quickstart GuideThen, you can explore the different search parameters (Query filters, Scope, Date Range, SortBy) on their respective pages.The search will return a list of documents, and the page Response - Document will show you how to access the document content.Finally, but not least, check out the Co-mentions feature. It will tell you which Knowledge Graph Objects (Entities, Topics, Sources, etc.) are mentioned the most in your search. That’s a quick way to see your query’s exposure!
The method
search.run(x)
requests x
documents with chunks. Suppose you prefer to control the number of retrieved chunks instead of documents. You can use the object ChunkLimit(y)
. Check out Retrieved limited chunks for more details.