com.raritantechnologies.federated.lucene
Class LuceneSearchSourceFactory
java.lang.Object
com.raritantechnologies.searchApp.XMLSearchSourceFactory
com.raritantechnologies.federated.lucene.LuceneSearchSourceFactory
- All Implemented Interfaces:
- IXMLSearchSourceFactory
- public class LuceneSearchSourceFactory
- extends XMLSearchSourceFactory
Factory object that can initialize an LuceneSearchSource
from its <SourceType> configuration tag.
XML Configuration Template:
<SourceType name="[ source name ]" type="LuceneSearchSource" displayName="[ source display name ]"
sourceFactoryClass="com.raritantechnologies.federated.lucene.LuceneSearchSourceFactory"
queryProcessor="com.raritantechnologies.federated.lucene.LuceneQueryProcessor"
indexPath="[ path to Lucene Index ]"
blankQueryReturnsAll="true(default)|false"
wildcardField="[ field to use for wildcard (blank) searches ]"
IDField="[ field to use for document ID ]"
URLField="[ field that has document URL ]"
titleField="[ field that has document title ]"
freeTextFieldOperator="AND(default)|ALL|ANY|OR" >
<SearchFields>
<Field ID="[ fieldID ]"
luceneField="[ field name in Lucene ]"
display="[ name of field in display ]"
exactMatch="[ true|false(default) ]"
freeText="[ true|false(default) ]"
caseSensitive="[ true | false(default) ]" />
<!-- etc. . . -->
</SearchFields>
</SourceType>
Developed by
Raritan Technologies Inc..
- Author:
- Ted Sullivan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneSearchSourceFactory
public LuceneSearchSourceFactory()
createSearchSources
public SearchSource[] createSearchSources(org.w3c.dom.Element sourceElem,
ISearchFieldMapFactory factory)
- Specified by:
createSearchSources in interface IXMLSearchSourceFactory- Specified by:
createSearchSources in class XMLSearchSourceFactory