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

Search: better results for single terms #7569

Merged
merged 2 commits into from Oct 23, 2020
Merged

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Oct 15, 2020

This makes use of the wildcard query when a single term is given, users can still have exact results by using the "word" syntax. This is under a feature flag.

Examples, having indexed the following "foo", "foo.bar", "bar.foo" "network", "two".

  • Searching for foo will return foo, foo.bar and bar.foo (before this it would return only foo)
  • Searching for two will return two and network (here exact matches have more priority) (before this it would return only two)
  • Searching for "two" will return two (same as before)

https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html

Based on #7568

@stsewd stsewd added the Needed: tests Tests are required label Oct 15, 2020
@stsewd stsewd removed the Needed: tests Tests are required label Oct 15, 2020
@stsewd stsewd requested a review from a team October 15, 2020 22:33
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like an interesting thing to test out 👍

@stsewd
Copy link
Member Author

stsewd commented Oct 19, 2020

Need to merge #7568 first

@stsewd stsewd merged commit c91555c into partial-results Oct 23, 2020
1 check passed
@stsewd stsewd deleted the single-terms branch October 23, 2020 18:32
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.

None yet

2 participants