GRPC API
consumer_service.proto
Consumer
Consumer description
| Field | Type | Label | Description |
| consumer_name | string | | Consumer name |
| index_name | string | | Summa index_name |
CreateConsumerRequest
Request describe how new Consumer should be created
| Field | Type | Label | Description |
| bootstrap_servers | string | repeated | Kafka boostrap servers |
| group_id | string | | Kafka group ID |
| index_name | string | | Summa index_name which will ingest data from Kafka topics |
| consumer_name | string | | Consumer name, used for further referencing consumer in API and configs |
| topics | string | repeated | List of topics to consume |
CreateConsumerResponse
| Field | Type | Label | Description |
| consumer | Consumer | | |
DeleteConsumerRequest
| Field | Type | Label | Description |
| consumer_name | string | | |
DeleteConsumerResponse
| Field | Type | Label | Description |
| consumer_name | string | | |
GetConsumerRequest
| Field | Type | Label | Description |
| index_name | string | | |
| consumer_name | string | | |
GetConsumerResponse
| Field | Type | Label | Description |
| consumer | Consumer | | |
GetConsumersRequest
GetConsumersResponse
| Field | Type | Label | Description |
| consumers | Consumer | repeated | |
ConsumerApi
Manage ingestion data from Kafka
dag_pb.proto
PBLink
| Field | Type | Label | Description |
| hash | bytes | optional | binary CID (with no multibase prefix) of the target object |
| name | string | optional | UTF-8 string name |
| t_size | uint64 | optional | cumulative size of target object |
PBNode
| Field | Type | Label | Description |
| links | PBLink | repeated | refs to other objects |
| data | bytes | optional | opaque user data |
index_service.proto
AttachFileEngineRequest
Attach file engine request
AttachIndexRequest
Attach index request
AttachIndexResponse
Description of the attached index
AttachRemoteEngineRequest
Attach remote engine request
CacheConfig
| Field | Type | Label | Description |
| cache_size | uint64 | | Total cache size in bytes |
CommitIndexRequest
Store the state of index to the storage
| Field | Type | Label | Description |
| index_name | string | | |
| with_hotcache | bool | | |
CommitIndexResponse
Returned data from the commit command
| Field | Type | Label | Description |
| elapsed_secs | double | | Pure time spent for committing |
CopyDocumentsRequest
Copy documents from one index to another. Their schemes must be compatible
| Field | Type | Label | Description |
| source_index_name | string | | Where documents should be taken from |
| target_index_name | string | | Where documents should be copied to |
| conflict_strategy | ConflictStrategy | optional | How to deal with conflicts on unique fields. Recommended to set to DoNothing for large updates and maintain uniqueness in your application |
CopyDocumentsResponse
Copy documents response
| Field | Type | Label | Description |
| elapsed_secs | double | | |
| copied_documents | uint32 | | |
CopyIndexRequest
Request that changes index engine. Currently possible to convert File to IPFS
CopyIndexResponse
Response describing migrated index
CreateFileEngineRequest
CreateIndexRequest
Request for index creation
CreateIndexResponse
CreateMemoryEngineRequest
DeleteDocumentsRequest
| Field | Type | Label | Description |
| index_name | string | | |
| query | Query | | |
DeleteDocumentsResponse
| Field | Type | Label | Description |
| deleted_documents | uint64 | | |
DeleteIndexRequest
| Field | Type | Label | Description |
| index_name | string | | |
DeleteIndexResponse
| Field | Type | Label | Description |
| deleted_index_name | string | | |
DocumentsRequest
Request a stream of all documents from the index
| Field | Type | Label | Description |
| index_name | string | | |
| fields | string | repeated | |
| query_filter | Query | optional | |
DocumentsResponse
Single document from the index
| Field | Type | Label | Description |
| document | string | | |
FileEngineConfig
| Field | Type | Label | Description |
| path | string | | |
GetIndexRequest
| Field | Type | Label | Description |
| index_name | string | | |
GetIndexResponse
GetIndicesAliasesRequest
GetIndicesAliasesResponse
GetIndicesAliasesResponse.IndicesAliasesEntry
GetIndicesRequest
GetIndicesResponse
| Field | Type | Label | Description |
| index_names | string | repeated | |
IndexAttributes
| Field | Type | Label | Description |
| created_at | uint64 | | Timestamp when index has been created |
| unique_fields | string | repeated | Unique fields of the index. Summa maintains unique constraint on them and uses for deduplicating data |
| multi_fields | string | repeated | Multi fields is ones that may have multiple values and processed as lists. All other fields will be forcefully converted to singular value |
| description | string | optional | Text index description |
| conflict_strategy | ConflictStrategy | | |
| mapped_fields | MappedField | repeated | |
IndexDescription
Description containing Index metadata fields
IndexDocumentOperation
Indexing operations that contains document serialized in JSON format
| Field | Type | Label | Description |
| document | bytes | | |
IndexDocumentRequest
| Field | Type | Label | Description |
| index_name | string | | |
| document | bytes | | |
IndexDocumentResponse
IndexDocumentStreamRequest
IndexDocumentStreamResponse
IndexEngineConfig
Description of the IndexEngine responsible for managing files in the persistent storage
IndexOperation
Message that should be put in Kafka for ingesting by Summa consumers
LogMergePolicy
Merge policy for implementing LogMergePolicy
| Field | Type | Label | Description |
| is_frozen | bool | | Set if once merged segment should be left intact |
MappedField
| Field | Type | Label | Description |
| source_field | string | | |
| target_field | string | | |
MemoryEngineConfig
| Field | Type | Label | Description |
| schema | string | | Schema of the index for memory engine |
MergePolicy
Merge policy that describes how to merge committed segments
MergeSegmentsRequest
| Field | Type | Label | Description |
| index_name | string | | |
| segment_ids | string | repeated | |
MergeSegmentsResponse
| Field | Type | Label | Description |
| segment_id | string | optional | |
RemoteEngineConfig
Remote HTTP engine config
| Field | Type | Label | Description |
| method | string | | Which method should be used to request remote endpoint |
| url_template | string | | URL template which will be used to generate real URL by variables substitution |
| headers_template | RemoteEngineConfig.HeadersTemplateEntry | repeated | Headers template which will be used to generate real URL by variables substitution |
| cache_config | CacheConfig | | Description of the cache for the engine |
| timeout_ms | uint32 | optional | Timeout for the request |
SetIndexAliasRequest
| Field | Type | Label | Description |
| index_alias | string | | |
| index_name | string | | |
SetIndexAliasResponse
| Field | Type | Label | Description |
| old_index_name | string | optional | If set, equals to the previous alias of the index |
SortByField
TemporalMergePolicy
Merge policy for compressing old segments
| Field | Type | Label | Description |
| merge_older_then_secs | uint64 | | |
VacuumIndexRequest
| Field | Type | Label | Description |
| index_name | string | | |
| excluded_segments | string | repeated | |
VacuumIndexResponse
| Field | Type | Label | Description |
| freed_space_bytes | uint64 | | |
WarmupIndexRequest
| Field | Type | Label | Description |
| index_name | string | | |
| is_full | bool | | If set to false, only term dictionaries will be warmed, otherwise the entire index will be read. |
WarmupIndexResponse
| Field | Type | Label | Description |
| elapsed_secs | double | | Time spent in warming operation |
Compression
Compression library for store, implies on both performance and occupied disk space
| Name | Number | Description |
| None | 0 | |
| Zstd | 4 | |
| Zstd7 | 5 | |
| Zstd9 | 6 | |
| Zstd14 | 7 | |
| Zstd19 | 8 | |
| Zstd22 | 9 | |
ConflictStrategy
| Name | Number | Description |
| DO_NOTHING | 0 | |
| OVERWRITE_ALWAYS | 1 | |
| OVERWRITE | 2 | |
| MERGE | 3 | |
IndexApi
Manages indices
public_service.proto
PublicApi
Searches documents in the stored indices
query.proto
AggregationCollector
| Field | Type | Label | Description |
| aggregations | string | | |
AggregationCollectorOutput
| Field | Type | Label | Description |
| aggregation_results | string | | |
AllQuery
BooleanQuery
BooleanSubquery
| Field | Type | Label | Description |
| occur | Occur | | |
| query | Query | | |
BoostQuery
Collector
Collectors and CollectorOutputs
CollectorOutput
CountCollector
CountCollectorOutput
| Field | Type | Label | Description |
| count | uint32 | | |
DisjunctionMaxQuery
| Field | Type | Label | Description |
| disjuncts | Query | repeated | |
| tie_breaker | string | | |
DocumentsCollectorOutput
EmptyQuery
ExistsQuery
| Field | Type | Label | Description |
| field | string | | |
FacetCollector
| Field | Type | Label | Description |
| field | string | | |
| facets | string | repeated | |
FacetCollectorOutput
FacetCollectorOutput.FacetCountsEntry
Highlight
MatchQuery
MatchQueryBooleanShouldMode
MatchQueryDisjuctionMaxMode
| Field | Type | Label | Description |
| tie_breaker | float | | |
MoreLikeThisQuery
| Field | Type | Label | Description |
| document | string | | |
| min_doc_frequency | uint64 | optional | |
| max_doc_frequency | uint64 | optional | |
| min_term_frequency | uint64 | optional | |
| max_query_terms | uint64 | optional | |
| min_word_length | uint64 | optional | |
| max_word_length | uint64 | optional | |
| boost | string | optional | |
| stop_words | string | repeated | |
MorphologyConfig
| Field | Type | Label | Description |
| derive_tenses_coefficient | float | optional | |
| Field | Type | Label | Description |
| boost | float | optional | |
| fields | string | repeated | |
PhraseQuery
Query
Recursive query DSL
QueryParserConfig
QueryParserConfig.FieldAliasesEntry
QueryParserConfig.FieldBoostsEntry
QueryParserConfig.MorphologyConfigsEntry
QueryParserConfig.TermFieldMapperConfigsEntry
RandomDocument
Range
RangeQuery
RegexQuery
ReservoirSamplingCollector
| Field | Type | Label | Description |
| limit | uint32 | | |
| fields | string | repeated | |
| excluded_fields | string | repeated | |
ReservoirSamplingCollectorOutput
Score
| Field | Type | Label | Description |
| f64_score | double | | |
| u64_score | uint64 | | |
ScoredDocument
ScoredDocument.SnippetsEntry
Scorer
| Field | Type | Label | Description |
| eval_expr | string | | |
| order_by | string | | |
SearchRequest
| Field | Type | Label | Description |
| index_alias | string | | The index name or alias |
| query | Query | | Query DSL. Use MatchQuery to pass a free-form query |
| collectors | Collector | repeated | Every collector is responsible of processing and storing documents and/or their derivatives (like counters) to return them to the caller |
| is_fieldnorms_scoring_enabled | bool | optional | Is requiring fieldnorms needed for the query? |
| load_cache | bool | optional | |
| store_cache | bool | optional | |
SearchResponse
| Field | Type | Label | Description |
| elapsed_secs | double | | Time spent inside of search handler |
| collector_outputs | CollectorOutput | repeated | An array of collector outputs |
Snippet
TermFieldMapperConfig
| Field | Type | Label | Description |
| fields | string | repeated | |
TermQuery
TopDocsCollector
TopDocsCollector.SnippetConfigsEntry
Occur
| Name | Number | Description |
| should | 0 | |
| must | 1 | |
| must_not | 2 | |
reflection_service.proto
GetTopTermsRequest
GetTopTermsResponse
GetTopTermsResponse.PerSegmentEntry
SegmentTerms
| Field | Type | Label | Description |
| term_infos | TermInfo | repeated | |
TermInfo
ReflectionApi
Analyzes indices
search_service.proto
SearchApi
Searches documents in the stored indices
unixfs.proto
Data
| Field | Type | Label | Description |
| MimeType | string | optional | |
Data.DataType
| Name | Number | Description |
| Raw | 0 | |
| Directory | 1 | |
| File | 2 | |
| Metadata | 3 | |
| Symlink | 4 | |
| HAMTShard | 5 | |
utils.proto
Empty
Order
| Name | Number | Description |
| Asc | 0 | |
| Desc | 1 | |