Remove Data?


#1

Hi,

I am new to elasticsearch and think its amazing from what I have seen.

I have a question, if I were to use this in my application. For example if I have a website that inserts data into a database, I assume at the same time as inserting the data, it should send a request to elasticsearch to also insert the record?

If this is the case, What would be the recommendation for when data is deleted from the database? Do I need to ensure the elasticsearch record is also deleted?

Another option is to create some type of worker process which does this functionality and compares/synchronises the two?

I just wondered what other people did and what the suggestions are.

Thank you


(David Pilato) #2

I assume at the same time as inserting the data, it should send a request to elasticsearch to also insert the record?

Yes

Do I need to ensure the elasticsearch record is also deleted?

Yes

Another option is to create some type of worker process which does this functionality and compares/synchronises the two?

Yes but this is hard so I definitely prefer the former options.

I wrote about all that here:

http://david.pilato.fr/blog/2015/05/09/advanced-search-for-your-legacy-application/

Last time I spoke about it:


#3

Hi David,

Thank you for your response and answering my questions.

Thats a brilliant detailed post and I will watch the video, looks great.

Thank you!


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.