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

org.hibernate.search.backend.lucene.analysis.LuceneAnalysisConfigurationContext Maven / Gradle / Ivy

/*
 * 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 java.util.Set;

import org.hibernate.search.backend.lucene.analysis.model.dsl.LuceneAnalyzerTypeStep;
import org.hibernate.search.backend.lucene.analysis.model.dsl.LuceneNormalizerTypeStep;

import org.apache.lucene.search.similarities.Similarity;

/**
 * A context allowing the definition of named analyzers and normalizers in a Lucene backend.
 */
public interface LuceneAnalysisConfigurationContext {

	/**
	 * Start a new analyzer definition.
	 *
	 * @param name The name used to reference this analyzer in Hibernate Search.
	 * @return The initial step of a DSL where the analyzer can be defined.
	 */
	LuceneAnalyzerTypeStep analyzer(String name);

	/**
	 * Start a new normalizer definition.
	 *
	 * @param name The name used to reference this normalizer in Hibernate Search.
	 * @return The initial step of a DSL where the normalizer can be defined.
	 */
	LuceneNormalizerTypeStep normalizer(String name);

	/**
	 * Set the {@link Similarity}.
	 * 

* Defaults to {@link org.apache.lucene.search.similarities.BM25Similarity}. * * @param similarity The {@link Similarity} to use when indexing and when searching. */ void similarity(Similarity similarity); /** * @return A list of all possible values that can be passed to * {@link org.hibernate.search.backend.lucene.analysis.model.dsl.LuceneAnalyzerTokenizerStep#tokenizer(String)}. */ Set availableTokenizers(); /** * @return A list of all possible values that can be passed to * {@link org.hibernate.search.backend.lucene.analysis.model.dsl.LuceneAnalysisOptionalComponentsStep#charFilter(String)}. */ Set availableCharFilters(); /** * @return A list of all possible values that can be passed to * {@link org.hibernate.search.backend.lucene.analysis.model.dsl.LuceneAnalysisOptionalComponentsStep#tokenFilter(String)}. */ Set availableTokenFilters(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy