forked from opensearch-project/sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Support match_phrase filter function in SQL and PPL #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 42 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
7f5ae1d
Support match_phrase in AST expressions
35da9e9
Support match_phrase in PPL syntax
cee993f
Added MATCH_QUERY to the list of supported functions in SQL parser.
Yury-Fridlyand dac5a7c
Support slop parameter for relevancy functions
5e88bc9
Typo fix for previous commit. Expanded list of MATCH_* function argum…
Yury-Fridlyand 0e5a9a9
Integration tests for match_test in PPL
b508fc5
Support slop option
ce2142e
Tests to verify that PPL parser supports match_phrase
21ed960
Refactor and style fixes
c705d35
Refactor and fix style in OpenSearchFunctions.java
60e03b9
Style fixes for OpenSearchFunctionsTest.java
a2a1b21
Add tests for `MATCH` and `MATCH_PHRASE` functions.
Yury-Fridlyand 76bdde0
Typo fix.
Yury-Fridlyand 4a65a55
Fix style and minor refactor in PPLSyntaxParserTest.java
f6d1038
Minor test improvements
Yury-Fridlyand 126651c
Parameterized test for match_phrase parsing
db81145
Merge pull request #44 from Bit-Quill/dev-match_phrase-#185-sql-synta…
MaxKsyunz b4f0b8a
Merge branch 'dev-match_phrase-#185' of https://github.com/Bit-Quill/…
b4fc092
Add `MATCH_PHRASE` function to the function repository.
Yury-Fridlyand 0b930c8
Finally added `MATCH_PHASE` query support to `FilterQueryBuilder`.
Yury-Fridlyand 89fa0ed
Typo fix + EOL fix
Yury-Fridlyand 6aedf4f
Typo fix
Yury-Fridlyand 61f2155
Adding tests for `FilterQueryBuilder` for `MATCH_PHRASE`. Some tests …
Yury-Fridlyand 958cffb
Address PR feedback.
Yury-Fridlyand dd9776a
Add documentation for `MATCH_PHRASE` function.
Yury-Fridlyand 05e5952
Remove duplicate definition of match_phrase in DSL.java
5bf470c
Generate supported signatures for match and match_phrases
dda36f9
Simplify match_phrase test.
3a1d9b1
Some sample queries with match_phrase for parser test
81ce4c7
Update PPL documentation.
63009a0
Update query samples in docs. Add a new table to doctest to match the…
Yury-Fridlyand c0bf42b
Recover `FUZZY_REWRITE` - was deleted by mistake.
Yury-Fridlyand b39ea26
Add missing file for `63009a05`.
Yury-Fridlyand 87c42a7
Use constant seed to produce repeatable samples
29338de
Enable integration tests for match_phrase in PPL
f86d4ca
Fix code style.
Yury-Fridlyand c42088a
Make generateAndTestQueries() product consistent results.
a52e9f5
use generateQueries to generate samples for match_phrase
957b46e
Fix finction signature list. Typo fix for `5bf470c7`.
Yury-Fridlyand ed98a49
Fix code styling.
Yury-Fridlyand 5a31fbf
Minor style changes.
4ca8a15
Add newline at the end of file.
d3bd5df
Simplify MatchPhraseQuery and add unit tests.
a15dacc
Remove unused imports.
7c3ff01
Change data used by WhereCommandIT
8d7039a
Style update for OpenSearchFunctions
87b6038
100% test coverage for MatchPhraseQuery
d2a45cc
Fix imports in WhereCommandIT
e6f7e2f
Move final variables to class constants in OpenSearchFunctions
0006dd3
Fix checkstyle failure.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| {"id": 1, "author": "Alan Alexander Milne", "title": "The House at Pooh Corner"} | ||
| {"id": 2, "author": "Alan Alexander Milne", "title": "Winnie-the-Pooh"} |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.