lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: More about function queries
Date Mon, 07 May 2007 23:31:56 GMT

: Just wanted to check if there is more documentation about function queries
: besides  the java doc at
: http://lucene.apache.org/solr/api/org/apache/solr/search/QueryParsing.html#parseFunction(java.lang.String,%20org.apache.solr.schema.IndexSchema)

unfortunately no, but please feel free to add some to the wiki or submit a
Jira path to improve the javadocs :)

: Starting with what the fields for all the functions mean:
:  eg. recip(myfield,1,2,3)

they corrispond directly to the constructor args for the corrisponding
ValueSource implementations...

http://lucene.apache.org/solr/api/org/apache/solr/search/function/ValueSource.html

: I am working towards getting to a function which combines a document's
: popularity, recency & relevance.

a reciprical function wrapping a reverse ordinal function tends to work
well for rewarding recency (allthough keep in mind it rewards relative
ordering of docs, not strict date base recency because it's using hte
ordinal value)

popularity can be incorporated with a simple linera function on your
numeric field (assuming you store popularity as a "bigger==better" number.





-Hoss


Mime
View raw message