First thing is add &debug=query to the URL and see what the parsed
form of the query is to be sure the stop words issue is resolved.

Once that's determined, add the phrase with a high boost, something like
q=title:(what if) OR title:"what if"^10

where the boost factor is TBD.

Or add the title field to the "pf" parameter if you're using edismax,
possibly with a boost.

Or add a "bq" clause to the edismax.

Or add a "boost" to the main query, similar to:
https://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents

Best,
Erick


On Wed, Oct 29, 2014 at 10:30 AM, hschillig <mouseywi...@live.com> wrote:
> So I have a few titles like so:
>
> 1. When a dog bites fight back : what you need to know, what to do, what not
> to do / [prepared by the law firm] Slater & Zurz LLP.
> 2. First things first [book on cd] : [the rules of being a Warner-- what
> works, what doesn't and what really matters most] / Kurt & Brenda Warner,
> with Jennifer Schuchmann.
> 3. What if? : serious scientific answers to absurd hypothetical questions /
> Randall Munroe.
>
> Now when I put this in my query field:
> title:what if
>
> It returns the first two BEFORE it returns the book that has the actual
> "what if" phrase.. when that one should be listed first..
> If I do title:"what if", none of them get returned.
>
> Here is my schema.xml file:
> http://apaste.info/7r5 <http://apaste.info/7r5>
>
> I want the titles that contain the phrase "what if" to be returned first.
> And then index by "what", "if".. The double quotes doesn't seem to contain
> the phrase. I removed the stop words because "if" was in the list and I
> didn't want the indexing to ignore that.
>
> Thank you for any help!
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/Score-phrases-higher-than-the-records-containing-the-words-tp4166488.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to