Contents

Bundle: org.eclipse.eilf.lucene.LuceneIndexService

Description

This ProcessingService is used to index SMILA records in a Lucene document index. It supports adding, updating and deleting of records.

Configuration

Annotations

The LuceneIndexService uses the Annotation org.eclipse.eilf.lucene.LuceneIndexService on records to decide how to handle a record. It supports the following required values.

Name

Value

Description

indexName

a String

the name of the index to work on

executionMode

ADD or DELETE

ADD - add or update the record, DELETE - delete the record from the index

Configuration files

configuration/com.brox.anyfinder.datadictionary/DataDictionary.xml

Here the Lucene index structure and the search template are configured. It is possible to define more than one index here. The index to work on is set by the Annotation "indexName". The defined "FieldNo" are referenced in LuceneAttributeMapping.xml and LuceneAttachmentMapping.xml. For more information about configuration of DataDictionary.xml see Anyfinder documentation.

configuration/org.eclipse.eilf.lucene/Mappings.xml

Here a mapping of attribute and attachment names to Lucene "FieldNo" (defined in DataDictionary.xml) is configured. It is possible to define mappings for multiple indexes in this file, using the same "indexName" as in file DataDictionary.xml.

Example

The following example was used in the SMILA example application to index records delivered by Filesystem- and WebCrawler.