lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: is this lucene 4.1.0 bug in PerFieldPostingsFormat
Date Thu, 05 Mar 2015 14:43:46 GMT
It looks like field was null?

Back in 4.1.0 we just assert field != null, but in newer releases it's
a real check.

Mike McCandless

http://blog.mikemccandless.com


On Thu, Mar 5, 2015 at 8:25 AM, Paul Taylor <paul_t100@fastmail.fm> wrote:
> Hi
>
> Is this a Lucene (4.1.0) (known) bug or application code error, (I don't
> have details of the search just this stacktrace) I'm assuming bug because
> user code is just passing a search to Lucene, but I cant find anything in
> JIRA
>
> |java.lang.NullPointerException
> at java.util.TreeMap.getEntry(TreeMap.java:342)
> at java.util.TreeMap.get(TreeMap.java:273)
> at
> org.apache.lucene.codecs.perfield.PerFieldPostingsFormat$FieldsReader.terms(PerFieldPostingsFormat.java:215)
> at
> org.apache.lucene.search.TermCollectingRewrite.collectTerms(TermCollectingRewrite.java:58)
> at
> org.apache.lucene.search.ConstantScoreAutoRewrite.rewrite(ConstantScoreAutoRewrite.java:95)
> at
> org.apache.lucene.search.MultiTermQuery$ConstantScoreAutoRewrite.rewrite(MultiTermQuery.java:220)
> at org.apache.lucene.search.MultiTermQuery.rewrite(MultiTermQuery.java:286)
> at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:429)
> at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:616)
> at
> org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:663)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
> at
> org.musicbrainz.search.servlet.AbstractSearchServer.search(AbstractSearchServer.java:190)
> at
> org.musicbrainz.search.servlet.AbstractSearchServer.search(AbstractSearchServer.java:172)
> at
> org.musicbrainz.search.servlet.SearchServerServlet.doSearch(SearchServerServlet.java:616)
> at
> org.musicbrainz.search.servlet.SearchServerServlet.doGet(SearchServerServlet.java:551)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:618)
> thanks Paul
> |
>

---------------------------------------------------------------------
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