org.hibernate.search.query.facet.FacetingRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-engine Show documentation
Show all versions of hibernate-search-engine Show documentation
Core of the Object/Lucene mapper, query engine and index management
/*
* Hibernate Search, full-text search for your domain model
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.search.query.facet;
/**
* Faceting request interface.
*
* @author Hardy Ferentschik
*/
public interface FacetingRequest {
/**
* @return the name of this faceting request. The faceting name can be an arbitrary string.
*/
String getFacetingName();
/**
* @return the name of the facet field this faceting request is defined on
*/
String getFieldName();
/**
* @return the sort order of the returned {@code Facet}s for this request
*/
FacetSortOrder getSort();
/**
* @return the maximum number of facets returned for this request
*/
int getMaxNumberOfFacets();
/**
* @return {@code true} if facets with a count of 0 should be included in the returned facet list
*/
boolean hasZeroCountsIncluded();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy