Answer the question
In order to leave comments, you need to log in
What is the correct way to use elasticsearch to start a search on a site with it?
Kind!
The question is, there is a task to implement a search for mySQl entities in the context of different tables. I raised an elastic search, this is a separate service that builds indexes, I found out that I need a jdbc connector to connect to mysql
. And the question is.
From a programming point of view, what should be the sequence of actions to implement a search on a site using an elastic search.
My Sample Plan
Create all possible indexes, or one index?
How often is the index updated, does it need to be updated manually if it is connected via jdbc
If you need to run an index update, how often should it be done?
If the data is added to the database, how quickly the index update will work.
On the backend, should I make requests to the elastic search and draw the search output form?
Actually, an answer would be a great answer.
1) Do this
2) Then this
3) Now this
4) Now on the front this.
Thanks to everyone who answers.
Answer the question
In order to leave comments, you need to log in
Nothing needs to be created or updated by hand.
1) When adding / updating / deleting data on the backend, you do the same on the elastic. Only 2 methods index for creating and updating and delete for deleting.
Usually, there are events in the system for this, on which you can hang a handler that will work with the elastic.
2) Then you make requests to the elastic from the front server / back server / mobile application and from anywhere else.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question