
org.hibernate.search.annotations.Index Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-search-v5migrationhelper-engine Show documentation
Show all versions of hibernate-search-v5migrationhelper-engine Show documentation
Helper to migrate from Hibernate Search 5 to 6, providing partial support for Hibernate Search 5 Engine APIs on top of Hibernate Search 6
The newest version!
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.search.annotations;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.FullTextField;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.GenericField;
import org.hibernate.search.mapper.pojo.mapping.definition.annotation.KeywordField;
/**
* Defines how an {@link org.apache.lucene.document.Field} should be indexed.
*
* @author Emmanuel Bernard
* @author Hardy Ferentschik
* @deprecated Use Hibernate Search 6's field annotations ({@link GenericField}, {@link KeywordField},
* {@link FullTextField}, ...)
* and enable/disable indexing with {@link GenericField#searchable() @GenericField(searchable = Searchable.YES)}
* instead.
*/
@Deprecated
public enum Index {
/**
* Index the field value.
*/
YES,
/**
* Do not index the field value. This field can thus not be searched,
* but one can still access its contents provided it is
* {@link Store stored}.
*/
NO
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy