Skip to content

Commit

Permalink
Add match all query (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
aprudhomme authored Oct 17, 2024
1 parent da0911e commit c96f916
Show file tree
Hide file tree
Showing 6 changed files with 1,678 additions and 1,569 deletions.
5 changes: 5 additions & 0 deletions clientlib/src/main/proto/yelp/nrtsearch/search.proto
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,10 @@ message SpanNearQuery {
bool inOrder = 3;
}

// A query that matches all documents.
message MatchAllQuery {
}

// Defines different types of QueryNodes.
enum QueryType {
NONE = 0;
Expand Down Expand Up @@ -570,6 +574,7 @@ message Query {
ConstantScoreQuery constantScoreQuery = 23;
GeoPolygonQuery geoPolygonQuery = 24;
SpanQuery spanQuery = 25;
MatchAllQuery matchAllQuery = 26;
}
}

Expand Down
11 changes: 11 additions & 0 deletions docs/queries/match_all.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Match All Query
==========================

A query that matches all documents.

Proto definition:

.. code-block::
message MatchAllQuery {
}
7 changes: 7 additions & 0 deletions grpc-gateway/luceneserver.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3902,6 +3902,10 @@
}
}
},
"luceneserverMatchAllQuery": {
"type": "object",
"description": "A query that matches all documents."
},
"luceneserverMatchOperator": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -4385,6 +4389,9 @@
},
"spanQuery": {
"$ref": "#/definitions/luceneserverSpanQuery"
},
"matchAllQuery": {
"$ref": "#/definitions/luceneserverMatchAllQuery"
}
},
"description": "Defines a full query consisting of a QueryNode which may be one of several types."
Expand Down
Loading

0 comments on commit c96f916

Please sign in to comment.