Package org.opencms.jsp.search.result
Interface I_CmsSearchResultWrapper
- All Known Implementing Classes:
CmsSearchResultWrapper
public interface I_CmsSearchResultWrapper
Interface of the JSP EL friendly wrapper for all Solr search results and the search form controller.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the main controller for the search form.Returns the "Did you mean ...?" suggestion - if did you mean is enabled.org.apache.solr.client.solrj.response.SpellCheckResponse.Suggestion
Returns the suggestion of "Did you mean ...?" for the complete query - if did you mean is enabled.Returns the empty search state parameters.int
getEnd()
Returns the last index of the documents displayed.Returns the search exception if search fails.Returns the result of the query facet, i.e., the map from queries to the number of hits.Returns the map for field facet names to the search result part for that field facet.Collection<org.apache.solr.client.solrj.response.FacetField>
Returns the collection of the search result parts for the field facets.Returns the query object as send to Solr.Returns the map from the document ids to the corresponding highlighting results (as map from the highlighted field to the highlighted snippets).Returns the maximal score of the found documents.Returns for the specified facet (key) the selected facet entries that are not part of the returned facet entries are provided (value).Returns the selected facet entries that are not part of the returned facet entries are provided (value).Returns for the specified facet (key) the selected facet entries that are not part of the returned facet entries are provided (value).long
Returns the number of resources that where found.long
Returns the number of maximally returned results, this is the minimum of the number of found resultsgetNumFound()
and the number of results maximally processedI_CmsSearchConfigurationCommon.getMaxReturnedResults()
int
Returns the number of pages necessary to show all search results.int
Returns the number of the fist page that should be shown in a "Google"-like page navigation.int
Returns the number of the last page that should be shown in a "Google"-like page navigation.Returns the map for range facet names to the search result part for that range facet.Collection<org.apache.solr.client.solrj.response.RangeFacet>
Returns the collection of the search result parts for the range facets.Returns the collection of the search results that are returned by Solr.getStart()
Returns the index (starting at 1) of the first result that is returned for displaying.Returns the current search state parameters.
-
Method Details
-
getController
Returns the main controller for the search form.- Returns:
- The main controller for the search form.
-
getDidYouMeanCollated
Returns the "Did you mean ...?" suggestion - if did you mean is enabled.- Returns:
- The "Did you mean ...?" suggestion - if did you mean is enabled.
-
getDidYouMeanSuggestion
org.apache.solr.client.solrj.response.SpellCheckResponse.Suggestion getDidYouMeanSuggestion()Returns the suggestion of "Did you mean ...?" for the complete query - if did you mean is enabled.- Returns:
- The suggestion of "Did you mean ...?" for the complete query - if did you mean is enabled.
-
getEmptyStateParameters
Returns the empty search state parameters. Use the function to generate just part of the state parameters, instead of manipulating the current state.- Returns:
- The empty search state parameters.
-
getEnd
int getEnd()Returns the last index of the documents displayed.- Returns:
- The last index of the documents displayed.
-
getException
Returns the search exception if search fails.- Returns:
- The exception thrown by Solr, or
null
if the search succeeds.
-
getFacetQuery
Returns the result of the query facet, i.e., the map from queries to the number of hits.- Returns:
- The result of the query facet, i.e., the map from queries to the number of hits.
-
getFieldFacet
Map<String,org.apache.solr.client.solrj.response.FacetField> getFieldFacet()Returns the map for field facet names to the search result part for that field facet.- Returns:
- The map for field facet names to the search result part for that field facet.
-
getFieldFacets
Collection<org.apache.solr.client.solrj.response.FacetField> getFieldFacets()Returns the collection of the search result parts for the field facets.- Returns:
- The collection of the search result parts for the field facets.
-
getFinalQuery
Returns the query object as send to Solr.- Returns:
- The query object as send to Solr.
-
getHighlighting
Returns the map from the document ids to the corresponding highlighting results (as map from the highlighted field to the highlighted snippets).- Returns:
- The map from the document ids to the corresponding highlighting results (as map from the highlighted field to the highlighted snippets).
-
getMaxScore
Returns the maximal score of the found documents.- Returns:
- The maximal score of the found documents.
-
getMissingSelectedFieldFacetEntries
Returns for the specified facet (key) the selected facet entries that are not part of the returned facet entries are provided (value).- Returns:
- For the specified facet (key) the selected facet entries that are not part of the returned facet entries are provided (value).
-
getMissingSelectedQueryFacetEntries
Returns the selected facet entries that are not part of the returned facet entries are provided (value).- Returns:
- The selected facet entries that are not part of the returned facet entries are provided (value).
-
getMissingSelectedRangeFacetEntries
Returns for the specified facet (key) the selected facet entries that are not part of the returned facet entries are provided (value).- Returns:
- For the specified facet (key) the selected facet entries that are not part of the returned facet entries are provided (value).
-
getNumFound
long getNumFound()Returns the number of resources that where found.- Returns:
- The number of resources that where found.
-
getNumMaxReturned
long getNumMaxReturned()Returns the number of maximally returned results, this is the minimum of the number of found resultsgetNumFound()
and the number of results maximally processedI_CmsSearchConfigurationCommon.getMaxReturnedResults()
- Returns:
- the number of maximally returned results.
-
getNumPages
int getNumPages()Returns the number of pages necessary to show all search results.- Returns:
- The number of pages necessary to show all search results.
-
getRangeFacet
Map<String,org.apache.solr.client.solrj.response.RangeFacet> getRangeFacet()Returns the map for range facet names to the search result part for that range facet.- Returns:
- The map for range facet names to the search result part for that range facet.
-
getRangeFacets
Collection<org.apache.solr.client.solrj.response.RangeFacet> getRangeFacets()Returns the collection of the search result parts for the range facets.- Returns:
- The collection of the search result parts for the range facets.
-
getSearchResults
Returns the collection of the search results that are returned by Solr.- Returns:
- The collection of the search results that are returned by Solr.
-
getStart
Returns the index (starting at 1) of the first result that is returned for displaying.- Returns:
- The index (starting at 1) of the first result that is returned for displaying.
-
getStateParameters
Returns the current search state parameters.- Returns:
- The current search state parameters.
-