Class CmsPlainQuerySearchConfigurationParser
java.lang.Object
org.opencms.jsp.search.config.parser.CmsPlainQuerySearchConfigurationParser
- All Implemented Interfaces:
I_CmsSearchConfigurationParser
public class CmsPlainQuerySearchConfigurationParser
extends Object
implements I_CmsSearchConfigurationParser
Search configuration parser reading a configuration containing a plain Solr query.
Only fl might be added additionally.
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Log
Logger for the class.protected String
The whole query string. -
Constructor Summary
ConstructorDescriptionConstructor taking the JSON as String.CmsPlainQuerySearchConfigurationParser
(String query, I_CmsSearchConfiguration baseConfig) Constructor taking the JSON as String. -
Method Summary
Modifier and TypeMethodDescriptionparseCommon
(CmsObject cms) Returns the common search configuration.Returns the configuration for the "Did you mean ...?" feature.Returns the configuration for the field facets.Returns the configuration for the Geo filter.Returns the configuration for the highlighting.Returns the configuration for the pagination.Returns the configuration for the query facet.Returns the configuration for the range facets.Returns the configuration for sorting.
-
Field Details
-
LOG
Logger for the class. -
m_queryString
The whole query string.
-
-
Constructor Details
-
CmsPlainQuerySearchConfigurationParser
Constructor taking the JSON as String.- Parameters:
query
- The query that is passed to Solr.
-
CmsPlainQuerySearchConfigurationParser
Constructor taking the JSON as String.- Parameters:
query
- The query that is passed to Solr (additional Solr params).baseConfig
- A base configuration that is adjusted by the JSON configuration string.
-
-
Method Details
-
parseCommon
Description copied from interface:I_CmsSearchConfigurationParser
Returns the common search configuration.- Specified by:
parseCommon
in interfaceI_CmsSearchConfigurationParser
- Parameters:
cms
- the current context- Returns:
- The common search configuration.
- See Also:
-
parseDidYouMean
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for the "Did you mean ...?" feature.- Specified by:
parseDidYouMean
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for the "Did you mean ...?" feature.
- See Also:
-
parseFieldFacets
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for the field facets.- Specified by:
parseFieldFacets
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for the field facets.
- See Also:
-
parseGeoFilter
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for the Geo filter.- Specified by:
parseGeoFilter
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for the Geo filter.
- See Also:
-
parseHighlighter
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for the highlighting.- Specified by:
parseHighlighter
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for the highlighting.
- See Also:
-
parsePagination
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for the pagination.- Specified by:
parsePagination
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for the pagination.
- See Also:
-
parseQueryFacet
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for the query facet.- Specified by:
parseQueryFacet
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for the query facet.
- See Also:
-
parseRangeFacets
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for the range facets.- Specified by:
parseRangeFacets
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for the range facets.
- See Also:
-
parseSorting
Description copied from interface:I_CmsSearchConfigurationParser
Returns the configuration for sorting.- Specified by:
parseSorting
in interfaceI_CmsSearchConfigurationParser
- Returns:
- The configuration for sorting.
- See Also:
-