@Test public void prefixQueryTest() { SuggesterPhraseQuery q = new SuggesterPhraseQuery("test", "ident", Arrays.asList("one", "two", "tident"), 0); SuggesterPrefixQuery prefixQuery = (SuggesterPrefixQuery) q.getSuggesterQuery(); assertEquals("t", prefixQuery.getPrefix().text()); }
public SuggesterQuery getSuggesterQuery() { return suggesterQuery; }
SuggesterPhraseQuery extends Query { public SuggesterQuery getSuggesterQuery() { return suggesterQuery; } }
SuggesterPhraseQuery extends Query { public SuggesterQuery getSuggesterQuery() { return suggesterQuery; } SuggesterPhraseQuery(
            final String field,
            final String identifier,
            final List<String> tokens,
            final int slop
    ); }
SuggesterPhraseQuery extends Query { public SuggesterQuery getSuggesterQuery() { return suggesterQuery; } 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 SuggesterQuery getSuggesterQuery() { return suggesterQuery; } 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);  }