@Component(value="cuba_FtsManager") public class FtsManager extends java.lang.Object implements FtsManagerAPI
NAME| Constructor and Description |
|---|
FtsManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
asyncReindexAll() |
void |
asyncReindexEntity(java.lang.String entityName) |
void |
deleteIndex() |
void |
deleteIndexForEntity(java.lang.String entityName) |
com.haulmont.chile.core.model.MetaProperty |
getPrimaryKeyPropertyForFts(com.haulmont.chile.core.model.MetaClass metaClass)
From FTS point of view there are cases when non-PK field must be treated as primary key for building JPQL
queries, for example.
|
java.util.Queue<java.lang.String> |
getReindexEntitiesQueue() |
java.util.List<com.haulmont.cuba.core.entity.Entity> |
getSearchableEntities(com.haulmont.cuba.core.entity.Entity entity) |
boolean |
isEnabled() |
boolean |
isEntityCanBeIndexed(com.haulmont.chile.core.model.MetaClass metaClass)
Method checks whether entities of the given MetaClass can be indexed.
|
boolean |
isReindexing() |
boolean |
isWriting() |
java.lang.String |
optimize() |
int |
processQueue() |
int |
reindexAll() |
int |
reindexEntity(java.lang.String entityName) |
int |
reindexNextBatch() |
void |
setEnabled(boolean value) |
void |
setServerInfo(com.haulmont.cuba.core.app.ServerInfoAPI serverInfo) |
boolean |
showInResults(java.lang.String entityName) |
java.lang.String |
upgrade() |
@Inject public void setServerInfo(com.haulmont.cuba.core.app.ServerInfoAPI serverInfo)
public boolean isEnabled()
isEnabled in interface FtsManagerAPIpublic void setEnabled(boolean value)
setEnabled in interface FtsManagerAPIpublic boolean isWriting()
isWriting in interface FtsManagerAPIpublic boolean isReindexing()
isReindexing in interface FtsManagerAPIpublic java.util.Queue<java.lang.String> getReindexEntitiesQueue()
getReindexEntitiesQueue in interface FtsManagerAPIpublic java.util.List<com.haulmont.cuba.core.entity.Entity> getSearchableEntities(com.haulmont.cuba.core.entity.Entity entity)
getSearchableEntities in interface FtsManagerAPIpublic int processQueue()
processQueue in interface FtsManagerAPIpublic java.lang.String optimize()
optimize in interface FtsManagerAPIpublic java.lang.String upgrade()
upgrade in interface FtsManagerAPIpublic boolean showInResults(java.lang.String entityName)
showInResults in interface FtsManagerAPIpublic void deleteIndexForEntity(java.lang.String entityName)
deleteIndexForEntity in interface FtsManagerAPIpublic void deleteIndex()
deleteIndex in interface FtsManagerAPIpublic int reindexEntity(java.lang.String entityName)
reindexEntity in interface FtsManagerAPIpublic void asyncReindexEntity(java.lang.String entityName)
asyncReindexEntity in interface FtsManagerAPIpublic int reindexAll()
reindexAll in interface FtsManagerAPIpublic void asyncReindexAll()
asyncReindexAll in interface FtsManagerAPIpublic int reindexNextBatch()
reindexNextBatch in interface FtsManagerAPIpublic boolean isEntityCanBeIndexed(com.haulmont.chile.core.model.MetaClass metaClass)
FtsManagerAPIHasUuid interface is not
possible.isEntityCanBeIndexed in interface FtsManagerAPIpublic com.haulmont.chile.core.model.MetaProperty getPrimaryKeyPropertyForFts(com.haulmont.chile.core.model.MetaClass metaClass)
FtsManagerAPIWhen indexing or performing a full-text search on an entity with composite key, its 'uuid' field (if presented) must be used instead of its real primary key (embedded entity).
getPrimaryKeyPropertyForFts in interface FtsManagerAPI