withIndex on an index declared
authorization: "indexed" enumerates readable rows directly in that index’s
order; on any other index it reads the range and checks each row.
Type parameters
Hierarchy
-
Pick<PopulationQueryInitializer<TableInfo>,"withSearchIndex"|"vectorSearch"> ↳SearchPopulationQueryInitializer
Methods
withSearchIndex
▸ withSearchIndex<IndexName>(indexName, searchFilter): SelectableOrderedQuery<TableInfo>
Type parameters
Parameters
Returns
SelectableOrderedQuery<TableInfo>
Inherited from
Pick.withSearchIndexvectorSearch
▸ vectorSearch<IndexName>(indexName, query): Promise<VectorSearchResult<DocumentByInfo<TableInfo>["_id"]>>
Exact top-k over a stored view’s complete current output, at this
function’s snapshot. The caller must be able to read every output row,
markings included, or the search refuses before ranking. A table ranks
through .visible().within(field, value).vectorSearch instead.
Type parameters
Parameters
Returns
Promise<VectorSearchResult<DocumentByInfo<TableInfo>["_id"]>>
Inherited from
Pick.vectorSearchrequire
▸ require(requirement): SearchPopulationQueryInitializer<TableInfo>
Parameters
Returns
SearchPopulationQueryInitializer<TableInfo>