public class SearchResultFilter extends Object implements ResultFilter
| Constructor and Description |
|---|
SearchResultFilter() |
| Modifier and Type | Method and Description |
|---|---|
static ResultFilter |
create() |
ResultFilter |
enableHighlightInAll()
Enables highlight in all fields.
|
ResultFilter |
enableHighlighting()
Enables highlighting for the results.
|
ResultFilter |
excludeFields(Set<String> fields)
Excludes Fields from the results.
|
OptionalInt |
getEndOfRange()
Returns the preset result set end.
|
Optional<Set<String>> |
getExcludeFields()
Returns the preset exclude filters.
|
String |
getIndex()
Returns the index.
|
OptionalInt |
getMaxResults()
Returns the preset max results.
|
OptionalInt |
getStartOfRange()
Returns the preset result set start.
|
boolean |
highLightInAllIsEnabled()
Use to highlight in all fields.
|
boolean |
highLightingIsEnabled()
Checks whether highlighting in results is enabled.
|
ResultFilter |
maxResults(int maxResults)
Sets the maximum number of results to retrieve.
|
ResultFilter |
setIndex(String indexParam)
Sets the index.
|
ResultFilter |
withResultSetRange(int start,
int end)
Gets a result set range.
|
public static ResultFilter create()
public ResultFilter excludeFields(Set<String> fields)
ResultFilterexcludeFields in interface ResultFilterfields - a String array of field names to exclude.public ResultFilter withResultSetRange(int start, int end)
ResultFilterUsed to page results.
withResultSetRange in interface ResultFilterstart - The start offsetend - The end offsetpublic ResultFilter maxResults(int maxResults)
ResultFiltermaxResults in interface ResultFiltermaxResults - the maximum number of results.public ResultFilter enableHighlighting()
ResultFilterenableHighlighting in interface ResultFilterpublic ResultFilter enableHighlightInAll()
ResultFilterenableHighlightInAll in interface ResultFilterpublic Optional<Set<String>> getExcludeFields()
QueryFiltergetExcludeFields in interface QueryFilterpublic OptionalInt getStartOfRange()
QueryFiltergetStartOfRange in interface QueryFilterpublic OptionalInt getEndOfRange()
QueryFiltergetEndOfRange in interface QueryFilterpublic OptionalInt getMaxResults()
QueryFiltergetMaxResults in interface QueryFilterpublic boolean highLightingIsEnabled()
QueryFilterhighLightingIsEnabled in interface QueryFilterpublic boolean highLightInAllIsEnabled()
QueryFilterhighLightInAllIsEnabled in interface QueryFilterpublic ResultFilter setIndex(String indexParam)
ResultFiltersetIndex in interface ResultFilterindexParam - the index name.public String getIndex()
QueryFiltergetIndex in interface QueryFilterCopyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries