: Think I will have to modify o.a.s.s.QueryParsing.parseSort to hook in custom
: sort. Is there any better way?
If you write a custom SortComparatorSource, then the easiest way to use it
would probably be to write your own subclass of TextField and override the
getSortField method to construct a
You can approximate it by doing something like:
A:"phrase"^10 B:"phrase"^1 C:"phrase"^1000 D:"phrase"^100
E:"phrase"^30
Thanks for suggestion Mike. I tried boosting like this but all docs get
slightly different scores (because of tf, idf etc) and so secondary sort on
field X has no i
On 4/20/07, Simon Kahl <[EMAIL PROTECTED]> wrote:
I need to conditionally order results of phrase searches like this:
* First show all docs with phrase in field A - regardless of other
occurences of phrase in doc - ordered alphabetically by field X
* Next show all docs with phrase in field B - .