@Named public class LuceneItemAdapter extends Object
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 stored in 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)
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–2019 Imixs Software Solutions GmbH. All rights reserved.