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

Method has_fts

python/zvec/model/param/query.py:107–115  ·  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

105 return self.vector is not None and len(self.vector) > 0
106
107 def has_fts(self) -> bool:
108 """Check if the query contains an FTS (full-text search) condition.
109
110 Returns:
111 bool: True if `fts` is set with a query_string or match_string.
112 """
113 if self.fts is not None:
114 return bool(self.fts.query_string) or bool(self.fts.match_string)
115 return False
116
117 def _validate(self) -> None:
118 if self.field_name is None:

Callers 8

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

Calls

no outgoing calls

Tested by 4

test_no_ftsMethod · 0.76