Package io.jmix.search.searching
Class SearchContext
java.lang.Object
io.jmix.search.searching.SearchContext
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets names of entities to search within.intGets amount of documents to skip within search.Gets text that should be found.intgetSize()Gets max amount of documents in result set.setEntities(String... entities) Sets names of entities to search within.setEntities(List<String> entities) Sets names of entities to search within.setOffset(int offset) Sets amount of documents to skip within search.setSize(int size) Sets max amount of documents in result set.toString()
- 
Field Details- 
sizeprotected int size
- 
offsetprotected int offset
- 
searchText
- 
entities
 
- 
- 
Constructor Details- 
SearchContext
 
- 
- 
Method Details- 
getSizepublic int getSize()Gets max amount of documents in result set.- Returns:
- Size
 
- 
setSizeSets max amount of documents in result set.- Parameters:
- size- Size. Must be positive
- Returns:
- Current SearchContext
 
- 
getOffsetpublic int getOffset()Gets amount of documents to skip within search.- Returns:
- Offset
 
- 
setOffsetSets amount of documents to skip within search.- Parameters:
- offset- Offset. Must be positive
- Returns:
- Current SearchContext
 
- 
getSearchTextGets text that should be found.- Returns:
- Search text
 
- 
getEscapedSearchText
- 
setEntitiesSets names of entities to search within. Empty list means all indexed entities.- Parameters:
- entities- List of entity names
- Returns:
- Current SearchContext
 
- 
setEntitiesSets names of entities to search within. Empty list means all indexed entities.- Parameters:
- entities- List of entity names
- Returns:
- Current SearchContext
 
- 
getEntitiesGets names of entities to search within. Empty list means all indexed entities.- Returns:
- List of entity names
 
- 
toString
 
-