You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifclean_value!=value:
# ES docs says:# "to prevent extremely slow wildcard queries, a wildcard# term should not start with one of the wildcards * or ?"# strip all wildcards from left and remove excess spacesstripped_value=' '.join([i.lstrip('*?') foriinvalue.split()]).strip()
# if we still have a valid value, append as wildcard queryifstripped_value:
queries.append({"wildcard": {name: stripped_value}})
Note: It would still change Plone global search. It supports both ? and * wildcard characters, but in my opinion adding extra functionality to global search is still better then stripping it away.
The text was updated successfully, but these errors were encountered:
Current version of EZCTextIndex does not support wildcard search.
To be exact it strips
*
wildcard from the end of the search value:The
*
wildcard is added by Plone global search, thus current version changes how global search works!ElasticSearch supports wildcard query since version 0.90.
Suggestion:
At the end of the
EZCTextIndex.get_query
method:Note: It would still change Plone global search. It supports both
?
and*
wildcard characters, but in my opinion adding extra functionality to global search is still better then stripping it away.The text was updated successfully, but these errors were encountered: