Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Conversation

@froi
Copy link
Contributor

@froi froi commented Aug 20, 2018

Summary

Search improvements for better user experience. Also updates Elasticsearch queries to be compatible with versions 2.4, 5.x, and 6.x.

This PR fixes/implements the following bugs/features

Explain the motivation for making this change. What existing problem does the pull request solve?

Our search functionality was creating a horrible user experience. One of the main features of the site and API is the search functionality. These improvements promise to make these features better while creating a code foundation to iterate and add even more improvements.

Test plan (required)

Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes UI.

image

Closing issues

Closes #159, close #249

Froilan Irizarry added 3 commits August 19, 2018 20:17
- The query body has been simplified to use just the multi_match query with any filters that are passed in the query paramaters
- the over use of bool, should, and must queries was removed. This was throwing the _score result off by making elasticsearch aggregate scores in a erroneos way.
Multi_match query now has the type (best_match) explicit. More testing with over types could help improve the search results.
The name field is given the highest weight followed by the fulltext analyzed version of itself.
This change is focused on the repos index. It might be good to review the search being done with the terms index
- This makes the query compatible with versions 2.4, 5.x, and 6.x
@froi
Copy link
Contributor Author

froi commented Aug 20, 2018

@froi froi merged commit d206195 into master Aug 20, 2018
@froi froi deleted the search-improvements branch August 29, 2018 21:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search results don't always match search term Error when running with Elastic Search Version 6.x

2 participants