-
Notifications
You must be signed in to change notification settings - Fork 198
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
POC: using a single kNN opensearch field #509
Conversation
return f"{searchable_attribs_filter}{contextualised_user_filter}" | ||
|
||
|
||
def build_searchable_attributes_filter(vector_properties_to_search: Sequence) -> str: |
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.
@vicilliar Logic for a creating searchable attributes filter
src/marqo/tensor_search/backend.py
Outdated
@@ -87,21 +87,7 @@ def add_customer_field_properties(config: Config, index_name: str, | |||
multimodal_customer_field_names = set([(field_name, "_") for field_name in list(multimodal_combination_fields)]) | |||
knn_field_names = knn_field_names.union(multimodal_customer_field_names) | |||
|
|||
body = { |
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 called once per field?
# {'Description': {'type': 'text'}, {'Description': {'type': 'text'}, | ||
# 'Genre': {'type': 'text'}, 'Genre': {'type': 'text'}, | ||
# 'Title': {'type': 'text'}, 'Title': {'type': 'text'}, | ||
# 'my_combination_field': {'properties': {'lexical_field': {'type': 'text'}, -----> 'my_combination_field.lexical_field': {'type': 'text'}, |
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.
what if the field name has a .
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Have unit tests been run against this PR? (Has there also been any additional testing?)
Related Python client changes (link commit/PR here)
Related documentation changes (link commit/PR here)
Other information:
Please check if the PR fulfills these requirements