hyperboria/nexus/meta_api/proto/search_service.proto
the-superpirate 43be16e4bc - [nexus] Update schema
- [nexus] Remove outdated protos
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Development
  - [nexus] Refactor views
  - [nexus] Update aiosumma
  - [nexus] Add tags
  - [nexus] Development
  - [nexus] Update repository
  - [nexus] Update repository
  - [nexus] Update dependencies
  - [nexus] Update dependencies
  - [nexus] Fixes for MetaAPI
  - [nexus] Support for new queries
  - [nexus] Adopt new versions of search
  - [nexus] Improving Nexus
  - [nexus] Various fixes
  - [nexus] Add profile
  - [nexus] Fixes for ingestion
  - [nexus] Refactorings and bugfixes
  - [idm] Add profile methods
  - [nexus] Fix stalled nexus-meta bugs
  - [nexus] Various bugfixes
  - [nexus] Restore IDM API functionality

GitOrigin-RevId: a0842345a6dde5b321279ab5510a50c0def0e71a
2022-09-02 19:15:47 +03:00

46 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package nexus.meta_api.proto;
import "nexus/models/proto/typed_document.proto";
import "summa/proto/search_service.proto";
service Search {
rpc search (SearchRequest) returns (SearchResponse) {}
rpc meta_search (MetaSearchRequest) returns (MetaSearchResponse) {}
}
message ScoredDocument {
nexus.models.proto.TypedDocument typed_document = 1;
double score = 2;
uint32 position = 3;
map<string, summa.proto.Snippet> snippets = 4;
}
message MetaSearchRequest {
repeated string index_aliases = 1;
string query = 2;
map<string, float> languages = 3;
repeated summa.proto.Collector collectors = 4;
repeated string query_tags = 5;
}
message MetaSearchResponse {
repeated summa.proto.CollectorOutput collector_outputs = 1;
}
message SearchRequest {
repeated string index_aliases = 1;
string query = 2;
uint32 page = 3;
uint32 page_size = 4;
string language = 5;
repeated string query_tags = 6;
}
message SearchResponse {
repeated ScoredDocument scored_documents = 1;
bool has_next = 2;
uint32 count = 3;
string query_language = 4;
}