org.hibernate.search.bridge.spi.FieldMetadataBuilder 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.bridge.spi;
/**
* Allows to configure field-related meta-data.
*
* @author Gunnar Morling
*/
public interface FieldMetadataBuilder {
/**
* Adds a field to the list of all meta-data.
*
* @param name The name of the field
* @param type The type of the field; The type of the field created in
* {@link org.hibernate.search.bridge.FieldBridge#set(String, Object, org.apache.lucene.document.Document, org.hibernate.search.bridge.LuceneOptions)}
* must match the type declared for the field here.
* @return a context object for fluent API invocations
*/
FieldMetadataCreationContext field(String name, FieldType type);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy