On 12/14/06, Derek Watson <[EMAIL PROTECTED]> wrote:
>
> If you want documents returned in the same order as a field, it's
> easy... you sort!
> If you want the value of a field to influence a score, not determine
> the exact sort order, you can use FunctionQuery (currently hacked into
> the query parser as _val_:myfield)

That seems like what I want -- boosting and not sorting. Is there a
function that will give me a bigger boost for field values closer to
zero?

The syntax could possibly change in the future, but look at the syntax in
the javadoc for parseFunction in
http://incubator.apache.org/solr/docs/api/org/apache/solr/search/QueryParsing.html

Then when using the query parser syntax, use _val_ to activate it.
So you get things like _val_:linear(myfield,1,2)

Use debug on the query admin page to see the score explanations generated.

-Yonik

Reply via email to