se.l4.silo.search.query.RangeQuery 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 RangeQuery
extends AbstractQueryPart
{
private final String field;
public RangeQuery(String field)
{
this.field = field;
}
public R is(long l)
{
return range(l, l);
}
public R range(long from, long to)
{
receiver.addQuery(new QueryItem("range", new RangeQueryData(field, from, to)));
return parent;
}
}