Skip to content

Commit

Permalink
Add m3ninx/AllQuery (#1478)
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek authored Mar 20, 2019
1 parent c7aeefd commit 170a3a7
Show file tree
Hide file tree
Showing 10 changed files with 439 additions and 30 deletions.
221 changes: 196 additions & 25 deletions src/m3ninx/generated/proto/querypb/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions src/m3ninx/generated/proto/querypb/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,16 @@ message DisjunctionQuery {
repeated Query queries = 1;
}

message AllQuery {
}

message Query {
oneof query {
TermQuery term = 1;
RegexpQuery regexp = 2;
NegationQuery negation = 3;
TermQuery term = 1;
RegexpQuery regexp = 2;
NegationQuery negation = 3;
ConjunctionQuery conjunction = 4;
DisjunctionQuery disjunction = 5;
AllQuery all = 6;
}
}
4 changes: 4 additions & 0 deletions src/m3ninx/idx/codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ func TestMarshal(t *testing.T) {
name string
query Query
}{
{
name: "all query",
query: NewAllQuery(),
},
{
name: "term query",
query: NewTermQuery([]byte("fruit"), []byte("apple")),
Expand Down
Loading

0 comments on commit 170a3a7

Please sign in to comment.