-
Notifications
You must be signed in to change notification settings - Fork 556
[LLAPI] getter functions for score, language and stopwords list #2184
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
Codecov Report
@@ Coverage Diff @@
## master #2184 +/- ##
==========================================
+ Coverage 80.42% 80.45% +0.02%
==========================================
Files 150 150
Lines 22097 22123 +26
==========================================
+ Hits 17772 17798 +26
Misses 4325 4325
Continue to review full report at Codecov.
|
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.
👍
Some questions and comments
@@ -33,6 +33,12 @@ IndexSpec* RediSearch_CreateIndex(const char* name, const RSIndexOptions* option | |||
spec->indexer = NewIndexer(spec); | |||
} | |||
|
|||
if (options->score || options->lang) { |
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.
Isn't it better to get the score_default and lang_default out of the rule. There is no real meaning for rule when used from LLAPI...
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.
Since this requires a change to rdb, issue #2185 was opened to be done next time the rdb version is changed
* [LLAPI] get score, language and stopwords list * change API per review * add score and language to RSIndexOptions * fix sanitiser (cherry picked from commit 3ddf90e)
Fixes #2183