\ShopSearchSolr
Search driver for the fulltext module with solr backend.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class ShopSearchSolr
extends SolrIndex
implements
ShopSearchAdapter
{
- // members
- protected array $fieldMap = ;
- // methods
- public void init()
- protected array scrubFieldList()
- protected array getFulltextSpec()
- protected void getFilterSpec()
- public string getFieldDefinitions()
- public string getCopyFieldDefinitions()
- public HTMLText getTypes()
- public ArrayData searchFromVars()
- public array suggestWithResults()
- protected array buildFacetParams()
- public ArrayData search()
- protected ArrayList buildFacetResults()
Hierarchy
Tasks
Line | Task |
---|---|
291 | add spellcheck |
Members
protected
- $fieldMap — array
Methods
protected
- buildFacetParams()
- buildFacetResults()
- getFilterSpec()
- getFulltextSpec()
- scrubFieldList() — Transforms different formats of field list into something we can pass to solr
public
- getCopyFieldDefinitions()
- getFieldDefinitions()
- getTypes() — Overrides the parent to add a field for autocomplete
- init() — Sets up the index
- search() — Fulltextsearch module doesn't yet support facets very well, so I've just copied this function here so we have access to the results. I'd prefer to modify it minimally so we can eventually get rid of it once they add faceting or hooks to get directly at the returned response.
- searchFromVars() — This is an intermediary to bridge the search form input and the SearchQuery class. It allows us to have other drivers that may not use the FullTextSearch module.
- suggestWithResults()