Interface LuceneIndexer
- All Superinterfaces:
BusinessObject
,BusinessProcessor
- All Known Implementing Classes:
BasicLuceneIndexer
Interface for classes that create the Lucene index for advanced search
functionality.
When the application needs to create an instance that implements
LuceneIndexer
,
BusinessObjectFactory
finds the name of the Java class to instantiate from the
"luceneIndexerImplementer" setting in the
appComponents.properties
file.
The default "luceneIndexerImplementer" is
BasicLuceneIndexer
.
- Author:
- Jason McWilliams, David Tobey
-
Method Summary
Modifier and TypeMethodDescriptionaddEditCategory
(int categoryID, String indexDir) addEditManufacturer
(int manufacturerID, String indexDir) addEditProduct
(int productID, String indexDir) void
addStringFields
(org.apache.lucene.document.Document doc, Object object, StringBuffer contentBuffer) void
addStringFields
(org.apache.lucene.document.Document doc, Object object, StringBuffer contentBuffer, String[] fieldsToIndex) Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessProcessor
getAppComponents, getAppSettings, getBusinessObjectFactory, getDaoFactory, getEventBus, getInjector, getSettings, getUser, setAppComponents, setAppSettings, setBusinessObjectFactory, setDaoFactory, setEventBus, setInjector, setSettings, setUser, utils
-
Method Details
-
reindex
- Throws:
Exception
-
addStringFields
void addStringFields(org.apache.lucene.document.Document doc, Object object, StringBuffer contentBuffer) throws Exception - Throws:
Exception
-
addStringFields
void addStringFields(org.apache.lucene.document.Document doc, Object object, StringBuffer contentBuffer, String[] fieldsToIndex) throws Exception - Throws:
Exception
-
addEditProduct
- Throws:
Exception
-
addEditCategory
- Throws:
Exception
-
addEditManufacturer
- Throws:
Exception
-