Question

If i have two managed properties say "A" and "B". And in the results my search phrase in some results is found in "A" and in some results is found in "B". Then i want to ensure that the results which contains search phrase in "A" should come first(should be boosted) than "B"

Was it helpful?

Solution

Here's my answer from my blog:

You can try to add a managed property boost on A where you match on #. Or you can use FQL and xrank. Something like below where you query for "my query", but boost the items where the same query appears in A.

xrank(string("my query", mode="simpleall"), A:string("my query", mode="simpleall"), boost=5000)

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top