How can ElasticSearch be used to implement social search?

后端 未结 5 663
猫巷女王i
猫巷女王i 2021-01-30 03:15

I’m trying to create a business search with social features using ElasticSearch. I have a business directory, and users can interact with those businesses in different ways: b

5条回答
  •  [愿得一人]
    2021-01-30 04:07

    Just spitballing here but I think I'd want to Use a graph database like Neo4J where it would be trivial to do such a query as "businesses that my friends have checked into" and query both that database and elasticsearch at the same time and return results from your graph database first. Or you could just get the results of that graph query and match the results in elasticsearch (match the ids) then apply a query time boost to the elastic search results so that they floated to the top of the returned results.

提交回复
热议问题