Hello,

I have been developing a new search application based on Solr (Very
nice!) using dismax. We are using query-time boosts to provide better
search results for user queries and index-time boosts to promote
certain documents over others.

My question is about the latter: We have a "position" field available
at index time that is an integer value, 0 being the 1st position, 1
being the 2nd position, 99 being the hundredth, etc.  How do I get
Solr to return documents in that same order? Is it possible to apply a
negative boost?

<doc boost="-0.0">...</doc>
<doc boost="-0.1">...</doc>
<doc boost="-0.2">...</doc>

I notice in the documentation for parseFieldBoosts that the routine
"Doesn't care if boost info is negative, you're on your own.", but
what does that mean?

There is a desire to preserve the order as 0..xx and not reverse it
(which would be the obvious choice - x becomes 0, 0 becomes x) because
we are adding multiple sets of positions to the index, and I want the
first position of each set to be equal (zero).

This weighting is important to us for user queries as well as filtered
views. Is there another way to get what I'm looking for?

Thanks,
Derek

Reply via email to