public interface IFieldMapper
Document fields. You can provide your
own field mapper to LuceneDocumentSource using the
LuceneDocumentSource.fieldMapper attribute.| Modifier and Type | Method and Description |
|---|---|
String[] |
getSearchFields()
Return the names of search fields in the index.
|
void |
map(org.apache.lucene.search.Query luceneQuery,
org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.document.Document luceneDoc,
Document doc)
Map Lucene index's fields onto Carrot2
Document instance. |
String[] getSearchFields()
void map(org.apache.lucene.search.Query luceneQuery,
org.apache.lucene.analysis.Analyzer analyzer,
org.apache.lucene.document.Document luceneDoc,
Document doc)
Document instance.
It is sensible to map at least Document.CONTENT_URL,
Document.TITLE and
Document.SUMMARY.luceneQuery - Query used to fetch Lucene document from the index. It
is advised to cache any query-related data internally and if this
parameter does not change, reuse that data.analyzer - Analyzer used for creating the index.luceneDoc - Lucene hit.doc - Target Carrot2 document.