public interface ValueIndexer
Additionally provides constants of common field names. The usage of these names is not compulsory, but will ensure a better usability for drill down and search refinement purposes.
Modifier and Type | Field and Description |
---|---|
static String |
KEY_FIELD
Field name for language independent information representing the value.
|
static String |
VALUE_FIELD
Field name for language dependent information representing the value.
|
Modifier and Type | Method and Description |
---|---|
void |
append(String name,
String value)
Appends the given textual value for indexing with respect to the defined field name.
|
void |
appendDate(String name,
Date value)
Appends the given date value for indexing with respect to the defined field name.
|
void |
appendNumber(String name,
Number value)
Appends the given number value for indexing with respect to the defined field name.
|
boolean |
associate(Entity entity)
Associate an entity with the value under indexing, so that if the entity changes, the value
will be updated wrt. its index entry.
|
static final String KEY_FIELD
Note: Values appended as "key" will additionally be appended to a generic indexing field eligible for the standard field-based search.
static final String VALUE_FIELD
Note: Values appended as "value" will additionally be appended to a generic indexing field eligible for the standard field-based search.
void append(@NotNull String name, @Nullable String value)
keys
and values
.name
- The name to append the value for.value
- The value to be appended.KEY_FIELD
,
VALUE_FIELD
void appendDate(@NotNull String name, @Nullable Date value)
append(String,String)
for
storing a textual version of the date in a fixed format.name
- The name to append the value for.value
- The value to be appended.void appendNumber(@NotNull String name, @Nullable Number value)
append(String,String)
for
storing a textual version of the number.name
- The name to append the value for.value
- The value to be appended.boolean associate(@NotNull Entity entity)
entity
- The entity being associated with the value.true
, if the entity was accepted for association.Copyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500