Solr Search - adding a new search/filter criteria
Posted: Wed Mar 05, 2014 12:47 am
I have extended ProductImpl to create my CustomProductImpl with some new fields/attributes. One of the field added to my CustomProduct table is - workflow_status( using Broadleaf Workflow).
My SearchController extends BroaleafSearchController that uses SolrSearchServiceImpl for catalog search. By default it is searching all the items from Product. However, my requirement is to pull only the published items(in extended CustomProduct) table.
How can I inject my condition/searchcriteria into Solr search query (e.g. ...where workflow_status='PUBLISHED') to pull only the published item.?
Thanks in advance.!!
My SearchController extends BroaleafSearchController that uses SolrSearchServiceImpl for catalog search. By default it is searching all the items from Product. However, my requirement is to pull only the published items(in extended CustomProduct) table.
How can I inject my condition/searchcriteria into Solr search query (e.g. ...where workflow_status='PUBLISHED') to pull only the published item.?
Thanks in advance.!!