on 10-24-2016 7:41 AM
Suppose I've 5 products , in that i want to hide last 4 products how to do in solr search? please Replay me .
Thanks Advance selva.
Hi Salvaraj,
you could create a new boolean attribute on the Product type. Name it for example 'visible'. Then you need to modify the indexer queries for Update-Index and Full-Index. Here is the original Full-Index query from the apparel b2c accelerator:
SELECT {p:PK} FROM {Product AS p} WHERE {p:varianttype} IS NULL
Rewrite the query like this:
SELECT {p:PK} FROM {Product AS p} WHERE {p:varianttype} IS NULL AND {p:visible} = 1
Kind Regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
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.