That's the ticket exactly, Kyle.
What I have is the ID of my document, so I indexed a dynamic field
with name id_*. Then I just set that field for each document with the
proper ID.
So for example, to pop one document to the top of the index, i just run:
"&q=field: value; id_700390+desc, date+desc"
Works like a charm, even with multiple documents.
"&q=field: value; id_700390+desc, id_604030+desc, date+desc"
Mark
On Oct 24, 2007, at 4:15 PM, Kyle Banerjee wrote:
The typical use case, though, is for the featured document to be
on top only
for certain queries. Like in an intranet where someone queries
401K or
retirement or similar, you want to feature a document about
benefits that
would otherwise rank really low for that query. I have not be
able to make
sorting strategies work very well.
Depending on how many of these certain queries you have, it seems like
you could still use some variation of the strategy based on a bogus
tag sort. If you place a dynamic field for each query term (e.g.
foo_s, bar_s, etc) relevant to a document and then detect when one of
the special query terms is detected, you can still sort on the
appropriate dynamic field before applying the rest of the sort.
kyle
mark angelillo
snooth inc.
o: 646.723.4328
c: 484.437.9915
[EMAIL PROTECTED]
snooth -- 1.8 million ratings and counting...