All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.query.facet.FacetingRequest Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * 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