org.openanzo.indexer.lucene
Class LuceneIndexerFactory

java.lang.Object
  extended by org.openanzo.indexer.IndexerFactoryBase
      extended by org.openanzo.indexer.lucene.LuceneIndexerFactory
Direct Known Subclasses:
ModelIndexerFactory

public class LuceneIndexerFactory
extends IndexerFactoryBase

Factory for the simple Lucene-based indexer.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
LuceneIndexerFactory()
           
 
Method Summary
 IIndexer createIndexer(java.util.Properties properties)
          Create an indexer for the given properties
 IQuery createQuery(java.util.Properties properties)
          Create an IQuery for the given properties
 IQuery createQueryFromDefaultFieldAndText(java.lang.String field, java.lang.String text)
          Return IQuery for the given default field and text
 ISearch createSearch(java.util.Properties properties)
          Create an ISearch object for the given properties
 ISearch createSearchFromLocation(java.lang.String location)
          Create an ISearch object from the given location
 
Methods inherited from class org.openanzo.indexer.IndexerFactoryBase
getFactory, getFactory
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneIndexerFactory

public LuceneIndexerFactory()
Method Detail

createIndexer

public IIndexer createIndexer(java.util.Properties properties)
                       throws IndexerException
Description copied from class: IndexerFactoryBase
Create an indexer for the given properties

Specified by:
createIndexer in class IndexerFactoryBase
Parameters:
properties - configuration properties for creating indexer
Returns:
indexer for the given properties
Throws:
IndexerException

createQuery

public IQuery createQuery(java.util.Properties properties)
                   throws IndexerException
Description copied from class: IndexerFactoryBase
Create an IQuery for the given properties

Specified by:
createQuery in class IndexerFactoryBase
Parameters:
properties - configuration properties
Returns:
IQuery for the given properties
Throws:
IndexerException

createQueryFromDefaultFieldAndText

public IQuery createQueryFromDefaultFieldAndText(java.lang.String field,
                                                 java.lang.String text)
                                          throws IndexerException
Description copied from class: IndexerFactoryBase
Return IQuery for the given default field and text

Specified by:
createQueryFromDefaultFieldAndText in class IndexerFactoryBase
Parameters:
field - This parameter specifies the default field for the query to take place over (When items are inserted into the index, they usually have one or more fields associated with them).
text - Query text to search for.
Returns:
IQuery for the given default field and text
Throws:
IndexerException

createSearch

public ISearch createSearch(java.util.Properties properties)
                     throws IndexerException
Description copied from class: IndexerFactoryBase
Create an ISearch object for the given properties

Specified by:
createSearch in class IndexerFactoryBase
Parameters:
properties - configuration properties
Returns:
ISearch object for the given properties
Throws:
IndexerException

createSearchFromLocation

public ISearch createSearchFromLocation(java.lang.String location)
                                 throws IndexerException
Description copied from class: IndexerFactoryBase
Create an ISearch object from the given location

Specified by:
createSearchFromLocation in class IndexerFactoryBase
Parameters:
location - location of properties
Returns:
ISearch object for the properties at the given location
Throws:
IndexerException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.