|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SolrIndexService
| Method Summary | |
|---|---|
org.apache.solr.common.SolrInputDocument |
buildDocument(Product product,
List<Field> fields,
List<Locale> locales)
Given a product, fields that relate to that product, and a list of locales and pricelists, builds a SolrInputDocument to be added to the Solr index. |
void |
buildIncrementalIndex(int page,
int pageSize,
boolean useReindexServer)
The internal method for building indexes. |
List<Locale> |
getAllLocales()
|
void |
logDocuments(Collection<org.apache.solr.common.SolrInputDocument> documents)
Prints out the docs to the trace logger |
void |
optimizeIndex(org.apache.solr.client.solrj.SolrServer server)
Triggers the Solr optimize index function on the given server |
void |
rebuildIndex()
Rebuilds the current index. |
void |
restoreState(Object[] pack)
Restores state that was saved prior to indexing that might have been altered. |
Object[] |
saveState()
Saves some global context that might be altered during indexing. |
| Method Detail |
|---|
void rebuildIndex()
throws ServiceException,
IOException
IOException
ServiceException
void buildIncrementalIndex(int page,
int pageSize,
boolean useReindexServer)
throws ServiceException
page - pageSize - useReindexServer - - if set to false will index directly on the primary server
ServiceExceptionrestoreState(Object[])Object[] saveState()
void restoreState(Object[] pack)
pack - saveState()
void optimizeIndex(org.apache.solr.client.solrj.SolrServer server)
throws ServiceException,
IOException
server -
ServiceException
IOExceptionvoid logDocuments(Collection<org.apache.solr.common.SolrInputDocument> documents)
documents - List<Locale> getAllLocales()
org.apache.solr.common.SolrInputDocument buildDocument(Product product,
List<Field> fields,
List<Locale> locales)
product - fields - locales -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||