Sorting by rank (SQL FTS)

Build 1501 on 14/Nov/2017  This topic last edited on: 25/Aug/2014, at 13:07

You can sort results by rank ('order by @nav:rank descending'), the rank is returned in full-text searches and it is also possible to use the rank to restrict the results:

gn4:story[gn:fullText(nav:text,'Obama') and @nav:rank>50]

returns the stories containing 'Obama' and with a rank greater than 50.