full text search - Searching through user favorites with Elasticsearch -


We are using elastic search for the list of 100,000 documents. Users can find favorite items and we are currently using the DezangoHystack's related Circuitssetset to see the preferred table, but they execute a lot of SQL queries, those documents Filter the subset of, which searches through the user's favorite obscenity slows down.

To speed things up, I thought of adding a multivill field to each document (such as favorited_by ) and thought about storing users' primary key in it. , But since thousands of items can be popular, popular documents will grow.

Searching through a user's favorite sort seems like a problem. How is this done?

In elastic search I will store the favorites with that username for that favorite. By adding a filter in the query with the user name You can also use the username as a multipurpose field, it is not certain that if the scale of thousands of users on this scale, the benefit can be a favorite for a website if multiple users make the same choice. But I think I would like to have a favorite user.


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -