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

org.hibernate.search.backend.lucene.LuceneBackend Maven / Gradle / Ivy

There is a newer version: 7.2.1.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.backend.lucene;

import java.util.Optional;

import org.hibernate.search.engine.backend.Backend;
import org.hibernate.search.engine.backend.metamodel.IndexValueFieldTypeDescriptor;

import org.apache.lucene.analysis.Analyzer;

public interface LuceneBackend extends Backend {

	/**
	 * @param name An analyzer name, e.g. a name returned by {@link IndexValueFieldTypeDescriptor#analyzerName()}
	 * or {@link IndexValueFieldTypeDescriptor#searchAnalyzerName()}.
	 * @return The corresponding analyzer, or {@link Optional#empty()} if it doesn't exist.
	 */
	Optional analyzer(String name);

	/**
	 * @param name A normalizer name, e.g. a name returned by {@link IndexValueFieldTypeDescriptor#normalizerName()}.
	 * @return The corresponding normalizer, or {@link Optional#empty()} if it doesn't exist.
	 */
	Optional normalizer(String name);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy