Package com.logicaldoc.core.automation
Class SearchTool
java.lang.Object
com.logicaldoc.core.automation.SearchTool
Utility methods to do searches from within Automation
- Since:
- 8.6.1
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionnewSearch(SearchOptions options) Factory method for searches.Executes a search directly in the full-text indexExecutes a search directly in the full-text indexsearch(SearchOptions options) Instantiates a newSearch
- 
Constructor Details- 
SearchToolpublic SearchTool()
 
- 
- 
Method Details- 
newSearchFactory method for searches.- Parameters:
- options- the search criteria
- Returns:
- a Searchinstance for the given search options
 
- 
searchInstantiates a newSearch- Parameters:
- options- the search criteria
- Returns:
- The list of hits that satisfy the search criteria
- Throws:
- SearchException- Raised in case of an error during the search
 
- 
searchExecutes a search directly in the full-text index- Parameters:
- tenantId- the tenant
- expression- the search expression
- expressionLanguage- the language of the expression
- Returns:
- the hits
- Since:
- 8.7.4
 
- 
searchpublic List<Hit> search(long tenantId, String expression, Set<String> filters, String expressionLanguage) Executes a search directly in the full-text index- Parameters:
- tenantId- the tenant
- expression- the search expression
- filters- some optional filters
- expressionLanguage- the language of the expression
- Returns:
- the hits
- Since:
- 8.7.4
 
 
-