MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / set_option

Method set_option

couchbase/logic/search.py:959–969  ·  view source on GitHub ↗

Set a raw option in the query. This option is encoded as part of the query parameters without any client-side verification. Use this for settings not directly exposed by the Python client. :param name: The name of the option :param value: The value o

(self, name, value)

Source from the content-addressed store, hash-verified

957 self.sort = sort
958
959 def set_option(self, name, value):
960 """
961 Set a raw option in the query. This option is encoded
962 as part of the query parameters without any client-side
963 verification. Use this for settings not directly exposed
964 by the Python client.
965
966 :param name: The name of the option
967 :param value: The value of the option
968 """
969 self._params[name] = value
970
971 def encode_vector_search(self) -> Optional[List[Dict[str, Any]]]:
972 if self._vector_search is None:

Callers 15

timeoutMethod · 0.95
metricsMethod · 0.95
limitMethod · 0.95
skipMethod · 0.95
explainMethod · 0.95
disable_scoringMethod · 0.95
include_locationsMethod · 0.95
fieldsMethod · 0.95
highlight_styleMethod · 0.95
highlight_fieldsMethod · 0.95
consistencyMethod · 0.95
consistent_withMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected