public static class IndexFields.Builder
extends java.lang.Object
Constructor and Description |
---|
IndexFields.Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
IndexFields |
build()
Builds the index fields.
|
IndexFields.Builder |
exclude(java.lang.String exclude)
Field to exclude during indexing.
|
IndexFields.Builder |
include(java.lang.String include)
Field to include during indexing.
|
IndexFields.Builder |
mappings(java.lang.String from,
java.lang.String to)
Field to map during indexing.
|
public IndexFields build()
public IndexFields.Builder exclude(java.lang.String exclude)
exclude
- field to excludepublic IndexFields.Builder include(java.lang.String include)
include
- field to includepublic IndexFields.Builder mappings(java.lang.String from, java.lang.String to)
from
- the field name to mapto
- to field name to map the field to