Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Searchable blocks that make up a page? #25

Open
camfindlay opened this issue Jun 3, 2015 · 4 comments
Open

Searchable blocks that make up a page? #25

camfindlay opened this issue Jun 3, 2015 · 4 comments

Comments

@camfindlay
Copy link

Spotted this new module @sheadawson https://github.com/firebrandhq/silverstripe-searchable-dataobjects

Maybe it could be combined with your blocks module to make an uber block content based searchable page?

@johnslipper
Copy link

Was just thinking along the same lines when I found this thread, would be a great addition. Suppose it's a matter of working out which page/pages the block is on to link to from the search results.

@sheadawson
Copy link
Owner

Would be great. Only problem could be the relationship between page-block isn't always a standard relationship ie. block could be applied to a page via a blockset, that is applied to the page through user defined rules.

@digitall-it
Copy link

Elemental copies all the blocks contents in the Content of the page. we could instead add an hidden field to the page called SearchableBlockContent, retrieve all the text on all blocks and save it there, then tell the FullTextSearchable module to also index the SearchableBlockContent. Each block could decide to implement or not the SearchableBlock interface and what text to release (for example, Image galleries blocks could release alt tags of the images).

@camfindlay
Copy link
Author

I've done what's being mentioned here before and had it working ok. Especially if you're using something like Solr search you can collate all the block text into a field and push this to solr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants