silverstripe / silverstripe-elemental

Create pages in Silverstripe CMS using content blocks
http://dna.co.nz
BSD 3-Clause "New" or "Revised" License
110 stars 115 forks source link

Solr search not working on CWP 2.8.0-rc1 #907

Closed emteknetnz closed 3 years ago

emteknetnz commented 3 years ago

Setup

Replication:

An equivalent search for regular non-block page content did yield expected results

michalkleiner commented 3 years ago

I believe the Elemental-specific solr index was removed as it was actually added just for testing way back when, can you clarify that @chillu (I think we had a chat about it at some point in past, unless I'm confusing it with something else)?

emteknetnz commented 3 years ago

I'd say this was misconfiguration from our end for the test bundle used.

Adding the following (copied from ElementalSolrIndex) to deafult CwpSolrIndex will fix this issue locally

$this->addFulltextField('ElementsForSearch');