[MarkLogic Dev General] search:search() - show phrase results first

Stephane Toussaint stephane.toussaint at 4dconcept.fr
Mon Mar 12 15:18:11 PDT 2012


Hi,

Have you let the "fast phrase searches" index setted ?
Have you tried setting "the word positions" or "element word positions" index ?

The more indexes you reached for matching a query, the best scoring you will have as a result.

Regard,
Stephane

Le 12 mars 2012 à 22:26, Danny Sinang a écrit :

> 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
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general



More information about the General mailing list