@Retention(value=RUNTIME) @Target(value={PACKAGE,TYPE,FIELD,METHOD}) @Documented @Repeatable(value=NormalizerDefs.class) public @interface NormalizerDef
A normalizer definition defines one or more filters, but on contrary to analyzer it doesn't include any tokenizer. On top of that, filters should not perform any kind of tokenization. This allows normalizer to be used on fields where we only want a single indexed value, such as sortable fields.
Hibernate Search will try to validate that no tokenization is performed at runtime.
Filters are applied in the order they are defined.
Modifier and Type | Required Element and Description |
---|---|
String |
name |
Modifier and Type | Optional Element and Description |
---|---|
CharFilterDef[] |
charFilters |
TokenFilterDef[] |
filters |
public abstract String name
Normalizer
public abstract CharFilterDef[] charFilters
public abstract TokenFilterDef[] filters
Copyright © 2006-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.