lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: Scoring documents by position
Date Fri, 27 Oct 2006 16:01:26 GMT
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message