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

Method _build_search_query

python/zvec/executor/query_executor.py:255–269  ·  view source on GitHub ↗
(
        self, ctx: QueryContext, query: Query, collection: _Collection
    )

Source from the content-addressed store, hash-verified

253 )
254
255 def _build_search_query(
256 self, ctx: QueryContext, query: Query, collection: _Collection
257 ) -> _SearchQuery:
258 query._validate()
259 search_query = self._build_base_search_query(ctx)
260 search_query.field_name = query.field_name
261 if query.param:
262 search_query.query_params = query.param
263
264 # set FTS query if provided
265 self._apply_fts(query, search_query)
266
267 if query.has_vector() or query.has_id():
268 self.set_query_vector(query, search_query, collection)
269 return search_query

Calls 6

_apply_ftsMethod · 0.95
set_query_vectorMethod · 0.95
_validateMethod · 0.80
has_idMethod · 0.80
has_vectorMethod · 0.45