org.hibernate.search.backend.lucene.LuceneBackend 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;
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 extends Analyzer> 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 extends Analyzer> normalizer(String name);
}