You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sohan Kalsariya <so...@gmail.com> on 2014/02/14 10:29:35 UTC

Exact word match

Hello,
I want to the exact results for my query.
For e.g. when i search "New york" , then it doesn't give me exact results
about New York
But it also give me results like:
New York
New Delhi
And other cities starting from "New"
So how can i get only results for "New York" ?

-- 
Regards,
*Sohan Kalsariya*

Re: Exact word match

Posted by Jack Krupansky <ja...@basetechnology.com>.
Set the default query operator (q.op parameter) to AND, or enclosed the full 
phrase in quotes.

-- Jack Krupansky

-----Original Message----- 
From: Sohan Kalsariya
Sent: Friday, February 14, 2014 4:29 AM
To: solr-user@lucene.apache.org
Subject: Exact word match

Hello,
I want to the exact results for my query.
For e.g. when i search "New york" , then it doesn't give me exact results
about New York
But it also give me results like:
New York
New Delhi
And other cities starting from "New"
So how can i get only results for "New York" ?

-- 
Regards,
*Sohan Kalsariya*