-
Notifications
You must be signed in to change notification settings - Fork 0
Add SimpleQueryString As Alternate Syntax For Simple_Query_String #162
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
Conversation
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
Codecov Report
@@ Coverage Diff @@
## integ-add-legacy-syntax-for-simple_query_string-function #162 +/- ##
===========================================================================================
Coverage ? 95.71%
Complexity ? 3351
===========================================================================================
Files ? 337
Lines ? 9117
Branches ? 672
===========================================================================================
Hits ? 8726
Misses ? 334
Partials ? 57
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: GabeFernandez310 <gabrielf@bitquilltech.com>
| multiFieldRelevanceFunctionName | ||
| : MULTI_MATCH | ||
| | SIMPLE_QUERY_STRING | ||
| | SIMPLEQUERYSTRING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legacy engine never had such syntax (with square brackets []): func(['field']...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct. For whatever reason, it doesn't appear at that simplequerystring was included.
We should just close this PR without merging... I don't think it's needed.
| ``simplequerystring([field_expression+], query_expression[, option=<option_value>]*)`` | ||
|
|
||
| The simplequerystring function maps to the simple_query_string query used in search engine, to return the documents that match a provided text, number, date or boolean value with a given field or fields. This is an alternate syntax for `simple_query_string`_ | ||
| The **^** lets you *boost* certain fields. Boosts are multipliers that weigh matches in one field more heavily than matches in other fields. The syntax allows to specify the fields in double quotes, single quotes, in backtick or even without any wrap. All fields search using star ``"*"`` is also available (star symbol should be wrapped). The weight is optional and should be specified using after the field name, it could be delimeted by the `caret` character or by whitespace. Please, refer to examples below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitspace?
|
|
||
| ``simplequerystring([field_expression+], query_expression[, option=<option_value>]*)`` | ||
|
|
||
| The simplequerystring function maps to the simple_query_string query used in search engine, to return the documents that match a provided text, number, date or boolean value with a given field or fields. This is an alternate syntax for `simple_query_string`_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please mention that this is added for backwards compatibility
| multiFieldRelevanceFunctionName | ||
| : MULTI_MATCH | ||
| | SIMPLE_QUERY_STRING | ||
| | SIMPLEQUERYSTRING |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is correct. For whatever reason, it doesn't appear at that simplequerystring was included.
We should just close this PR without merging... I don't think it's needed.
* Add geojson support for XYPoint Signed-off-by: Heemin Kim <heemin@amazon.com>
Description
Adds
simplequerystringas alternate syntax for thesimple_query_stringfunction which currently exists in the SQL plugin.Issues Resolved
AOS-765
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.