org.hibernate.search.backend.lucene.analysis.LuceneAnalysisConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-backend-lucene Show documentation
Show all versions of hibernate-search-backend-lucene Show documentation
Hibernate Search Backend relying on embedded instances of Lucene
/*
* 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.backend.lucene.analysis;
import org.hibernate.search.backend.lucene.cfg.LuceneBackendSettings;
/**
* A provider of analysis-related definitions that can be referenced from the mapping,
* e.g. with {@literal @Analyzer(definition = "some-name")}
* or {@literal @Normalizer(definition = "some-other-name")}.
*
* Users can select a definition provider through the
* {@link LuceneBackendSettings#ANALYSIS_CONFIGURER configuration properties}.
*/
public interface LuceneAnalysisConfigurer {
/**
* Configures analysis as necessary using the given {@code context}.
* @param context A context exposing methods to configure analysis.
*/
void configure(LuceneAnalysisConfigurationContext context);
}