se.l4.silo.search.query.NegateQuery 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.
The newest version!
package se.l4.silo.search.query;
import se.l4.silo.search.QueryCriteriaBuilder;
import se.l4.silo.search.QueryItem;
import se.l4.silo.search.QueryPart;
public class NegateQuery
extends AbstractQueryPart
implements QueryCriteriaBuilder
{
public NegateQuery()
{
}
@Override
public void addQuery(QueryItem item)
{
receiver.addQuery(new QueryItem("negate", item));
}
@Override
public > P query(P q)
{
q.parent(parent, this);
return q;
}
}