How to pass slashes in Elasticsearch query using PHP?

Below mentioned elastic search query which is working fine if we hit it directly, { “query”: { “query_string”: { “query”: “”testtext/123″&…

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 …

How to get exact text match from elasticsearch if the query is between quotes

I implemented elasticsearch using php for binary documents (fscrawler). It works just fine with the default settings. I can search the documents for the word I want and I get results that are case …

Search for country

I have built a web application where you can search for a set of locations. Its a free text field where the visitor can input name, street, city, country, etc. I’m using php and Elasticsearch. The …