se.l4.silo.search.query.SuggestQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silo-search-api Show documentation
Show all versions of silo-search-api Show documentation
API for Lucene-based querying for Silo.
package se.l4.silo.search.query;
import se.l4.silo.search.QueryItem;
public class SuggestQuery
extends AbstractQueryPart
{
private final String field;
public SuggestQuery(String field)
{
this.field = field;
}
public R text(String text)
{
receiver.addQuery(new QueryItem("suggest", new SuggestQueryData(field, text)));
return parent;
}
}