hermes-client-python 1.4.20__tar.gz → 1.4.21__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hermes-client-python
3
- Version: 1.4.20
3
+ Version: 1.4.21
4
4
  Summary: Async Python client for Hermes search server
5
5
  Project-URL: Homepage, https://github.com/SpaceFrontiers/hermes
6
6
  Project-URL: Repository, https://github.com/SpaceFrontiers/hermes
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "hermes-client-python"
7
- version = "1.4.20"
7
+ version = "1.4.21"
8
8
  description = "Async Python client for Hermes search server"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -247,6 +247,7 @@ class HermesClient:
247
247
  dense_vector: tuple[str, list[float]] | None = None,
248
248
  nprobe: int = 0,
249
249
  rerank_factor: int = 0,
250
+ heap_factor: float = 1.0,
250
251
  combiner: str = "sum",
251
252
  limit: int = 10,
252
253
  offset: int = 0,
@@ -263,6 +264,7 @@ class HermesClient:
263
264
  dense_vector: Dense vector query as (field, vector) tuple
264
265
  nprobe: Number of clusters to probe for dense vector (IVF indexes)
265
266
  rerank_factor: Re-ranking factor for dense vector search
267
+ heap_factor: Approximate search factor for sparse vectors (1.0=exact, 0.8=faster)
266
268
  combiner: Score combiner for multi-value fields: "sum", "max", or "avg"
267
269
  limit: Maximum number of results
268
270
  offset: Offset for pagination
@@ -309,6 +311,7 @@ class HermesClient:
309
311
  dense_vector=dense_vector,
310
312
  nprobe=nprobe,
311
313
  rerank_factor=rerank_factor,
314
+ heap_factor=heap_factor,
312
315
  combiner=combiner,
313
316
  )
314
317
 
@@ -518,6 +521,7 @@ def _build_query(
518
521
  dense_vector: tuple[str, list[float]] | None = None,
519
522
  nprobe: int = 0,
520
523
  rerank_factor: int = 0,
524
+ heap_factor: float = 1.0,
521
525
  combiner: str = "sum",
522
526
  ) -> pb.Query:
523
527
  """Build a protobuf Query from parameters."""
@@ -548,7 +552,11 @@ def _build_query(
548
552
  field, indices, values = sparse_vector
549
553
  return pb.Query(
550
554
  sparse_vector=pb.SparseVectorQuery(
551
- field=field, indices=indices, values=values, combiner=combiner_value
555
+ field=field,
556
+ indices=indices,
557
+ values=values,
558
+ combiner=combiner_value,
559
+ heap_factor=heap_factor,
552
560
  )
553
561
  )
554
562
 
@@ -556,7 +564,10 @@ def _build_query(
556
564
  field, text = sparse_text
557
565
  return pb.Query(
558
566
  sparse_vector=pb.SparseVectorQuery(
559
- field=field, text=text, combiner=combiner_value
567
+ field=field,
568
+ text=text,
569
+ combiner=combiner_value,
570
+ heap_factor=heap_factor,
560
571
  )
561
572
  )
562
573
 
@@ -0,0 +1,112 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: hermes.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'hermes.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+
26
+
27
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0chermes.proto\x12\x06hermes\"\x88\x02\n\x05Query\x12!\n\x04term\x18\x01 \x01(\x0b\x32\x11.hermes.TermQueryH\x00\x12\'\n\x07\x62oolean\x18\x02 \x01(\x0b\x32\x14.hermes.BooleanQueryH\x00\x12#\n\x05\x62oost\x18\x03 \x01(\x0b\x32\x12.hermes.BoostQueryH\x00\x12\x1f\n\x03\x61ll\x18\x04 \x01(\x0b\x32\x10.hermes.AllQueryH\x00\x12\x32\n\rsparse_vector\x18\x05 \x01(\x0b\x32\x19.hermes.SparseVectorQueryH\x00\x12\x30\n\x0c\x64\x65nse_vector\x18\x06 \x01(\x0b\x32\x18.hermes.DenseVectorQueryH\x00\x42\x07\n\x05query\"\x94\x01\n\x11SparseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0f\n\x07indices\x18\x02 \x03(\r\x12\x0e\n\x06values\x18\x03 \x03(\x02\x12\x0c\n\x04text\x18\x04 \x01(\t\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\x12\x13\n\x0bheap_factor\x18\x06 \x01(\x02\"\x86\x01\n\x10\x44\x65nseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\x0e\n\x06nprobe\x18\x03 \x01(\r\x12\x15\n\rrerank_factor\x18\x04 \x01(\r\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\"(\n\tTermQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04term\x18\x02 \x01(\t\"k\n\x0c\x42ooleanQuery\x12\x1b\n\x04must\x18\x01 \x03(\x0b\x32\r.hermes.Query\x12\x1d\n\x06should\x18\x02 \x03(\x0b\x32\r.hermes.Query\x12\x1f\n\x08must_not\x18\x03 \x03(\x0b\x32\r.hermes.Query\"9\n\nBoostQuery\x12\x1c\n\x05query\x18\x01 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\"\n\n\x08\x41llQuery\"x\n\rSearchRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x1c\n\x05query\x18\x02 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05limit\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\r\x12\x16\n\x0e\x66ields_to_load\x18\x05 \x03(\t\"\xca\x01\n\tSearchHit\x12\x0e\n\x06\x64oc_id\x18\x01 \x01(\r\x12\r\n\x05score\x18\x02 \x01(\x02\x12-\n\x06\x66ields\x18\x03 \x03(\x0b\x32\x1d.hermes.SearchHit.FieldsEntry\x12,\n\x0eordinal_scores\x18\x04 \x03(\x0b\x32\x14.hermes.OrdinalScore\x1a\x41\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue:\x02\x38\x01\".\n\x0cOrdinalScore\x12\x0f\n\x07ordinal\x18\x01 \x01(\r\x12\r\n\x05score\x18\x02 \x01(\x02\"\xdb\x01\n\nFieldValue\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\r\n\x03u64\x18\x02 \x01(\x04H\x00\x12\r\n\x03i64\x18\x03 \x01(\x03H\x00\x12\r\n\x03\x66\x36\x34\x18\x04 \x01(\x01H\x00\x12\x15\n\x0b\x62ytes_value\x18\x05 \x01(\x0cH\x00\x12-\n\rsparse_vector\x18\x06 \x01(\x0b\x32\x14.hermes.SparseVectorH\x00\x12+\n\x0c\x64\x65nse_vector\x18\x07 \x01(\x0b\x32\x13.hermes.DenseVectorH\x00\x12\x14\n\njson_value\x18\x08 \x01(\tH\x00\x42\x07\n\x05value\"/\n\x0cSparseVector\x12\x0f\n\x07indices\x18\x01 \x03(\r\x12\x0e\n\x06values\x18\x02 \x03(\x02\"\x1d\n\x0b\x44\x65nseVector\x12\x0e\n\x06values\x18\x01 \x03(\x02\"V\n\x0eSearchResponse\x12\x1f\n\x04hits\x18\x01 \x03(\x0b\x32\x11.hermes.SearchHit\x12\x12\n\ntotal_hits\x18\x02 \x01(\r\x12\x0f\n\x07took_ms\x18\x03 \x01(\x04\"8\n\x12GetDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0e\n\x06\x64oc_id\x18\x02 \x01(\r\"\x91\x01\n\x13GetDocumentResponse\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\'.hermes.GetDocumentResponse.FieldsEntry\x1a\x41\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue:\x02\x38\x01\")\n\x13GetIndexInfoRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"b\n\x14GetIndexInfoResponse\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x10\n\x08num_docs\x18\x02 \x01(\r\x12\x14\n\x0cnum_segments\x18\x03 \x01(\r\x12\x0e\n\x06schema\x18\x04 \x01(\t\"8\n\x12\x43reateIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\"&\n\x13\x43reateIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"=\n\nFieldEntry\x12\x0c\n\x04name\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue\"3\n\rNamedDocument\x12\"\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x12.hermes.FieldEntry\"Z\n\x1a\x42\x61tchIndexDocumentsRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12(\n\tdocuments\x18\x02 \x03(\x0b\x32\x15.hermes.NamedDocument\"I\n\x1b\x42\x61tchIndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\x12\x13\n\x0b\x65rror_count\x18\x02 \x01(\r\"N\n\x14IndexDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\"\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x12.hermes.FieldEntry\"/\n\x16IndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\"#\n\rCommitRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"3\n\x0e\x43ommitResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x10\n\x08num_docs\x18\x02 \x01(\r\"\'\n\x11\x46orceMergeRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\";\n\x12\x46orceMergeResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0cnum_segments\x18\x02 \x01(\r\"(\n\x12\x44\x65leteIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"&\n\x13\x44\x65leteIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08*J\n\x12MultiValueCombiner\x12\x10\n\x0c\x43OMBINER_SUM\x10\x00\x12\x10\n\x0c\x43OMBINER_MAX\x10\x01\x12\x10\n\x0c\x43OMBINER_AVG\x10\x02\x32\xdb\x01\n\rSearchService\x12\x37\n\x06Search\x12\x15.hermes.SearchRequest\x1a\x16.hermes.SearchResponse\x12\x46\n\x0bGetDocument\x12\x1a.hermes.GetDocumentRequest\x1a\x1b.hermes.GetDocumentResponse\x12I\n\x0cGetIndexInfo\x12\x1b.hermes.GetIndexInfoRequest\x1a\x1c.hermes.GetIndexInfoResponse2\xce\x03\n\x0cIndexService\x12\x46\n\x0b\x43reateIndex\x12\x1a.hermes.CreateIndexRequest\x1a\x1b.hermes.CreateIndexResponse\x12P\n\x0eIndexDocuments\x12\x1c.hermes.IndexDocumentRequest\x1a\x1e.hermes.IndexDocumentsResponse(\x01\x12^\n\x13\x42\x61tchIndexDocuments\x12\".hermes.BatchIndexDocumentsRequest\x1a#.hermes.BatchIndexDocumentsResponse\x12\x37\n\x06\x43ommit\x12\x15.hermes.CommitRequest\x1a\x16.hermes.CommitResponse\x12\x43\n\nForceMerge\x12\x19.hermes.ForceMergeRequest\x1a\x1a.hermes.ForceMergeResponse\x12\x46\n\x0b\x44\x65leteIndex\x12\x1a.hermes.DeleteIndexRequest\x1a\x1b.hermes.DeleteIndexResponseb\x06proto3')
28
+
29
+ _globals = globals()
30
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hermes_pb2', _globals)
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ DESCRIPTOR._loaded_options = None
34
+ _globals['_SEARCHHIT_FIELDSENTRY']._loaded_options = None
35
+ _globals['_SEARCHHIT_FIELDSENTRY']._serialized_options = b'8\001'
36
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._loaded_options = None
37
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_options = b'8\001'
38
+ _globals['_MULTIVALUECOMBINER']._serialized_start=2699
39
+ _globals['_MULTIVALUECOMBINER']._serialized_end=2773
40
+ _globals['_QUERY']._serialized_start=25
41
+ _globals['_QUERY']._serialized_end=289
42
+ _globals['_SPARSEVECTORQUERY']._serialized_start=292
43
+ _globals['_SPARSEVECTORQUERY']._serialized_end=440
44
+ _globals['_DENSEVECTORQUERY']._serialized_start=443
45
+ _globals['_DENSEVECTORQUERY']._serialized_end=577
46
+ _globals['_TERMQUERY']._serialized_start=579
47
+ _globals['_TERMQUERY']._serialized_end=619
48
+ _globals['_BOOLEANQUERY']._serialized_start=621
49
+ _globals['_BOOLEANQUERY']._serialized_end=728
50
+ _globals['_BOOSTQUERY']._serialized_start=730
51
+ _globals['_BOOSTQUERY']._serialized_end=787
52
+ _globals['_ALLQUERY']._serialized_start=789
53
+ _globals['_ALLQUERY']._serialized_end=799
54
+ _globals['_SEARCHREQUEST']._serialized_start=801
55
+ _globals['_SEARCHREQUEST']._serialized_end=921
56
+ _globals['_SEARCHHIT']._serialized_start=924
57
+ _globals['_SEARCHHIT']._serialized_end=1126
58
+ _globals['_SEARCHHIT_FIELDSENTRY']._serialized_start=1061
59
+ _globals['_SEARCHHIT_FIELDSENTRY']._serialized_end=1126
60
+ _globals['_ORDINALSCORE']._serialized_start=1128
61
+ _globals['_ORDINALSCORE']._serialized_end=1174
62
+ _globals['_FIELDVALUE']._serialized_start=1177
63
+ _globals['_FIELDVALUE']._serialized_end=1396
64
+ _globals['_SPARSEVECTOR']._serialized_start=1398
65
+ _globals['_SPARSEVECTOR']._serialized_end=1445
66
+ _globals['_DENSEVECTOR']._serialized_start=1447
67
+ _globals['_DENSEVECTOR']._serialized_end=1476
68
+ _globals['_SEARCHRESPONSE']._serialized_start=1478
69
+ _globals['_SEARCHRESPONSE']._serialized_end=1564
70
+ _globals['_GETDOCUMENTREQUEST']._serialized_start=1566
71
+ _globals['_GETDOCUMENTREQUEST']._serialized_end=1622
72
+ _globals['_GETDOCUMENTRESPONSE']._serialized_start=1625
73
+ _globals['_GETDOCUMENTRESPONSE']._serialized_end=1770
74
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_start=1061
75
+ _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_end=1126
76
+ _globals['_GETINDEXINFOREQUEST']._serialized_start=1772
77
+ _globals['_GETINDEXINFOREQUEST']._serialized_end=1813
78
+ _globals['_GETINDEXINFORESPONSE']._serialized_start=1815
79
+ _globals['_GETINDEXINFORESPONSE']._serialized_end=1913
80
+ _globals['_CREATEINDEXREQUEST']._serialized_start=1915
81
+ _globals['_CREATEINDEXREQUEST']._serialized_end=1971
82
+ _globals['_CREATEINDEXRESPONSE']._serialized_start=1973
83
+ _globals['_CREATEINDEXRESPONSE']._serialized_end=2011
84
+ _globals['_FIELDENTRY']._serialized_start=2013
85
+ _globals['_FIELDENTRY']._serialized_end=2074
86
+ _globals['_NAMEDDOCUMENT']._serialized_start=2076
87
+ _globals['_NAMEDDOCUMENT']._serialized_end=2127
88
+ _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_start=2129
89
+ _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_end=2219
90
+ _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_start=2221
91
+ _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_end=2294
92
+ _globals['_INDEXDOCUMENTREQUEST']._serialized_start=2296
93
+ _globals['_INDEXDOCUMENTREQUEST']._serialized_end=2374
94
+ _globals['_INDEXDOCUMENTSRESPONSE']._serialized_start=2376
95
+ _globals['_INDEXDOCUMENTSRESPONSE']._serialized_end=2423
96
+ _globals['_COMMITREQUEST']._serialized_start=2425
97
+ _globals['_COMMITREQUEST']._serialized_end=2460
98
+ _globals['_COMMITRESPONSE']._serialized_start=2462
99
+ _globals['_COMMITRESPONSE']._serialized_end=2513
100
+ _globals['_FORCEMERGEREQUEST']._serialized_start=2515
101
+ _globals['_FORCEMERGEREQUEST']._serialized_end=2554
102
+ _globals['_FORCEMERGERESPONSE']._serialized_start=2556
103
+ _globals['_FORCEMERGERESPONSE']._serialized_end=2615
104
+ _globals['_DELETEINDEXREQUEST']._serialized_start=2617
105
+ _globals['_DELETEINDEXREQUEST']._serialized_end=2657
106
+ _globals['_DELETEINDEXRESPONSE']._serialized_start=2659
107
+ _globals['_DELETEINDEXRESPONSE']._serialized_end=2697
108
+ _globals['_SEARCHSERVICE']._serialized_start=2776
109
+ _globals['_SEARCHSERVICE']._serialized_end=2995
110
+ _globals['_INDEXSERVICE']._serialized_start=2998
111
+ _globals['_INDEXSERVICE']._serialized_end=3460
112
+ # @@protoc_insertion_point(module_scope)
@@ -1,110 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: hermes.proto
5
- # Protobuf Python Version: 6.31.1
6
- """Generated protocol buffer code."""
7
- from google.protobuf import descriptor as _descriptor
8
- from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
- from google.protobuf import symbol_database as _symbol_database
11
- from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 31,
16
- 1,
17
- '',
18
- 'hermes.proto'
19
- )
20
- # @@protoc_insertion_point(imports)
21
-
22
- _sym_db = _symbol_database.Default()
23
-
24
-
25
-
26
-
27
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0chermes.proto\x12\x06hermes\"\x88\x02\n\x05Query\x12!\n\x04term\x18\x01 \x01(\x0b\x32\x11.hermes.TermQueryH\x00\x12\'\n\x07\x62oolean\x18\x02 \x01(\x0b\x32\x14.hermes.BooleanQueryH\x00\x12#\n\x05\x62oost\x18\x03 \x01(\x0b\x32\x12.hermes.BoostQueryH\x00\x12\x1f\n\x03\x61ll\x18\x04 \x01(\x0b\x32\x10.hermes.AllQueryH\x00\x12\x32\n\rsparse_vector\x18\x05 \x01(\x0b\x32\x19.hermes.SparseVectorQueryH\x00\x12\x30\n\x0c\x64\x65nse_vector\x18\x06 \x01(\x0b\x32\x18.hermes.DenseVectorQueryH\x00\x42\x07\n\x05query\"\x7f\n\x11SparseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0f\n\x07indices\x18\x02 \x03(\r\x12\x0e\n\x06values\x18\x03 \x03(\x02\x12\x0c\n\x04text\x18\x04 \x01(\t\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\"\x86\x01\n\x10\x44\x65nseVectorQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\x0e\n\x06nprobe\x18\x03 \x01(\r\x12\x15\n\rrerank_factor\x18\x04 \x01(\r\x12,\n\x08\x63ombiner\x18\x05 \x01(\x0e\x32\x1a.hermes.MultiValueCombiner\"(\n\tTermQuery\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x0c\n\x04term\x18\x02 \x01(\t\"k\n\x0c\x42ooleanQuery\x12\x1b\n\x04must\x18\x01 \x03(\x0b\x32\r.hermes.Query\x12\x1d\n\x06should\x18\x02 \x03(\x0b\x32\r.hermes.Query\x12\x1f\n\x08must_not\x18\x03 \x03(\x0b\x32\r.hermes.Query\"9\n\nBoostQuery\x12\x1c\n\x05query\x18\x01 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05\x62oost\x18\x02 \x01(\x02\"\n\n\x08\x41llQuery\"x\n\rSearchRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x1c\n\x05query\x18\x02 \x01(\x0b\x32\r.hermes.Query\x12\r\n\x05limit\x18\x03 \x01(\r\x12\x0e\n\x06offset\x18\x04 \x01(\r\x12\x16\n\x0e\x66ields_to_load\x18\x05 \x03(\t\"\x9c\x01\n\tSearchHit\x12\x0e\n\x06\x64oc_id\x18\x01 \x01(\r\x12\r\n\x05score\x18\x02 \x01(\x02\x12-\n\x06\x66ields\x18\x03 \x03(\x0b\x32\x1d.hermes.SearchHit.FieldsEntry\x1a\x41\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue:\x02\x38\x01\"\xdb\x01\n\nFieldValue\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\r\n\x03u64\x18\x02 \x01(\x04H\x00\x12\r\n\x03i64\x18\x03 \x01(\x03H\x00\x12\r\n\x03\x66\x36\x34\x18\x04 \x01(\x01H\x00\x12\x15\n\x0b\x62ytes_value\x18\x05 \x01(\x0cH\x00\x12-\n\rsparse_vector\x18\x06 \x01(\x0b\x32\x14.hermes.SparseVectorH\x00\x12+\n\x0c\x64\x65nse_vector\x18\x07 \x01(\x0b\x32\x13.hermes.DenseVectorH\x00\x12\x14\n\njson_value\x18\x08 \x01(\tH\x00\x42\x07\n\x05value\"/\n\x0cSparseVector\x12\x0f\n\x07indices\x18\x01 \x03(\r\x12\x0e\n\x06values\x18\x02 \x03(\x02\"\x1d\n\x0b\x44\x65nseVector\x12\x0e\n\x06values\x18\x01 \x03(\x02\"V\n\x0eSearchResponse\x12\x1f\n\x04hits\x18\x01 \x03(\x0b\x32\x11.hermes.SearchHit\x12\x12\n\ntotal_hits\x18\x02 \x01(\r\x12\x0f\n\x07took_ms\x18\x03 \x01(\x04\"8\n\x12GetDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0e\n\x06\x64oc_id\x18\x02 \x01(\r\"\x91\x01\n\x13GetDocumentResponse\x12\x37\n\x06\x66ields\x18\x01 \x03(\x0b\x32\'.hermes.GetDocumentResponse.FieldsEntry\x1a\x41\n\x0b\x46ieldsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue:\x02\x38\x01\")\n\x13GetIndexInfoRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"b\n\x14GetIndexInfoResponse\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x10\n\x08num_docs\x18\x02 \x01(\r\x12\x14\n\x0cnum_segments\x18\x03 \x01(\r\x12\x0e\n\x06schema\x18\x04 \x01(\t\"8\n\x12\x43reateIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\x0e\n\x06schema\x18\x02 \x01(\t\"&\n\x13\x43reateIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\"=\n\nFieldEntry\x12\x0c\n\x04name\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.hermes.FieldValue\"3\n\rNamedDocument\x12\"\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x12.hermes.FieldEntry\"Z\n\x1a\x42\x61tchIndexDocumentsRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12(\n\tdocuments\x18\x02 \x03(\x0b\x32\x15.hermes.NamedDocument\"I\n\x1b\x42\x61tchIndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\x12\x13\n\x0b\x65rror_count\x18\x02 \x01(\r\"N\n\x14IndexDocumentRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\x12\"\n\x06\x66ields\x18\x02 \x03(\x0b\x32\x12.hermes.FieldEntry\"/\n\x16IndexDocumentsResponse\x12\x15\n\rindexed_count\x18\x01 \x01(\r\"#\n\rCommitRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"3\n\x0e\x43ommitResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x10\n\x08num_docs\x18\x02 \x01(\r\"\'\n\x11\x46orceMergeRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\";\n\x12\x46orceMergeResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0cnum_segments\x18\x02 \x01(\r\"(\n\x12\x44\x65leteIndexRequest\x12\x12\n\nindex_name\x18\x01 \x01(\t\"&\n\x13\x44\x65leteIndexResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08*J\n\x12MultiValueCombiner\x12\x10\n\x0c\x43OMBINER_SUM\x10\x00\x12\x10\n\x0c\x43OMBINER_MAX\x10\x01\x12\x10\n\x0c\x43OMBINER_AVG\x10\x02\x32\xdb\x01\n\rSearchService\x12\x37\n\x06Search\x12\x15.hermes.SearchRequest\x1a\x16.hermes.SearchResponse\x12\x46\n\x0bGetDocument\x12\x1a.hermes.GetDocumentRequest\x1a\x1b.hermes.GetDocumentResponse\x12I\n\x0cGetIndexInfo\x12\x1b.hermes.GetIndexInfoRequest\x1a\x1c.hermes.GetIndexInfoResponse2\xce\x03\n\x0cIndexService\x12\x46\n\x0b\x43reateIndex\x12\x1a.hermes.CreateIndexRequest\x1a\x1b.hermes.CreateIndexResponse\x12P\n\x0eIndexDocuments\x12\x1c.hermes.IndexDocumentRequest\x1a\x1e.hermes.IndexDocumentsResponse(\x01\x12^\n\x13\x42\x61tchIndexDocuments\x12\".hermes.BatchIndexDocumentsRequest\x1a#.hermes.BatchIndexDocumentsResponse\x12\x37\n\x06\x43ommit\x12\x15.hermes.CommitRequest\x1a\x16.hermes.CommitResponse\x12\x43\n\nForceMerge\x12\x19.hermes.ForceMergeRequest\x1a\x1a.hermes.ForceMergeResponse\x12\x46\n\x0b\x44\x65leteIndex\x12\x1a.hermes.DeleteIndexRequest\x1a\x1b.hermes.DeleteIndexResponseb\x06proto3')
28
-
29
- _globals = globals()
30
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
31
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'hermes_pb2', _globals)
32
- if not _descriptor._USE_C_DESCRIPTORS:
33
- DESCRIPTOR._loaded_options = None
34
- _globals['_SEARCHHIT_FIELDSENTRY']._loaded_options = None
35
- _globals['_SEARCHHIT_FIELDSENTRY']._serialized_options = b'8\001'
36
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._loaded_options = None
37
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_options = b'8\001'
38
- _globals['_MULTIVALUECOMBINER']._serialized_start=2583
39
- _globals['_MULTIVALUECOMBINER']._serialized_end=2657
40
- _globals['_QUERY']._serialized_start=25
41
- _globals['_QUERY']._serialized_end=289
42
- _globals['_SPARSEVECTORQUERY']._serialized_start=291
43
- _globals['_SPARSEVECTORQUERY']._serialized_end=418
44
- _globals['_DENSEVECTORQUERY']._serialized_start=421
45
- _globals['_DENSEVECTORQUERY']._serialized_end=555
46
- _globals['_TERMQUERY']._serialized_start=557
47
- _globals['_TERMQUERY']._serialized_end=597
48
- _globals['_BOOLEANQUERY']._serialized_start=599
49
- _globals['_BOOLEANQUERY']._serialized_end=706
50
- _globals['_BOOSTQUERY']._serialized_start=708
51
- _globals['_BOOSTQUERY']._serialized_end=765
52
- _globals['_ALLQUERY']._serialized_start=767
53
- _globals['_ALLQUERY']._serialized_end=777
54
- _globals['_SEARCHREQUEST']._serialized_start=779
55
- _globals['_SEARCHREQUEST']._serialized_end=899
56
- _globals['_SEARCHHIT']._serialized_start=902
57
- _globals['_SEARCHHIT']._serialized_end=1058
58
- _globals['_SEARCHHIT_FIELDSENTRY']._serialized_start=993
59
- _globals['_SEARCHHIT_FIELDSENTRY']._serialized_end=1058
60
- _globals['_FIELDVALUE']._serialized_start=1061
61
- _globals['_FIELDVALUE']._serialized_end=1280
62
- _globals['_SPARSEVECTOR']._serialized_start=1282
63
- _globals['_SPARSEVECTOR']._serialized_end=1329
64
- _globals['_DENSEVECTOR']._serialized_start=1331
65
- _globals['_DENSEVECTOR']._serialized_end=1360
66
- _globals['_SEARCHRESPONSE']._serialized_start=1362
67
- _globals['_SEARCHRESPONSE']._serialized_end=1448
68
- _globals['_GETDOCUMENTREQUEST']._serialized_start=1450
69
- _globals['_GETDOCUMENTREQUEST']._serialized_end=1506
70
- _globals['_GETDOCUMENTRESPONSE']._serialized_start=1509
71
- _globals['_GETDOCUMENTRESPONSE']._serialized_end=1654
72
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_start=993
73
- _globals['_GETDOCUMENTRESPONSE_FIELDSENTRY']._serialized_end=1058
74
- _globals['_GETINDEXINFOREQUEST']._serialized_start=1656
75
- _globals['_GETINDEXINFOREQUEST']._serialized_end=1697
76
- _globals['_GETINDEXINFORESPONSE']._serialized_start=1699
77
- _globals['_GETINDEXINFORESPONSE']._serialized_end=1797
78
- _globals['_CREATEINDEXREQUEST']._serialized_start=1799
79
- _globals['_CREATEINDEXREQUEST']._serialized_end=1855
80
- _globals['_CREATEINDEXRESPONSE']._serialized_start=1857
81
- _globals['_CREATEINDEXRESPONSE']._serialized_end=1895
82
- _globals['_FIELDENTRY']._serialized_start=1897
83
- _globals['_FIELDENTRY']._serialized_end=1958
84
- _globals['_NAMEDDOCUMENT']._serialized_start=1960
85
- _globals['_NAMEDDOCUMENT']._serialized_end=2011
86
- _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_start=2013
87
- _globals['_BATCHINDEXDOCUMENTSREQUEST']._serialized_end=2103
88
- _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_start=2105
89
- _globals['_BATCHINDEXDOCUMENTSRESPONSE']._serialized_end=2178
90
- _globals['_INDEXDOCUMENTREQUEST']._serialized_start=2180
91
- _globals['_INDEXDOCUMENTREQUEST']._serialized_end=2258
92
- _globals['_INDEXDOCUMENTSRESPONSE']._serialized_start=2260
93
- _globals['_INDEXDOCUMENTSRESPONSE']._serialized_end=2307
94
- _globals['_COMMITREQUEST']._serialized_start=2309
95
- _globals['_COMMITREQUEST']._serialized_end=2344
96
- _globals['_COMMITRESPONSE']._serialized_start=2346
97
- _globals['_COMMITRESPONSE']._serialized_end=2397
98
- _globals['_FORCEMERGEREQUEST']._serialized_start=2399
99
- _globals['_FORCEMERGEREQUEST']._serialized_end=2438
100
- _globals['_FORCEMERGERESPONSE']._serialized_start=2440
101
- _globals['_FORCEMERGERESPONSE']._serialized_end=2499
102
- _globals['_DELETEINDEXREQUEST']._serialized_start=2501
103
- _globals['_DELETEINDEXREQUEST']._serialized_end=2541
104
- _globals['_DELETEINDEXRESPONSE']._serialized_start=2543
105
- _globals['_DELETEINDEXRESPONSE']._serialized_end=2581
106
- _globals['_SEARCHSERVICE']._serialized_start=2660
107
- _globals['_SEARCHSERVICE']._serialized_end=2879
108
- _globals['_INDEXSERVICE']._serialized_start=2882
109
- _globals['_INDEXSERVICE']._serialized_end=3344
110
- # @@protoc_insertion_point(module_scope)