Suppose I have a requirement whereby I don\'t want to search the products on the Hybris
frontend having a specific attribute value. Even if the following products a
Which products should be indexed are defined by flexible search queries.
You find them in hmc/backoffice
by navigating to System/Facet Search/Indexed Types
. Select your indexed type. There you find full and update queries.
The full query is used by a Full SolR Indexer CronJob
which runs in the default case every night and recreates the SolR index completely. The update query similarly is used by a Update SolR Indexer CronJob
which runs by default every hour and just updates products which have been changed in between. Therefore you find something like WHERE {sl:modifiedtime} >= ?lastIndexTime
in the update query, which is missing in the full query.
You can change the query in every way you need it. E.g. assuming your query is:
SELECT {pk} FROM {Product}
change it to
SELECT {pk} FROM {Product} WHERE {myAttribute} LIKE 'index this product'
PS: Find the Solr Indexer Cronjobs
on your associated Facet Search Config (System/Facet Search/Facet Search Config
).
PPS: There is also a delete query, where you define products which should be removed from SolR
index.