Re: Exact word match

2014-02-14 Thread Jack Krupansky
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

Exact word match

2014-02-14 Thread Sohan Kalsariya
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 Kal

RE: Exact Word Match Search comes in first come In Solr4.3

2013-09-26 Thread Markus Jelsma
That won't boost order but Lucene's SpanFirstQuery does. You do have to make a custom query parser plugin for it but that's trivial. -Original message- > From:Otis Gospodnetic > Sent: Thursday 26th September 2013 13:24 > To: solr-user@lucene.apache.org > Su

Re: Exact Word Match Search comes in first come In Solr4.3

2013-09-26 Thread Otis Gospodnetic
Hello there. Use two fields, one unanalyzed and the other analyzed and boost the former. Otis Solr & ElasticSearch Support http://sematext.com/ On Sep 26, 2013 7:19 AM, "Viresh Modi" wrote: > I want to get ORDER As Per Exact Search match: > > Search with "EMIR" comes First exact match “Emir”

Exact Word Match Search comes in first come In Solr4.3

2013-09-26 Thread Viresh Modi
I want to get ORDER As Per Exact Search match: Search with "EMIR" comes First exact match “Emir” not “United Arab Emirates”. For example, when you search for “EMIR” the first result has nothing to do with that and is all about “United Arab Emirates”, which obviously contains “Emir” as part of