Re: What is the difference between query_string and multi-match for querying docs ?

2014-02-04 Thread Mukul Gupta
Hi Ivan, I followed your advice and started using explain api for query_string but I guess in process I found a bug (don't know if it really is a bug or intended behaviour of query_string). This is going to be a long post, please be patient with me. I'm using a doc:{name:"new delhi to goa",st:"go

Re: What is the difference between query_string and multi-match for querying docs ?

2014-02-03 Thread Ivan Brusic
Try using the plugin I suggested and/or the explain API. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-explain.html On Mon, Feb 3, 2014 at 11:26 AM, Mukul Gupta wrote: > Hi Ivan, > > Thanks for the reply. Can you please tell how query_string works > internally ?

Re: What is the difference between query_string and multi-match for querying docs ?

2014-02-03 Thread Mukul Gupta
Hi Ivan, Thanks for the reply. Can you please tell how query_string works internally ? In the documentation, it says query is parsed internally. I want to know what is the meaning of this ? Let's say I 'm searching for "delhi t" so how query_string will query for this string. Also assume I'm using

Re: What is the difference between query_string and multi-match for querying docs ?

2014-02-03 Thread Ivan Brusic
The key difference is that a query_string query (with multiple fields and the AND operator) will match when each term exists in at least one field while a multi-match query (also using AND) matches only when all the terms exist in at least one field. The terms of a query_string query do not need to

What is the difference between query_string and multi-match for querying docs ?

2014-02-03 Thread coder
Hi, Can anyone please tell me a detailed difference between these two queries. I studied the documentation but not able to figure out the difference between two. Can anyone please explain it with some examples in a more detailed fashion. I expect query string to give me docs which matches maxi