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
/*
 * SPDX-License-Identifier: Apache-2.0
 * Copyright Red Hat Inc. and Hibernate Authors
 */
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