V
V
VitaliyBorys2018-09-26 17:10:40
Search engines
VitaliyBorys, 2018-09-26 17:10:40

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

2 answer(s)
D
Dimonchik, 2018-09-26
@dimonchik2013

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

M
Maxim Timofeev, 2018-09-26
@webinar

A social network project that has groups, some events, friends, etc.

For me, such projects are like a litmus test for the insanity of the customer
Make sure that you are ready to pay and do not expect that the task will be ready tomorrow, otherwise run.
Probably, but it's worth thinking about the numbers first. How many real users will be. Discuss with the customer. If expected like facebook - run or put a price tag like facebook team lead.
I have a bitter experience when a person wants facebook and plans to make it with the help of 1 developer in 6 months. But this is not the most fantastic, the most fantastic is that then he plans to somehow compete later. And all this in a budget of up to $10k (5 for development and 5 apparently for advertising in the newspapers of your city)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question