Answer the question
In order to leave comments, you need to log in
How to organize a search in a social network?
At a new job, they gave me a project (social network) to finalize after another developer. Laravel backend project on Vue.js frontend.
A social network project that has groups, some events, friends, etc.
Now the task is to implement not a simple search (I mean this is not simple for me).
The user should enter something into the line, and as a result, he should get:
1. His friends, for whom a match was found (search by name)
2. People with whom he corresponded today
3. Other users in alphabetical order.
4. Groups in which he is the owner
5. Groups in which he is ....
And so on in general.
I don't even know where to start. Probably it will be necessary to use ElasticSearch. Whereas there to index all this data.
I don't expect a specific answer. I would like to hear something in general and in which direction to dig. And yes, any information would be helpful. Thank you.
Answer the question
In order to leave comments, you need to log in
google in search suggestions
Sphinx is better than Elastic on sale, Elastic is easier
theoretically, you can get rid of Postgres
indexes around the
easiest way - a bunch of indexes in Sphinx and parallel search in everything
A social network project that has groups, some events, friends, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question