While working on trying to switch out PHP code with pure elasticsearch-painless, I noticed that the document doesn’t return “noop” even if the document is identical before and after update. I’m not sure if there is any consequences of having a version update for every time the code is executed? How does it scale? I’m simply trying to update the
Tag: elasticsearch-php
Combine OR, AND and IN operators in Elasticsearch query
I am very new to the elasticsearch and I need to prepare the query which combines OR, AND and IN operators. What I want to achieve is having something like this in SQL: SELECT * FROM tableWHERE (field_1 = ‘foo’ AND field_2 IN(1,2,3) ) OR (‘field_1 = ‘bar’ AND field_2 IN(2, 3, 4) ); I am using elastic with PHP
Elasticsearch cardinality aggregation with text fields
I’m trying to query out average request generated in per session, I’m inserting a session_id while putting the data in my indices, I want to count distinct sessions and take out the average, while …