tags:

views:

127

answers:

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

+1  A: 

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

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

-- Bob

Bob Lauer