remen
http://www.thetaphi.de
eMail: u...@thetaphi.de
-Original Message-
From: Michael Kazekin [mailto:michael.kaze...@mediainsight.info]
Sent: Tuesday, January 31, 2012 9:30 AM
To: java-user@lucene.apache.org
Subject: Re: Null scorer constructed by TermQuery
Uwe, thank you very much for such verb
rg
> Subject: Re: Null scorer constructed by TermQuery
>
> Uwe, thank you very much for such verbose answer!
>
> I tried the code you mentioned ( searcher.createNormalizedWeight(query) ),
> but it doesn't work on Lucene 3.5 for me either :(
>
> My Solr server returns
Uwe, thank you very much for such verbose answer!
I tried the code you mentioned ( searcher.createNormalizedWeight(query) ),
but it doesn't work on Lucene 3.5 for me either :(
My Solr server returns the document correctly on specified term
(field and value), field is indexed and stored.
I'm rea
One addition:
In general, your way how to get a scorer from a query is not supported (and
does not work correct for all queries), the right way is *not* to use
query.createWeight(searcher) but instead
searcher.createNormalizedWeight(query).
But that has nothing to do with the null scorer, which i
You are creating a TermScorer on a composite (non atomic IndexReader like
SegmentReader). That's still supported in 3.x, but no longer allowed in 4.0.
The backwards layer in 3.x had a bug before Lucene 3.5, so theoretically
your code should work on 3.5:
https://issues.apache.org/jira/browse/LUCENE-