1
  • I have a bunch of documents in my index.
  • They all have "text" in field1. One has "boosttext" in field2.
  • I want FAST to put the document with "boosttext" to the front of the result set.

I tried this FQL query:

and(field1:string("text"), xrank(field2:string("boosttext", mode="AND"))

However, this will filter out all documents that do not have "boosttext" in field2 !!!

Has anyone successfully used xrank and can give me a hint? Thanks in advance.

-- Bob

Bob Lauer
  • 21
  • 4

2 Answers2

1

... it seems that the following FQL expression works:

rank(field1:string("text"), xrank(field2:string("boosttext"))

-- Bob

Bob Lauer
  • 21
  • 4
1
xrank(field1:string("text"), field2:string("boosttext"), boost=100)

See: http://msdn.microsoft.com/en-us/library/ff394462.aspx

xrank(or(cat, dog), thoroughbred, boost=500, boostall=yes)
agf
  • 171,228
  • 44
  • 289
  • 238
Steve
  • 11
  • 1