Every IndexPattern corresponds to a Lucene document field. For every Xindice document, value of all matching elements will be indexed by a single Lucene document, allowing to search across the patterns.
Sample LuceneIndexer configuration:
<index name='fulltext' class='org.apache.xindice.core.indexer.LuceneIndexer' analyzer='org.apache.lucene.analysis.SimpleAnalyzer'> <pattern pattern='meta@title' alias='title'/> <pattern pattern='description' alias='text'/> </index>
To search over this sample index, one could issue a query "title:tutorial AND text:xml"
.
For more details about LuceneIndexer configuration please see documentation for {@link #setConfig(org.apache.xindice.util.Configuration)}
@author Andy Armstrong @version $Revision: 586647 $, $Date: 2007-10-19 20:32:43 -0400 (Fri, 19 Oct 2007) $
|
|
|
|