@Test public void phraseQueryTest() throws Exception { SuggesterPhraseQuery q = new SuggesterPhraseQuery("test", "ident", Arrays.asList("one", "two", "tident"), 0); CustomPhraseQuery query = q.getPhraseQuery(); assertEquals(2, query.getOffset()); Term[] terms = getTerms(query); assertEquals("one", terms[0].text()); assertEquals("two", terms[1].text()); }
public CustomPhraseQuery getPhraseQuery() { return phraseQuery; }
SuggesterPhraseQuery extends Query { public CustomPhraseQuery getPhraseQuery() { return phraseQuery; } }
SuggesterPhraseQuery extends Query { public CustomPhraseQuery getPhraseQuery() { return phraseQuery; } SuggesterPhraseQuery(
            final String field,
            final String identifier,
            final List<String> tokens,
            final int slop
    ); }
SuggesterPhraseQuery extends Query { public CustomPhraseQuery getPhraseQuery() { return phraseQuery; } SuggesterPhraseQuery(
            final String field,
            final String identifier,
            final List<String> tokens,
            final int slop
    ); SuggesterQuery getSuggesterQuery(); CustomPhraseQuery getPhraseQuery(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(final String field); @Override Query rewrite(final IndexReader reader); }
SuggesterPhraseQuery extends Query { public CustomPhraseQuery getPhraseQuery() { return phraseQuery; } SuggesterPhraseQuery(
            final String field,
            final String identifier,
            final List<String> tokens,
            final int slop
    ); SuggesterQuery getSuggesterQuery(); CustomPhraseQuery getPhraseQuery(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(final String field); @Override Query rewrite(final IndexReader reader);  }