Reputation: 1180
I have a social model where users can like photos.
My photo document looks like this :
{
"id" : ... //Indexed
"url": ...
"likes": .. //Not indexed
//Other properties
}
My question is, as long as a photo gets likes from other users I have to update my document. Does this update make elasticsearch automatically reindex it (knowing that the "likes" property is NOT indexed in my mapping) or it's done only if my indexed properties have changed?
My concern is performance here.
Upvotes: 2
Views: 1074
Reputation: 2790
Document in elasticsearch are immutable. Updating a document is always a reindexing and it consist of the following steps:
Upvotes: 1