-
Notifications
You must be signed in to change notification settings - Fork 512
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
MOD-2972: Initial support for multi-value text #2819
Conversation
''' | ||
|
||
|
||
def expect_undef_order(query : Query): |
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.
Unbound name: Name Query
is used but not defined in the current scope.
Reply with "@sonatype-lift help" for info about LiftBot commands.
Reply with "@sonatype-lift ignore" to tell LiftBot to leave out the above finding from this PR.
Reply with "@sonatype-lift ignoreall" to tell LiftBot to leave out all the findings from this PR and from the status bar in Github.
When talking to LiftBot, you need to refresh the page to see its response. Click here to get to know more about LiftBot commands.
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
Codecov Report
@@ Coverage Diff @@
## master #2819 +/- ##
==========================================
+ Coverage 81.92% 81.96% +0.03%
==========================================
Files 180 180
Lines 29264 29425 +161
==========================================
+ Hits 23974 24117 +143
- Misses 5290 5308 +18
Continue to review full report at Codecov.
|
@@ -727,6 +726,7 @@ def testconfigMultiTextOffsetDeltaSlopNeg(env): | |||
err_msg = 'module init should fail due to invalid module configuration' | |||
|
|||
env.assertIsNotNone(err_msg) | |||
env = Env() |
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.
Why do you creating a new env here?
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.
It was getting a
ConnectionRefusedError: [Errno 111] Connection refused
And then
redis.exceptions.RedisClusterException: Redis Cluster cannot be connected. Please provide at least one reachable node.
got error on cluster info, will try again, Error 99 connecting to localhost:6379. Cannot assign requested address.
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.
So you are hiding the test failure?
* WIP initial support for multi-value text * Add test for non-text values * WIP sorting * WIP Add JSON API V2 and avoid SORTABLE with multi value * add tests and avoid failing SORTABLE * check undefined ordering * Add FT config option MULTI_TEXT_OFFSET_DELTA * cleanups * code review with Ariel (1) * More fixes and code review with Ariel * Fix from review: rename config * [skip ci] Fix from review: refactor querying jsonpath info (1) * Fix from review: refactor querying jsonpath info (2) * Rename test file and fix log message typo * Add test for Boolean TAG * Fail index creation on an invalid jsonpath * Fix order in testMultiTagBool * Remove duplicated entries from JSON API V2 * Make JSON API versions incremental * Make JSON API versions incremental (2) * API cleanup * Rename API pathIsStatic to pathIsSingle * update readies * Add alternative expected depending on ReJSON version * Fixes from Meir's review (1) * update readies and increase no_output_timeout * Add score to see ordering in failed test * Fix test for coordinator * Fix test for coordinator * Fix test for coordinator (2) * Fix tests (order and moduleArgs config param) * Iterate a json array without parsing a jsonpath * Skip score test in cluster * Fixes from Meir's review (2) - single Env per test, run on coord * Fixes from Meir's review (2) - revert timeout * Try skip MULTI_TEXT_SLOP config tests on cluster * Fix MULTI_TEXT_SLOP config tests on cluster * Fix MULTI_TEXT_SLOP config tests on cluster (2) * update readies
* WIP initial support for multi-value text * Add test for non-text values * WIP sorting * WIP Add JSON API V2 and avoid SORTABLE with multi value * add tests and avoid failing SORTABLE * check undefined ordering * Add FT config option MULTI_TEXT_OFFSET_DELTA * cleanups * code review with Ariel (1) * More fixes and code review with Ariel * Fix from review: rename config * [skip ci] Fix from review: refactor querying jsonpath info (1) * Fix from review: refactor querying jsonpath info (2) * Rename test file and fix log message typo * Add test for Boolean TAG * Fail index creation on an invalid jsonpath * Fix order in testMultiTagBool * Remove duplicated entries from JSON API V2 * Make JSON API versions incremental * Make JSON API versions incremental (2) * API cleanup * Rename API pathIsStatic to pathIsSingle * update readies * Add alternative expected depending on ReJSON version * Fixes from Meir's review (1) * update readies and increase no_output_timeout * Add score to see ordering in failed test * Fix test for coordinator * Fix test for coordinator * Fix test for coordinator (2) * Fix tests (order and moduleArgs config param) * Iterate a json array without parsing a jsonpath * Skip score test in cluster * Fixes from Meir's review (2) - single Env per test, run on coord * Fixes from Meir's review (2) - revert timeout * Try skip MULTI_TEXT_SLOP config tests on cluster * Fix MULTI_TEXT_SLOP config tests on cluster * Fix MULTI_TEXT_SLOP config tests on cluster (2) * update readies (cherry picked from commit 602ae4b)
Indexing and Searching TEXT with single or multi value
Marked with label
pr:break
since invalid JSONPath will now fail index creation (when a RedisJSON with JSON API V2 is loaded)Limitations:
SLOP
andINORDER
cannot be used (since the order of the values is not well defined)null
values are skipped, and any other value type is causing an indexing failureSORTBY
is only sorting by the first valueHIGHLIGHT
supportRETURN
of a Schema attribute, whose JSONPath leads to multiple values, returns only the first value (as a JSON String)RETURN
instead of a Schema attribute, all values are returned (as a JSON String)More details:
MULTI_TEXT_SLOP
(at module load-time)Followup PR's: