Tomoko Uchida wrote > Hi, > > Strictly speaking, MultiPhraseQuery and BooleanQuery wrapping PhraseQuerys > are not equal. > > For each query, Query.rewrite() returns different object. (with Lucene > 4.10.3) > q1.rewrite(reader).toString() returns: > body:"blueberry chocolate (pie tart)", where q1 is your first multi > phrase query. > q2.rewrite(reader).toString() returns: > body:"blueberry chocolate pie" body:"blueberry chocolate tart", where > q2 is your second boolean query. > > In practice... I *think* two queries may return same set of documents, but > I'm not sure about scoring/ranking. > > I suggest you ask to java-user@lucene mailing list as for Lucene API. > > Regards, > Tomoko > > > > 2015-01-21 19:12 GMT+09:00 ku3ia <
> demesg@ > >: > >> Any ideas? >> >> >> >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/MultiPhraseQuery-Rewrite-to-BooleanQuery-tp4180638p4180820.html >> Sent from the Solr - User mailing list archive at Nabble.com. >> Thanks, I'll try it. -- View this message in context: http://lucene.472066.n3.nabble.com/MultiPhraseQuery-Rewrite-to-BooleanQuery-tp4180638p4180887.html Sent from the Solr - User mailing list archive at Nabble.com.