:   FunctionQuery looks _exactly_ like what I want.  I want to apply a rank/sort
: kind of thing based on the value of a Document field value.  Specifically, my
: users want more "recent" documents to have a higher rank than older documents
: and I have a date field with values like 20060707.  It looks like I can do
: what I want with a LinearFloatFunction :-)
pretty much ... but RecipricalFloatFunction is pretty great for dates too.

:   I'm using lucene's query parser to get a Query.  How can I use
: FunctionQuery in conjunction with my existing query?  I'm gonna _try_
: Query.combine(Query[]), but I'm not sure, from reading the lucene docs,
: that it will do what I want...

that's not really what that method is for ... just construct a
BooleanQuery and add your FunctionQuery and the query you got from the
QUeryParser to it as sub-clauses.  You'll probably want the clause from
QUeryParser to be mandatory, and the FunctionQUery to be optional.




-Hoss

Reply via email to