On Friday 27 October 2006 11:09, Oliver Donald wrote:
> Hi,
> 
> I'm quite new to Lucene but I've managed to get it to return quite
> complex results. The problem is that the results aren't bringing up the
> most relevant documents first.
> 
> Is it possible to score or boost a result document based on where a
> search term appears in a field? Ie, if I search in a title field for
> 'OpenGL', is it possible to have results like 'OpenGL Guide' to be
> scored highter then 'A Guide to OpenGL' ?

SpanFirstQuery does this, but afaik there is no query parser supporting it.

Regards,
Paul Elschot

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to