Class SearchParams
java.lang.Object
org.craftercms.studio.model.search.SearchParams
Holds the data needed to perform a search operation
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of additional fields to include for each itemThe filters to search the filesprotected StringKeywords to search in the files.protected @jakarta.validation.constraints.PositiveOrZero intThe limit to paginate the resultsprotected @jakarta.validation.constraints.PositiveOrZero intThe offset to paginate the resultsprotected booleanIndicates if OR should be used instead of ANDprotected StringRegular expression to filter the pathsprotected StringLucene query to execute.protected StringThe field to sort the resultsprotected StringThe order to sort the results -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetLimit()intgetPath()getQuery()booleanvoidsetAdditionalFields(List<String> additionalFields) voidsetFilters(Map<String, Object> filters) voidsetKeywords(String keywords) voidsetLimit(int limit) voidsetOffset(int offset) voidsetOrOperator(boolean orOperator) voidvoidvoidvoidsetSortOrder(String sortOrder)
-
Field Details
-
keywords
Keywords to search in the files. -
query
Lucene query to execute. -
path
Regular expression to filter the paths -
offset
@PositiveOrZero protected @jakarta.validation.constraints.PositiveOrZero int offsetThe offset to paginate the results -
limit
@PositiveOrZero protected @jakarta.validation.constraints.PositiveOrZero int limitThe limit to paginate the results -
sortBy
The field to sort the results -
sortOrder
The order to sort the results -
filters
The filters to search the files -
orOperator
protected boolean orOperatorIndicates if OR should be used instead of AND -
additionalFields
List of additional fields to include for each item
-
-
Constructor Details
-
SearchParams
public SearchParams()
-
-
Method Details
-
getKeywords
-
setKeywords
-
getQuery
-
setQuery
-
getPath
-
setPath
-
getOffset
public int getOffset() -
setOffset
public void setOffset(int offset) -
getLimit
public int getLimit() -
setLimit
public void setLimit(int limit) -
getSortBy
-
setSortBy
-
getSortOrder
-
setSortOrder
-
getFilters
-
setFilters
-
isOrOperator
public boolean isOrOperator() -
setOrOperator
public void setOrOperator(boolean orOperator) -
getAdditionalFields
-
setAdditionalFields
-