iorixxx wrote:
> 
> 
> I added this change to SOLR-1604, can you test it give us feedback?
> 
> 

Hi,

Sorry for the delay.
We have tested the change and it is OK for this.

However, we have found that this query is crashing when using
CoomplexPhraseQuery:
"sulfur-reducing bacteria"

It is due to the dash inside the phrase.
Here is the trace:
java.lang.IllegalArgumentException: Unknown query type
"org.apache.lucene.search.PhraseQuery" found in phrase query string
"sulfur-reducing bacteria"
 at
org.apache.lucene.queryParser.ComplexPhraseQueryParser$ComplexPhraseQuery.rewrite(ComplexPhraseQueryParser.java:290)
 at org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:438)
 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)
...

Regards
Jean-Michel

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/A-bug-in-ComplexPhraseQuery-tp1744659p1835918.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to