Just wanted to close the loop with some extra information I found during
looking at this issue further. From what I understand about the
norm(t,d) and computeNorm() what I want isn't exactly possible, but I
can get something close.
In any case, turns out we want to go with a more baroque boosting
Hello!
Here is a solution I come up with. Heavy code, has limitations, but works for
my case.
// parsing query
QueryParser parser = new QueryParser(LUCENE_VERSION, CONTENTS_FIELD, analyzer);
Query q = parser.parse("\"" + QueryParser.escape(phraseText) + "\"");
q = q.rewrite(searcher.getIndexRea
Hello,
i'm trying to search the following phase:
I'm searching all occurrences of:
. "The Right Way"
. "The Right Ways"
Possible solutions could be something like this - combining a phrase &
wildcard search:
. title:"The Right Way*"
. title:"The Ri
See the IndexSearcher methods that take org.apache.lucene.search.Sort arguments.
For learning about lucene the 2nd edition of Lucene In Action is
highly recommended. http://www.manning.com/hatcher3/
--
Ian.
On Thu, Oct 13, 2011 at 4:54 AM, Mead Lai wrote:
> Hello all,
>
> Well, I add some do