meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
sap_hybris_commerce:search:commerce_search_key_concepts_features [2019/08/28 11:35] – created Antonio Robirosasap_hybris_commerce:search:commerce_search_key_concepts_features [2023/03/09 13:49] (current) – [Get the complete solr query] Antonio Robirosa
Line 19: Line 19:
     * The boosting rules are applied to all the solr queries.     * The boosting rules are applied to all the solr queries.
  
 +===== Useful tips =====
 +==== Get the complete solr query ====
 +
 +If you need to troubleshoot solr at a deep level like understanding the product boosting or escalation, you need to get the solr query and use it directly in the solr console. To see that query in the console, please use the following logging configuration:
 +<code>
 +log4j2.logger.DefaultFacetSearchStrategy.name = de.hybris.platform.solrfacetsearch.search.impl.DefaultFacetSearchStrategy
 +log4j2.logger.DefaultFacetSearchStrategy.level = DEBUG
 +log4j2.logger.DefaultFacetSearchStrategy.appenderRef.stdout.ref = STDOUT
 +log4j2.logger.DefaultFacetSearchStrategy.additivity = false
 +</code>
 +
 +[[https://stackoverflow.com/questions/67520279/which-package-should-i-enable-to-log-the-solr-query-in-the-tomcat-logs-or-the-co|You can also add the solrQueryDebuggingListener in the SolrFacetSearchConfig.]]
 +
 +You will find the field in the administration tab:
 +{{ :sap_hybris_commerce:search:solrquerydebugginglistener_2023-03-09_14-46-25.jpg?nolink |}}
 ===== Hybris documentation ====== ===== Hybris documentation ======
  
-There isn't much documentation and it is incomplete. Here is the starting page. [[https://wiki.hybris.com/display/release5/Commerce+Search+Module|https://wiki.hybris.com/display/release5/Commerce+Search+Module]]+There isn't much documentation and it is incomplete. Here is the starting page. [[https://wiki.hybris.com/display/release5/Commerce+Search+Module|Commerce Search Module of Hybris 5.x]]
  
---Based on Hybris 5.3+--Based on Hybris 2105.10