@Named public class LuceneItemAdapter extends Object
You can overwrite the bean to provide an alternative method of value conversion.
LuceneUdpateService#addItemValues| Constructor and Description |
|---|
LuceneItemAdapter() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.index.IndexableField |
adaptItemValue(String itemName,
Object itemValue,
boolean doAnalyze)
Creates a Indexable Lucene Field to be added into a Lucene document.
|
org.apache.lucene.index.IndexableField |
adaptItemValue(String itemName,
Object itemValue,
boolean doAnalyze,
org.apache.lucene.document.Field.Store stored)
Creates a Indexable Lucene Field to be added into a Lucene document.
|
org.apache.lucene.document.SortedDocValuesField |
adaptSortableItemValue(String itemName,
Object itemValue)
This method converts an ItemValue into a SortedDocValuesField.
|
String |
convertItemValue(Object itemValue)
This method converts a ItemValue into a indexable text format.
|
public org.apache.lucene.index.IndexableField adaptItemValue(String itemName, Object itemValue, boolean doAnalyze)
The item value will not be stored into the lucene document
itemName - - name of the item will be used as the doc field nameitemValue - - the item value which will be converted by the method convertItemValuedoAnalyze - - if true the content will by analyzed by the LuceneAnalyzer configured in the
IndexWriterpublic org.apache.lucene.index.IndexableField adaptItemValue(String itemName, Object itemValue, boolean doAnalyze, org.apache.lucene.document.Field.Store stored)
The parameter 'store' indicates if Lucene should store the item value in the document
Store.NO - Store.YES
itemName - - name of the item will be used as the doc field nameitemValue - - the item value which will be converted by the method convertItemValuedoAnalyze - - if true the content will by analyzed by the LuceneAnalyzer configured in the
IndexWriterpublic org.apache.lucene.document.SortedDocValuesField adaptSortableItemValue(String itemName, Object itemValue)
itemName - - name of the item will be used as the doc field nameitemValue - - the item value which will be converted by the method convertItemValuepublic String convertItemValue(Object itemValue)
itemValue - - object to be converted into a stringCopyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.