ElasticSearch - Configuration to Analyse a document on Indexing -
in single request, want retrieve documents sor, store them in elasticsearch, , search documents using es search api.
there seems lag time document indexed , time analyzed , ready searched.
is there way configure es not return request index document until analyzer has analyzed , can searched?
elasticsearch "near real-time" nature, i.e. indices refreshed every second (by default). while may seem enough in majority of cases, might not, such in case.
if need documents available immediately, need refresh indices explicitly calling
post /_refresh or if want refresh 1 index
post /my_index/_refresh the refresh needs happen after indexing call returned , before search call sent off.
note doing on every document indexing hurt performance of system. might better make application aware of near real-time nature of es , handle on client-side.
Comments
Post a Comment