Skip to content
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

fix name and description bm25 search #160

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cpr_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_MAJOR = "1"
_MINOR = "10"
_PATCH = "0"
_PATCH = "1"
_SUFFIX = ""

VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR)
Expand Down
8 changes: 4 additions & 4 deletions src/cpr_sdk/yql_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ def build_search_term(self) -> str:
return """
(
{"targetHits": 1000} weakAnd(
family_name contains(@query_string),
family_description contains(@query_string),
family_name_index contains(@query_string),
family_description_index contains(@query_string),
text_block contains(@query_string)
)
)
Expand All @@ -71,8 +71,8 @@ def build_search_term(self) -> str:
(
(
{"targetHits": 1000} weakAnd(
family_name contains(@query_string),
family_description contains(@query_string),
family_name_index contains(@query_string),
family_description_index contains(@query_string),
text_block contains(@query_string)
)
) or (
Expand Down
Loading