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)", wher
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.
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.
Hi folks!
I have a multiphrase query, for example, from units:
Directory indexStore = newDirectory();
RandomIndexWriter writer = new RandomIndexWriter(random(), indexStore);
add("blueberry chocolate pie", writer);
add("blueberry chocolate tart", writer);
IndexReader r = writer.getReader();