iorixxx wrote:
>
>
> I added Terje Eggestad's fix[1], can you test it give us feedback?
>
>
Hi,
Sorry for the delay. The fix was working well but we discovered another
query crashing the parser:
a63b27/00:IC
"org.apache.lucene.search.PhraseQuery" found in phrase query string
"a63b27/00"
at
org.apache.lucene.queryParser.ComplexPhraseQueryParser$ComplexPhraseQuery.rewrite(ComplexPhraseQueryParser.java:256)
at org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:311)
at org.apache.lucene.search.Query.weight(Query.java:98)
at org.apache.lucene.search.Searcher.createWeight(Searcher.java:230)
at org.apache.lucene.search.Searcher.search(Searcher.java:171)
at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:988)
The problem is with the /
We did a fix that seems to work here is the diff:
--- ComplexPhraseQueryParser.java.org 2010-11-04 02:56:04.000000000 +0100
+++ ComplexPhraseQueryParser.java 2010-11-05 10:14:08.062500000 +0100
@@ -245,7 +245,7 @@
public Query rewrite(IndexReader reader) throws IOException {
// ArrayList spanClauses = new ArrayList();
- if (contents instanceof TermQuery) {
+ if (contents instanceof TermQuery || contents instanceof PhraseQuery)
{
return contents;
}
// Build a sequence of Span clauses arranged in a SpanNear - child
Jean-Michel
--
View this message in context:
http://lucene.472066.n3.nabble.com/A-bug-in-ComplexPhraseQuery-tp1744659p2057933.htmlSent from the Solr - User mailing list archive at Nabble.com.