@Service(value="cuba_FtsService") public class FtsServiceBean extends java.lang.Object implements FtsService
NAME| Constructor and Description |
|---|
FtsServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
collectEntityHierarchyNames(java.lang.String entityName) |
java.lang.String |
getHitPropertyCaption(java.lang.String entityName,
java.lang.String hitProperty) |
com.haulmont.chile.core.model.MetaProperty |
getPrimaryKeyPropertyForFts(com.haulmont.chile.core.model.MetaClass metaClass)
See
FtsManagerAPI#getPrimaryKeyPropertyForFts() javadoc for details |
boolean |
isEntityIndexed(java.lang.String entityName)
Checks whether an entity is indexed by full text search engine
|
SearchResult |
search(java.lang.String searchTerm,
java.util.List<java.lang.String> entityNames)
Performs a full text search.
|
SearchResult |
search(java.lang.String searchTerm,
QueryKey queryKey)
Performs a full text search among all entities described in fts
configuration file.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsearchpublic SearchResult search(java.lang.String searchTerm, QueryKey queryKey)
FtsServiceFtsConfig.getMaxSearchResults()search in interface FtsServicepublic SearchResult search(java.lang.String searchTerm, java.util.List<java.lang.String> entityNames)
FtsServiceentityNames parameter.
Please notice that the result will contain all entities that match a search criteria
search in interface FtsServicepublic boolean isEntityIndexed(java.lang.String entityName)
FtsServiceisEntityIndexed in interface FtsServicepublic java.util.List<java.lang.String> collectEntityHierarchyNames(java.lang.String entityName)
collectEntityHierarchyNames in interface FtsServicepublic java.lang.String getHitPropertyCaption(java.lang.String entityName,
java.lang.String hitProperty)
getHitPropertyCaption in interface FtsServicepublic com.haulmont.chile.core.model.MetaProperty getPrimaryKeyPropertyForFts(com.haulmont.chile.core.model.MetaClass metaClass)
FtsServiceFtsManagerAPI#getPrimaryKeyPropertyForFts() javadoc for detailsgetPrimaryKeyPropertyForFts in interface FtsService