on 05-07-2020 5:32 PM
Since for our project, the fq field was different, I had overridden DefaultSolrAsCategoryPathResolver to replace allCategories to customCategory. The query generated for boost is also similar to the OOB query. Still the boost is not working. NB: Promoted products functionality is working properly.
Following is the query formed:
ymb=product(def(query({!v%3D"code_string\:0401110006358800\^%3D10000.0"}),1))&yq=*:*&q={!boost+b%3D$ymb}(%2B{!lucene+v%3D$yq})&fq=(catalogId:"customProductCatalog"+AND+catalogVersion:"Online")&fq={!tag%3Dfk8}customCategory_string_mv:\/beauty&group=true&group.facet=false&group.ngroups=true&group.field=code_string&group.limit=-1&sort=query({!v%3D'pk:8796335472641^%3D10000.0'},1)+desc,popularity_int+desc☆t=0&rows=24&facet.field=seller_sgd_string_mv&facet.field=customPromotionExclusive_string_mv&facet.field=customCollectionPoint_string_mv&facet.field=customBrandCategory_en_string_mv&facet.field=categorizationTag_string_mv&facet.field=promotionCode_string_mv&facet.field=Colour_Family_string_mv&facet.field=customStaffPromotionExclusive_string_mv&facet.field={!ex%3Dfk8}customCategory_string_mv&facet.field=customBrand_string_mv&facet.field=price_cu_sgd_double&facet.field=customOrderLeadTime_int_mv&facet.field=customSpecialBrand_string_mv&facet=true&facet.sort=count&facet.mincount=1&fl=score,*&facet.limit=1000
This query has both boost and promoted products. With this, the promoted product is coming to the top, but not the boosted products.
Need help in understanding why it is not working.
User | Count |
---|---|
2 | |
2 | |
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.