RE: ComplexPhraseQuery problems with simple phrases

2010-02-20 Thread David Kaelbling
.5145 http://www.blackducksoftware.com From: Mark Harwood [markharw...@yahoo.co.uk] Sent: Friday, February 19, 2010 4:04 PM To: java-dev@lucene.apache.org Subject: Re: ComplexPhraseQuery problems with simple phrases This is because phrases are expected to co

Re: ComplexPhraseQuery problems with simple phrases

2010-02-19 Thread Mark Harwood
This is because phrases are expected to contain >1 clause and the ComplexPhraseQueryParser was expecting a BooleanQuery from the base class which is used to hold the elements in the phrase. In this single-clause scenario I guess we could silently hide the error and return whatever single query