org.hibernate.search.metadata.FieldDescriptor 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.metadata;
import org.apache.lucene.analysis.Analyzer;
import org.hibernate.search.bridge.FieldBridge;
/**
* Metadata related to a single field. It extends @{code FieldSettingsDescriptor} to add Search specific
* information, like {@link #indexNullAs()}. It also contains the analyzer and field bridge used to create the
* actual field for the Lucene {@code Document}.
*
* @author Hardy Ferentschik
*/
public interface FieldDescriptor extends FieldSettingsDescriptor {
/**
* @return the string used to index {@code null} values. {@code null} in case null values are not indexed
*/
String indexNullAs();
/**
* @return {@code true} if {@code null} values are indexed, {@code false} otherwise
*
* @see #indexNullAs()
*/
boolean indexNull();
/**
* @return the field bridge instance used to convert the property value into a string based field value
*/
FieldBridge getFieldBridge();
/**
* @return the analyzer used for this field, {@code null} if the field is not analyzed
*/
Analyzer getAnalyzer();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy