public class CmsSearchConfigurationCommon extends java.lang.Object implements I_CmsSearchConfigurationCommon
| Constructor and Description |
|---|
CmsSearchConfigurationCommon(java.lang.String queryParam,
java.lang.String lastQueryParam,
java.lang.Boolean escapeQueryChars,
java.lang.String reloadedParam,
java.lang.Boolean seachForEmptyQuery,
java.lang.Boolean ignoreQuery,
java.lang.String queryModifier,
java.lang.String solrIndex,
java.lang.String solrCore,
java.lang.String extraSolrParams,
java.util.Map<java.lang.String,java.lang.String> additionalParameters,
java.lang.Boolean ignoreReleaseDate,
java.lang.Boolean ignoreExpirationDate)
Constructor for the common search configuration, where all configuration parameters are provided.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getAdditionalParameters()
Returns a map from request parameter names to Solr query parts (where the parameter's values are typically inserted).
|
boolean |
getEscapeQueryChars()
Returns a flag, indicating if special query characters (e.g., ":", "(", "[" ...) should be escaped in the query string.
|
java.lang.String |
getExtraSolrParams()
Returns the extra params given to Solr.
|
boolean |
getIgnoreExpirationDate()
Flag, indicating if also resources that are expired.
|
boolean |
getIgnoreQueryParam()
Returns a flag, indicating if the query and lastquery params should be ignored when
generating the query.
|
boolean |
getIgnoreReleaseDate()
Flag, indicating if also resources that are not yet released.
|
java.lang.String |
getLastQueryParam()
Returns the parameter name of the request parameter used to send the last query string.
|
java.lang.String |
getModifiedQuery(java.lang.String queryString)
Modifies the query string according to the specified query modifier.
|
java.lang.String |
getQueryModifier()
Returns the modifier for queries.
|
java.lang.String |
getQueryParam()
Returns the parameter name of the request parameter used to send the current query string.
|
java.lang.String |
getReloadedParam()
Returns the parameter name of the request parameter used to indicate if the search form is loaded the first time or repeatedly.
|
boolean |
getSearchForEmptyQueryParam()
Returns a flag, indicating if for an empty search query, search should be performed using a wildcard.
|
java.lang.String |
getSolrCore()
Returns the Solr core that should be used.
|
java.lang.String |
getSolrIndex()
Returns the Solr index that should be used.
|
public CmsSearchConfigurationCommon(java.lang.String queryParam, java.lang.String lastQueryParam, java.lang.Boolean escapeQueryChars, java.lang.String reloadedParam, java.lang.Boolean seachForEmptyQuery, java.lang.Boolean ignoreQuery, java.lang.String queryModifier, java.lang.String solrIndex, java.lang.String solrCore, java.lang.String extraSolrParams, java.util.Map<java.lang.String,java.lang.String> additionalParameters, java.lang.Boolean ignoreReleaseDate, java.lang.Boolean ignoreExpirationDate)
queryParam - The query request param used by the search form.lastQueryParam - The last-query request param used by the search form.escapeQueryChars - A flag, indicating if special query characters in the query string should be escaped (default true).reloadedParam - The first-call request param used by the search form.seachForEmptyQuery - A flag, indicating if the empty query should be interpreted as "*:*" or if no search should be performed.ignoreQuery - A flag, indicating if the query param's values should be used for Solr query generation.queryModifier - Modifier for the given query string.solrIndex - The Solr index that should be used for the search.solrCore - The Solr core that should be used for the search.extraSolrParams - Extra params that are directly appended to each search query.additionalParameters - A map from additional request parameters to Solr query parts.ignoreReleaseDate - A flag, indicating if the release date should be ignored.ignoreExpirationDate - A flag, indicating if the expiration date should be ignored.public java.util.Map<java.lang.String,java.lang.String> getAdditionalParameters()
I_CmsSearchConfigurationCommongetAdditionalParameters in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getAdditionalParameters()public boolean getEscapeQueryChars()
I_CmsSearchConfigurationCommongetEscapeQueryChars in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getEscapeQueryChars()public java.lang.String getExtraSolrParams()
I_CmsSearchConfigurationCommongetExtraSolrParams in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getExtraSolrParams()public boolean getIgnoreExpirationDate()
I_CmsSearchConfigurationCommonNOTE: if you are not in the edit mode, the flag is ignored and expired resources are never returned.
getIgnoreExpirationDate in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getIgnoreExpirationDate()public boolean getIgnoreQueryParam()
I_CmsSearchConfigurationCommongetIgnoreQueryParam in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getIgnoreQueryParam()public boolean getIgnoreReleaseDate()
I_CmsSearchConfigurationCommonNOTE: if you are not in the edit mode, the flag is ignored and unreleased resources are never returned.
getIgnoreReleaseDate in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getIgnoreReleaseDate()public java.lang.String getLastQueryParam()
I_CmsSearchConfigurationCommongetLastQueryParam in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getLastQueryParam()public java.lang.String getModifiedQuery(java.lang.String queryString)
I_CmsSearchConfigurationCommongetModifiedQuery in interface I_CmsSearchConfigurationCommonqueryString - the query to modify.I_CmsSearchConfigurationCommon.getModifiedQuery(java.lang.String)public java.lang.String getQueryModifier()
I_CmsSearchConfigurationCommongetQueryModifier in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getQueryModifier()public java.lang.String getQueryParam()
I_CmsSearchConfigurationCommongetQueryParam in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getQueryParam()public java.lang.String getReloadedParam()
I_CmsSearchConfigurationCommongetReloadedParam in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getReloadedParam()public boolean getSearchForEmptyQueryParam()
I_CmsSearchConfigurationCommongetSearchForEmptyQueryParam in interface I_CmsSearchConfigurationCommonI_CmsSearchConfigurationCommon.getSearchForEmptyQueryParam()public java.lang.String getSolrCore()
I_CmsSearchConfigurationCommonnull.getSolrCore in interface I_CmsSearchConfigurationCommonnull if none is configured.I_CmsSearchConfigurationCommon.getSolrCore()public java.lang.String getSolrIndex()
I_CmsSearchConfigurationCommonnull.getSolrIndex in interface I_CmsSearchConfigurationCommonnull if none is configured.I_CmsSearchConfigurationCommon.getSolrIndex()