lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Taylor <paul_t...@fastmail.fm>
Subject Re: is this lucene 4.1.0 bug in PerFieldPostingsFormat
Date Fri, 06 Mar 2015 14:51:23 GMT
On 05/03/2015 21:27, Paul Taylor wrote:
FWIW if I do enable assertions then parse does throw an assertion before 
actually trying to do the search.

java.lang.AssertionError
     at 
org.apache.lucene.search.MultiTermQuery.<init>(MultiTermQuery.java:252)
     at 
org.apache.lucene.search.AutomatonQuery.<init>(AutomatonQuery.java:65)
     at org.apache.lucene.search.RegexpQuery.<init>(RegexpQuery.java:90)
     at org.apache.lucene.search.RegexpQuery.<init>(RegexpQuery.java:79)
     at org.apache.lucene.search.RegexpQuery.<init>(RegexpQuery.java:69)
     at 
org.apache.lucene.queryparser.classic.QueryParserBase.newRegexpQuery(QueryParserBase.java:790)
     at 
org.apache.lucene.queryparser.classic.QueryParserBase.getRegexpQuery(QueryParserBase.java:1005)
     at 
org.apache.lucene.queryparser.classic.QueryParserBase.handleBareTokenQuery(QueryParserBase.java:1075)
     at 
org.apache.lucene.queryparser.classic.QueryParser.Term(QueryParser.java:359)
     at 
org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:258)
     at 
org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:213)
     at 
org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:171)
     at 
org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:120)
     at 
org.musicbrainz.search.servlet.AbstractSearchServer.parseQuery(AbstractSearchServer.java:208)

But in production its not usual/good idea to enable assertions.

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