Does Elasticsearch reindex the documents automatically each time I update them -


i have social model users can photos.

my photo document looks :

{ "id" : ... //indexed "url": ... "likes": .. //not indexed //other properties } 

my question is, long photo gets likes other users have update document. update make elasticsearch automatically reindex (knowing "likes" property not indexed in mapping) or it's done if indexed properties have changed?

my concern performance here.

document in elasticsearch immutable. updating document reindexing , consist of following steps:

  • retrieve json (that want reindex)
  • change it
  • delete old document
  • index new document

elasticsearch documentation


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -