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

Use Elasticsearch aggregations to calculate features #58

Open
ahalterman opened this issue Jul 9, 2018 · 0 comments
Open

Use Elasticsearch aggregations to calculate features #58

ahalterman opened this issue Jul 9, 2018 · 0 comments

Comments

@ahalterman
Copy link
Member

Right now, Mordecai calculates features like the number of results per country or the result with the most alternative names from the first 50 results that come back from the search. This isn't ideal, because it involves bringing all 50 results back, which is inefficient, and allows us to only look at the top 50.

Instead, use ES's aggregations to calculate that stuff directly on the server. I have this working for the number of results per country, but calculating the number of alternative names will require modifying the index to include that information.

Most importantly, making these changes will requires retraining the model since the values of the features will be different (and hopefully better).

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

No branches or pull requests

1 participant