简体   繁体   中英

How to optimize indexing in elastic search?

we are working on eCommerce project and trying to implement elastic search as a search engine and its working fine in search .

But now its time to index data to elastic search and we have very frequent updates in data so its not a good option to index data every time from php because it can face delay in output

so what can we do to index data without compromising with user experience.

is node js a better option for that? can node js update data asynchronously without compromising with user experience ?

You should decouple your frontend-serving from the ES indexing. This can for example be achieved if you post the indexing request to a message queue, such as RabbitMQ, and then have a worker process listening to that queue which actually triggers the ES indexing.

See

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM