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

ElasticSearch improvements (scoring, boosting, misspelling/fuzziness) #2340

Merged
merged 4 commits into from Feb 2, 2019

Conversation

Projects
None yet
2 participants
@qbo-tech
Copy link
Contributor

commented Feb 1, 2019

Short description and why it's useful

There's currently no way to customize which fields to search with, neither the weights (boost) for each field, nor fuzziness (misspelling) or custom scoring functions . The default query uses a "match_phrase_prefix" operator which is usually used as autocomplete-like feature, but lacks of some key Elastic key features like: fuzziness, custom scoring, misspelling (for instance if your query term is "Hodie" instead of "Hoodie", you'll get no results), etc.

We have made a few modifications so all these features can be customized via configuration file, giving the ability to make the search query more dynamic and powerful than the current functionality. It is now possible to define the searchable fields, how to sort them by attribute values, added fuzziness (for misspelling) an ability to add custom weights (boosts) to both function_score and attributes individually.

Missing Steps

  • Config documentation for customizing search params

Screenshots of visual changes before/after (if there are any)

Before:
image
After:
image

Upgrade Notes and Changelog

  • No upgrade steps required (100% backward compatibility)

Contribution and currently important rules acceptance

Jose and others added some commits Jan 31, 2019

@pkarw pkarw added this to the 1.8 milestone Feb 2, 2019

@pkarw pkarw merged commit 4144d0b into DivanteLtd:develop Feb 2, 2019

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.