MCPcopy Create free account
hub / github.com/alibaba/zvec / has_fts

Method has_fts

python/zvec/model/param/query.py:119–127  ·  view source on GitHub ↗

Check if the query contains an FTS (full-text search) condition. Returns: bool: True if `fts` is set with a query_string or match_string.

(self)

Source from the content-addressed store, hash-verified

117 return self.vector is not None and len(self.vector) > 0
118
119 def has_fts(self) -> bool:
120 """Check if the query contains an FTS (full-text search) condition.
121
122 Returns:
123 bool: True if `fts` is set with a query_string or match_string.
124 """
125 if self.fts is not None:
126 return bool(self._fts_query_string()) or bool(self._fts_match_string())
127 return False
128
129 def _fts_query_string(self) -> str:
130 return self._fts_string(

Callers 8

test_no_ftsMethod · 0.95
_validateMethod · 0.95
group_by_queryMethod · 0.80
_apply_ftsMethod · 0.80

Calls 2

_fts_query_stringMethod · 0.95
_fts_match_stringMethod · 0.95