Push back on that rule. The whole point of TF-IDF relevance ranking is to put 
the most relevant documents first. Trying to subvert that does a disservice to 
your users, and will frustrate you too.

If a phrase match truly is more relevant than a word match, then TF-IPD ranking 
probably *will* show the phrase match before the word match. But if the word 
match turns out to have a higher score, let it appear first. Your users will 
thank you.

-- Mike

On 12 Mar 2012, at 21:26 , Danny Sinang wrote:

> Hi,
> 
> Am looking to implement a business rule that says "Phrase results must be 
> displayed before partials".
> 
> So if, using search:search(), I looked for the phrase "medical research", all 
> results having that exact phrase should be shown first, followed by results 
> for "medical" and "research".
> 
> A previous contractor managed to implement the generation of the phrase 
> results + partials.  But the problem is, some of the results for "medical" 
> and "research" are displayed first because of their higher scores.
> 
> How do I tell MarkLogic to give phrase results a higher score instead ?
> 
> Regards,
> Danny
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to