MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / SearchRowLocation

Class SearchRowLocation

couchbase/logic/search.py:794–809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

792
793@dataclass
794class SearchRowLocation:
795 field: str = None
796 term: str = None
797 position: UnsignedInt32 = None
798 start: UnsignedInt32 = None
799 end: UnsignedInt32 = None
800 array_positions: List[UnsignedInt32] = None
801
802 @classmethod
803 def from_server(cls, json_data: Dict[str, Any]) -> SearchRowLocation:
804 return cls(json_data.get('field'),
805 json_data.get('term'),
806 json_data.get('position'),
807 json_data.get('start_offset'),
808 json_data.get('end_offset'),
809 json_data.get('array_positions'))
810
811
812class SearchRowLocations:

Callers 1

getMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected