php - "Elasticsearch" search documents before index refresh -


i writing php application stores data in elasticsearch. want able search latest indexed data elasticsearch in realtime ( without index refresh time barrier ). how achieve such functionality?

note : following never helped achieve real timeness

$client->indices()->refresh(); 

nor

'refresh'   => true 

-- elasticsearch v2.3

-- i using official php elasticsearch driver

you can set refresh interval index using following query. . .but while indexing documents in bulk value changed -1, means never refresh , refresh manually. because low refresh rate may result in performance hits on indexing rate. go through following link more details https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html#bulk

`

curl -xput localhost:9200/test/_settings -d '{     "index" : {         "refresh_interval" : "1s"     } }' 

`


Comments

Popular posts from this blog

Listboxes in c# -

Excel Duty List -

Multilayer CSV to filtered excel -