Professional Documents
Culture Documents
DefaultFacetSearchStrategy
DefaultSolrFieldSearchFacadeStrategy
LegacyFacetSearchStrategy
DefaultSolrQueryConverter
DefaultFacetSearchService (raw query)
In HMC http://localhost:9001/hmc/hybris
DebugResultDataPostProcessor.java
// Display raw Solr result for debugging
public class DebugResultDataPostProcessor implements
SolrResultPostProcessor
{
private final static Logger LOG = Logger.getLogger
(DebugResultDataPostProcessor.class);
@Override
public SearchResult process(final SearchResult solrSearchResult)
{
if (LOG.isDebugEnabled())
{
LOG.debug("Solr Result: " + solrSearchResult.getSolrObject().
toString());
}
return solrSearchResult;
}
}
In HAC http://localhost:9001/hac/platform/log4j
DebugResultDataPostProcessor
DEBUG [hybrisHTTP8] [DebugResultDataPostProcessor] Solr Result:
{responseHeader={status=0,...},response={numFound=6,start=0,docs=
[SolrDocument{id=electronicsProductCatalog/Online/1432722,
pk=8796106489857, catalogId=electronicsProductCatalog,
catalogVersion=Online, Resolution, 80_string=1280
x 720, manufacturerAID_string=GSC-K80HE, autosuggest=[1432722, Toshiba,
4026203537095], autosuggest_de=[1432722, Toshiba, 4026203537095, Hand-
Camcorder, Katalog
öffnen, Kameras, Gigashot K80H], autosuggest_en=[1432722, Toshiba,
4026203537095, Hand-held Camcorders, Open Catalogue, Cameras, Gigashot
K80H], autosuggest_fr=
[1432722, Toshiba, 4026203537095], autosuggest_ja=[1432722, Toshiba,
4026203537095, , , , Gigashot K80H],...
AbstractIndexStrategy
DefaultIndexerService
DefaultSolrCoresService
DefaultIndexerStrategy
DefaultSolrDocumentFactory / solrIndexThreadLogger
<UiExperience>/cms/searchboxcomponent.jsp
component.minCharactersBeforeRequest (component CMS setting)
component.waitTimeBeforeRequest (component CMS setting)
js-site-search-input -> acc.autocomplete.js
GET /search/autocomplete/${component.id} => GET /yacceleratorstorefront
/search/autocomplete/SearchBox
SearchPageController.getAutocompleteSuggestions()
{"suggestions":[{"term":"pantalon"}],"products":[{"availableForPickup":
null,"volumePricesFlag":...]}
hybris/log/solr/instances/default/solr.log
[master_electronics_Product_default] webapp=/solr path=/suggest params=
{q=pan&spellcheck.q=pan&qt=/suggest&spellcheck.
dictionary=en&wt=javabin&version=2} status=0 QTime=0
[master_electronics_Product_default] webapp=/solr path=/select params={...
collate=true} hits=179 status=0 QTime=7
OOTB, spellcheck.dictionary=en is built, but it is not reachable... And that seems not to be an issue for suggestion feature. However a ticket has
been opened to clean this setting: ECP-2063 - Clean the Solr autocompleting setting/code Resolved
solrconfig.xml
<requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
<lst name="defaults">
<str name="spellcheck">true</str>
<str name="spellcheck.dictionary">default</str>
<str name="spellcheck.onlyMorePopular">true</str>
<str name="spellcheck.count">5</str>
<str name="spellcheck.collate">true</str>
</lst>
<arr name="components">
<str>suggest</str>
</arr>
</requestHandler>