Hi, Phrases with stop words in them are not getting searched whereas a phrase without it gets searched using ComplexPhraseQueryParser/SpanQueryParser.
SpanQueryParser reference: https://issues.apache.org/jira/browse/LUCENE-5205 The similar search works fine with classic parser which uses PhraseQuery as it includes the position of terms for all the terms including stop words in the query created. Kindly provide your inputs on how the phrases with stop words can be searched successfully in ComplexPhraseQueryParser/SpanQueryParser. Thanks, Modassar