searchMeta method

Future<SearchMetaResult> searchMeta(
  1. String query, {
  2. int topK = 10,
  3. double vectorWeight = kDefaultVectorWeight,
  4. double bm25Weight = kDefaultBm25Weight,
  5. List<int>? sourceIds,
  6. int adjacentChunks = 0,
  7. String? collectionId,
})

Additive metadata-first low-level search lane.

Implementation

Future<SearchMetaResult> searchMeta(
  String query, {
  int topK = 10,
  double vectorWeight = kDefaultVectorWeight,
  double bm25Weight = kDefaultBm25Weight,
  List<int>? sourceIds,
  int adjacentChunks = 0,
  String? collectionId,
}) async {
  final service = await _serviceForCollection(collectionId);
  await _flushIndex(collectionId: collectionId);
  return service.searchMeta(
    query,
    topK: topK,
    vectorWeight: vectorWeight,
    bm25Weight: bm25Weight,
    sourceIds: sourceIds,
    adjacentChunks: adjacentChunks,
  );
}