public class IndexField extends Object
FullTextIndexType| Modifier and Type | Field and Description |
|---|---|
float |
boost
The boost value to use for this field during ranking
|
ArrayList |
childrenFields
The child fields of this field
|
boolean |
highlightable
An indicator of whether to include or exclude the field in the snippets
|
boolean |
index
An indicator of whether to index the field
|
String |
name
The name of the field
|
boolean |
returned
An indicator of whether to return the field (in the results from a query)
|
boolean |
sort
An indicator of whether to sort the field
|
boolean |
store
An indicator of whether to store the field
|
boolean |
tokenize
An indicator of whether to tokenize the field
|
String |
type
The type of the field
|
| Constructor and Description |
|---|
IndexField()
Empty constructor.
|
IndexField(String name,
String type,
boolean index,
boolean tokenize,
boolean store,
boolean returned,
boolean highlightable,
boolean sort,
float boost)
Constructor setting all field attributes.
|
public String name
public String type
public boolean index
public boolean tokenize
public boolean store
public boolean returned
public boolean highlightable
public boolean sort
public float boost
public ArrayList childrenFields
public IndexField()
public IndexField(String name, String type, boolean index, boolean tokenize, boolean store, boolean returned, boolean highlightable, boolean sort, float boost)
name - -
The name of the new fieldindex - -
An indicator of whether to index the new fieldtokenize - -
An indicator of whether to tokenize the new fieldstore - -
An indicator of whether to store the new fieldreturned - -
An indicator of whether to return the new field (in the
results from a query)sort - -
An indicator of whether to sort the new fieldboost - -
The boost value to use for the new field during rankingpublic void addChildField(IndexField field)
IndexField sub field to this fieldfield - IndexField - the sub field to be addedCopyright © 2014. All Rights Reserved.