silverstripe / cwp-recipe-basic

CWP 1.x Basic Recipe metapackage (no longer used in CWP 2.x)
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

File_ShowInSearch doesn't exist #3

Closed emteknetnz closed 6 years ago

emteknetnz commented 6 years ago

Composer.json:

"cwp/cwp-recipe-basic": "~1.8.1@stable",
"cwp-themes/default": "~1.3.0@stable",
"cwp/agency-extensions": "^1.1"

Using default CWP search classes

When I do a search I get the following solr error

ERROR org.apache.solr.core.SolrCore  – org.apache.solr.common.SolrException: undefined field File_ShowInSearch

If I comment out $query->exclude('File_ShowInSearch', 0); in CwpSearchEngine.php:45 the error resolves (not that this would be a good idea)

dhensby commented 6 years ago

I believe this was fixed by https://github.com/silverstripe/cwp/pull/64