lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Lucene scoring question (how to boost leading terms match)
Date Tue, 03 Oct 2006 18:02:13 GMT

take a look at the SpanFirstQuery ... do do "A*" type searches inside of a
SpanQuery you'll eithe need to use SpanRegexQuery, or roll your own
SpamPrefixQuery out of a SpanOrQuery containing SpamTermQueries.

:   I have a question about the lucene scoring. In my following example,
: how can I ensure the doc1 has the higher score than doc2, if I search
: for "A*". In another words, I want to boost the docs which match their
: leading terms.
:   doc1: Aterm  Bterm  Cterm
:   doc2: Bterm  Aterm  Cterm


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message