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

Reworked search query #197

Merged
merged 1 commit into from Sep 23, 2020
Merged

Reworked search query #197

merged 1 commit into from Sep 23, 2020

Conversation

garbas
Copy link
Member

@garbas garbas commented Sep 23, 2020

  • still use multi_match but now with cross_fields type
  • add edge n-gram index field since cross_fields works only with match
    and this way we can have prefix support
  • suffix support is still supported as before by reversing the words in
    data and query
  • for query we now create variations of all multi_match queries. from 2
    words you get 4 queries, from 3 works you get 8 queries and so on.

fixes #183


This change is Reviewable

- still muse multi_match but now with cross_fields type
- add edge n-gram index field since cross_fields works only with match
  and this way we can have prefix support
- suffix support is still supported as before by reversing the words in
  data and query
- for query we now create variations of all multi_match queries. from 2
  words you get 4 queries, from 3 works you get 8 queries and so on.
@github-actions
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search of a split word not finding the non split word.
2 participants