lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Krupansky" <j...@basetechnology.com>
Subject Re: Whole Phrase search in Solr
Date Mon, 03 Dec 2012 17:22:36 GMT
If you use the edismax query parser and set the "pf", "pf2", and "pf3" 
fields your phrases should show up as top results. This will not eliminate 
non-phrase matches, but will assure that phrase matches get boosted.

See:
http://wiki.apache.org/solr/ExtendedDisMax#pf_.28Phrase_Fields.29

-- Jack Krupansky

-----Original Message----- 
From: NickA
Sent: Monday, December 03, 2012 11:37 AM
To: solr-user@lucene.apache.org
Subject: Re: Whole Phrase search in Solr

Thank you Jack,

the problem with the "AND" is that it does not search for a PHRASE but for
the 2 words being SOMEWHERE in the article.

For example the "Check this" will NOT search for "Check this" as a PHRASE
but for the "Check" word and the "this" word somewhere in the article, even
far away the one from the other.

So the suggestions that you made do not work for searching as a "PHRASE".

Unless we do something wrong?

Any other ideas on the PHRASE search?

Thank you again!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Whole-Phrase-search-in-Solr-tp4023931p4024029.html
Sent from the Solr - User mailing list archive at Nabble.com. 


Mime
View raw message