_Why_ should Rocket Banana (Single) come first?
Essentially you have some ordering in mind and
unless you can express it clearly you'll _never_ get
"ideal" ranking. Really.

But your particular issue can probably be solved by adding
a clause like OR "rocket banana"^5

And I suspect you haven't given us the entire query, or
you're running through edismax or whatever. In future,
please paste the result of adding &debug=all to the
e-mail.

Best
Erick

On Fri, Jul 12, 2013 at 7:32 AM, padcoe <davidpadi...@gmail.com> wrote:
> Hello folks,
>
> I'm doing a search for a specific word ("Rocket Banana") in a specific field
> and the document with the result "Rocket Banana (Single)" never comes
> first..and this is the result that should appear in first position...i've
> tried to many ways to perform this search:
>
> title:"Rocket Banana"
> title:("Rocket" AND "Banana")
> title:("Rocket" OR "Banana")
> title:("Rocket"^0.175 AND "Banana"^0.175)
> title:("Rocket"^0.175 OR"Banana"^0.175)
>
> The order returned is basically like:
>
> <doc><float name="score">12.106901</float><str name="title">Rocket
> Rocket</str></doc>
> <doc><float name="score">12.007204</float><str
> name="title">Rocket</str></doc>
> <doc><float name="score">12.007203</float><str name="title">Banana Banana
> Banana</str></doc>
> ....a lot of results
> <doc><float name="score">10.398543</float><str name="title">Rocket Banana
> (Single)</str></doc>
>
>
> How can i optimize my search and return the document that have the "full"
> word that i've searched with a higher scores then others?
>
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-optimize-a-search-tp4077531.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to