on 04-26-2016 2:38 PM
Hi,
I'm using Hyrbis 5.7.0.3 b2b powertools accelerator and facing solr query issue when i turn off the legacy mode in solrquery config.
Problem: In LegacyMode, things are working but when i turn off the legacy mode in solrsearchconfig, Solr uses DefaultFacetSearchStrategy in order to generate solr query and get the search results. With this, everytime i search on the page, same results are shown. When i debug the query below query was printed in the logs:
q=%3A&sort=score+desc%2CinStockFlag_boolean+desc%2Cscore+desc&start=0&rows=20&facet.field=Colour+of+product%2C+1766_en_string&facet.field=price_usd_string&facet.field=allPromotions_string_mv&facet.field=categoryPath_string_mv&facet.field=allCategories_string_mv&facet.field=availableInStores_string_mv&facet=true&facet.sort=count&facet.mincount=1&facet.limit=50&spellcheck=true&spellcheck.q=screw&spellcheck.dictionary=en&spellcheck.collate=true&fq=%28catalogId%3A%22csmProductCatalog%22+AND+catalogVersion%3A%22Online%22%29
If you look at the above query, "q" parameter is taking value as "*:*" instead of search term.
Does anyone has experienced this behaviour?
Why do you switch the legacyMode to false in such case - if it works for you? Have you seen the description of the mode difference: https://wiki.hybris.com/display/release5/Search+Process If you want to change mode for search in your application then you will need to check the Index type/properties configuration (fts* fields) because new search strategy doesn't use the populators for free text queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.