-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing fields to ES compatible Query API (#5098)
* Add missing fields to ES compatible Query API * [_source][1] schema * [docvalue][2] schema I've added additional fields as `serde_json::Value` to prevent complex struct definitions as we won't use them anyway. [1]: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/search-fields.html#source-filtering [2]: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html#docvalue-fields * Add missing multi match modes to ES compatible Query API According to [doc][1] multi_match has 6 modes. Best fields and Cross fields can be converted to Most fields as they close by logic and I couldn't find their implementations. BoolPrefix was implemented and I added it to the parser. Tests was extended to cover all cases, for that I changed a bit of structures and added missing traits implementations. [1]: https://opensearch.org/docs/latest/query-dsl/full-text/multi-match/#multi-match-query-types
- Loading branch information
Showing
5 changed files
with
218 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters