Package org.codelibs.fess.app.web.base
Class SearchForm
java.lang.Object
org.codelibs.fess.entity.SearchRequestParams
org.codelibs.fess.app.web.base.SearchForm
Base search form class that extends SearchRequestParams.
Provides form fields and methods for handling search requests in the web interface.
Contains validation constraints and convenience methods for parameter processing.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codelibs.fess.entity.SearchRequestParams
SearchRequestParams.SearchRequestType -
Field Summary
FieldsModifier and TypeFieldDescriptionMap of advanced search conditions.String[]Array of additional query strings to exclude from search.Map of additional search fields with their values.String[]Array of language codes to filter search results.The number of search results to return per page.The offset for search results.The page number for pagination.@Size(max=1000) StringThe main search query string.@Size(max=1000) StringSimilar document hash for finding related documents.@Size(max=1000) StringThe sort parameter for search results.The starting position for search results pagination.@Size(max=100) StringParameter to control tracking of total hits in search results.Fields inherited from class org.codelibs.fess.entity.SearchRequestParams
AS_EPQ, AS_FILETYPE, AS_NQ, AS_OCCURRENCE, AS_OQ, AS_Q, AS_SITESEARCH, AS_TIMESTAMP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Returns the attribute.Returns the conditions.String[]Returns the extra queries.Returns the facet info.Returns the fields.Returns the geo info.Returns the highlight info.String[]Returns the languages.Returns the locale.intReturns the offset.intReturns the page size.getQuery()Returns the query.Returns the similar document hash.getSort()Returns the sort.intReturns the start position.Returns the track total hits.getType()Returns the search request type.Methods inherited from class org.codelibs.fess.entity.SearchRequestParams
createFacetInfo, createGeoInfo, getMinScore, getParamValueArray, getResponseFields, hasConditionQuery, isEmptyArray, simplifyArray
-
Field Details
-
fields
Map of additional search fields with their values. -
as
Map of advanced search conditions. -
q
The main search query string. -
sort
The sort parameter for search results. -
num
The number of search results to return per page. -
lang
Array of language codes to filter search results. -
ex_q
Array of additional query strings to exclude from search. -
start
The starting position for search results pagination. -
offset
The offset for search results. -
pn
The page number for pagination. -
sdh
Similar document hash for finding related documents. -
track_total_hits
Parameter to control tracking of total hits in search results.
-
-
Constructor Details
-
SearchForm
public SearchForm()Default constructor for SearchForm.
-
-
Method Details
-
getStartPosition
public int getStartPosition()Description copied from class:SearchRequestParamsReturns the start position.- Specified by:
getStartPositionin classSearchRequestParams- Returns:
- The start position.
-
getOffset
public int getOffset()Description copied from class:SearchRequestParamsReturns the offset.- Specified by:
getOffsetin classSearchRequestParams- Returns:
- The offset.
-
getPageSize
public int getPageSize()Description copied from class:SearchRequestParamsReturns the page size.- Specified by:
getPageSizein classSearchRequestParams- Returns:
- The page size.
-
getQuery
Description copied from class:SearchRequestParamsReturns the query.- Specified by:
getQueryin classSearchRequestParams- Returns:
- The query.
-
getExtraQueries
Description copied from class:SearchRequestParamsReturns the extra queries.- Specified by:
getExtraQueriesin classSearchRequestParams- Returns:
- The extra queries.
-
getFields
Description copied from class:SearchRequestParamsReturns the fields.- Specified by:
getFieldsin classSearchRequestParams- Returns:
- The fields.
-
getLanguages
Description copied from class:SearchRequestParamsReturns the languages.- Specified by:
getLanguagesin classSearchRequestParams- Returns:
- The languages.
-
getGeoInfo
Description copied from class:SearchRequestParamsReturns the geo info.- Specified by:
getGeoInfoin classSearchRequestParams- Returns:
- The geo info.
-
getFacetInfo
Description copied from class:SearchRequestParamsReturns the facet info.- Specified by:
getFacetInfoin classSearchRequestParams- Returns:
- The facet info.
-
getHighlightInfo
Description copied from class:SearchRequestParamsReturns the highlight info.- Specified by:
getHighlightInfoin classSearchRequestParams- Returns:
- The highlight info.
-
getSort
Description copied from class:SearchRequestParamsReturns the sort.- Specified by:
getSortin classSearchRequestParams- Returns:
- The sort.
-
getAttribute
Description copied from class:SearchRequestParamsReturns the attribute.- Specified by:
getAttributein classSearchRequestParams- Parameters:
name- The name of the attribute.- Returns:
- The attribute.
-
getLocale
Description copied from class:SearchRequestParamsReturns the locale.- Specified by:
getLocalein classSearchRequestParams- Returns:
- The locale.
-
getType
Description copied from class:SearchRequestParamsReturns the search request type.- Specified by:
getTypein classSearchRequestParams- Returns:
- The search request type.
-
getSimilarDocHash
Description copied from class:SearchRequestParamsReturns the similar document hash.- Specified by:
getSimilarDocHashin classSearchRequestParams- Returns:
- The similar document hash.
-
getConditions
Description copied from class:SearchRequestParamsReturns the conditions.- Specified by:
getConditionsin classSearchRequestParams- Returns:
- The conditions.
-
getTrackTotalHits
Description copied from class:SearchRequestParamsReturns the track total hits.- Overrides:
getTrackTotalHitsin classSearchRequestParams- Returns:
- The track total hits.
-