Available options to for a search (FTS) query. .. warning:: Importing options from ``couchbase.search`` is deprecated. All options should be imported from ``couchbase.options``. Args: timeout (timedelta, optional): The timeout for this operation. Defaults to global
| 1593 | |
| 1594 | |
| 1595 | class SearchOptions(SearchOptionsBase): |
| 1596 | """Available options to for a search (FTS) query. |
| 1597 | |
| 1598 | .. warning:: |
| 1599 | Importing options from ``couchbase.search`` is deprecated. |
| 1600 | All options should be imported from ``couchbase.options``. |
| 1601 | |
| 1602 | Args: |
| 1603 | timeout (timedelta, optional): The timeout for this operation. Defaults to global |
| 1604 | search query operation timeout. |
| 1605 | limit (int, optional): Specifies the limit to the number of results that should be returned. |
| 1606 | Defaults to None. |
| 1607 | skip (int, optional): Specifies the number of results to skip from the index before returning |
| 1608 | results. Defaults to None. |
| 1609 | explain (bool, optional): Configures whether the result should contain the execution plan for the |
| 1610 | search query. Defaults to False. |
| 1611 | fields (List[str], optional): Specifies the list of fields which should be searched. Defaults to None. |
| 1612 | highlight_style (:class:`~couchbase.search.HighlightStyle`, optional): Specifies the mode used for |
| 1613 | highlighting. Defaults to None. |
| 1614 | highlight_fields (List[str], optional): Specifies the list of fields that should be highlighted. |
| 1615 | Defaults to None. |
| 1616 | scan_consistency (:class:`~couchbase.search.SearchScanConsistency`, optional): Specifies the consistency |
| 1617 | requirements when executing the search query. |
| 1618 | facets (Dict[str, :class:`~couchbase.search.Facet`], optional): Specifies any facets that should be included |
| 1619 | in the search query. Defaults to None. |
| 1620 | client_context_id (str, optional): The returned client context id for this query. Defaults to None. |
| 1621 | disable_scoring (bool, optional): Specifies that scoring should be disabled. This improves performance but |
| 1622 | makes it impossible to sort based on how well a particular result scored. Defaults to False. |
| 1623 | include_locations (bool optional): If set to True, will include the locations in the search result. |
| 1624 | Defaults to False. |
| 1625 | sort (Union[List[str],List[:class:`~couchbase.search.Sort`]], optional): Specifies a list of fields or search |
| 1626 | :class:`~couchbase.search.Sort`'s to use when sorting the result sets. Defaults to None. |
| 1627 | scope_name (string, optional): Specifies the scope which should be searched as part of the search |
| 1628 | query. Defaults to None. |
| 1629 | collections (List[str], optional): Specifies the collections which should be searched as part of the search |
| 1630 | query. Defaults to None. |
| 1631 | consistent_with (:class:`~couchbase.mutation_state.MutationState`, optional): Specifies a |
| 1632 | :class:`~couchbase.mutation_state.MutationState` which the search query should be consistent with. |
| 1633 | Defaults to None. |
| 1634 | serializer (:class:`~couchbase.serializer.Serializer`, optional): Specifies an explicit serializer |
| 1635 | to use for this specific search query. Defaults to |
| 1636 | :class:`~couchbase.serializer.DefaultJsonSerializer`. |
| 1637 | raw (Dict[str, Any], optional): Specifies any additional parameters which should be passed to the search query |
| 1638 | engine when executing the search query. Defaults to None. |
| 1639 | show_request (bool, optional): Specifies if the search response should contain the request for the search query. Defaults to False. |
| 1640 | log_request (bool, optional): **UNCOMMITTED** Specifies if search request body should appear the log. Defaults to False. |
| 1641 | log_response (bool, optional): **UNCOMMITTED** Specifies if search response should appear in the log. Defaults to False. |
| 1642 | """ # noqa: E501 |
| 1643 | |
| 1644 | |
| 1645 | class VectorSearchOptions(VectorSearchOptionsBase): |
no outgoing calls