se.l4.silo.search.query.FieldQuery 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 FieldQuery
extends AbstractQueryPart
{
private String field;
public FieldQuery(String field)
{
this.field = field;
}
public R is(Object value)
{
receiver.addQuery(new QueryItem("field", new FieldQueryData(field, value)));
return parent;
}
public R isEmpty()
{
receiver.addQuery(new QueryItem("field", new FieldQueryData(field, null)));
return parent;
}
}