Re: MultiPhraseQuery:Rewrite to BooleanQuery

2015-01-21 Thread ku3ia
ku3ia wrote > 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 choco

MultiPhraseQuery:Rewrite to BooleanQuery

2015-01-12 Thread ku3ia
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(); writer.