Package io.jmix.search.searching
Class SearchContext
java.lang.Object
io.jmix.search.searching.SearchContext
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets names of entities to search within.int
Gets amount of documents to skip within search.Gets text that should be found.int
getSize()
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
-
size
protected int size -
offset
protected int offset -
searchText
-
entities
-
-
Constructor Details
-
SearchContext
-
-
Method Details
-
getSize
public int getSize()Gets max amount of documents in result set.- Returns:
- Size
-
setSize
Sets max amount of documents in result set.- Parameters:
size
- Size. Must be positive- Returns:
- Current
SearchContext
-
getOffset
public int getOffset()Gets amount of documents to skip within search.- Returns:
- Offset
-
setOffset
Sets amount of documents to skip within search.- Parameters:
offset
- Offset. Must be positive- Returns:
- Current
SearchContext
-
getSearchText
Gets text that should be found.- Returns:
- Search text
-
setEntities
Sets names of entities to search within. Empty list means all indexed entities.- Parameters:
entities
- List of entity names- Returns:
- Current
SearchContext
-
setEntities
Sets names of entities to search within. Empty list means all indexed entities.- Parameters:
entities
- List of entity names- Returns:
- Current
SearchContext
-
getEntities
Gets names of entities to search within. Empty list means all indexed entities.- Returns:
- List of entity names
-
toString
-