Details
-
Improvement
-
Resolution: Won't Do
-
Neutral
-
None
-
5.0.2
Description
We need to implement a solr search functions class that is stateless and decoupled from any template implementation.
I've created a module called magnolia-solr-search-tools (attached). It contains 3 classes:
- SolrTemplatingFunctions - a stateless function class for performing solr searches
- SearchResultModel - an example component model class which showcases the SolrTemplatingFunctions
- FacetedSolrSearchConfig - A configuration object for faceted search (for simple parameter passing)
SolrTemplatingFunctions is based on the SearchTemplatingFunctions and FacetedSolrSearchProvider. The problem with FacetedSolrSearchProvider is dependent on a templating model class. We need a way to perform search decoupled from a specific template implementation. That search function class should be stateless.
SearchResultModel is based FacetedSearchResultModel but it's not required for the search. It showcases how to use the templating functions.
Checklists
Acceptance criteria