{"action":"created","issue":{"url":"https://api.github.com/repos/dnadesign/silverstripe-elemental/issues/200","repository_url":"https://api.github.com/repos/dnadesign/silverstripe-elemental","labels_url":"https://api.github.com/repos/dnadesign/silverstripe-elemental/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/dnadesign/silverstripe-elemental/issues/200/comments","events_url":"https://api.github.com/repos/dnadesign/silverstripe-elemental/issues/200/events","html_url":"https://github.com/dnadesign/silverstripe-elemental/issues/200","id":302264089,"number":200,"title":"content for search","user":{"login":"digitall-it","id":3578378,"avatar_url":"https://avatars2.githubusercontent.com/u/3578378?v=4","gravatar_id":"","url":"https://api.github.com/users/digitall-it","html_url":"https://github.com/digitall-it","followers_url":"https://api.github.com/users/digitall-it/followers","following_url":"https://api.github.com/users/digitall-it/following{/other_user}","gists_url":"https://api.github.com/users/digitall-it/gists{/gist_id}","starred_url":"https://api.github.com/users/digitall-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitall-it/subscriptions","organizations_url":"https://api.github.com/users/digitall-it/orgs","repos_url":"https://api.github.com/users/digitall-it/repos","events_url":"https://api.github.com/users/digitall-it/events{/privacy}","received_events_url":"https://api.github.com/users/digitall-it/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-05T11:26:31Z","updated_at":"2018-03-05T12:03:16Z","closed_at":null,"author_association":"NONE","body":"Is it possible to control how the content is returned by blocks for search? I'm in the situation where the `$Content` field doesn't contain all or any useful information on save (specially when using nested elements, like rows having columns having content). A way to get a textual representation of the block that is just used for search purposes, that supports nesting and translation."},"comment":{"url":"https://api.github.com/repos/dnadesign/silverstripe-elemental/issues/comments/370398509","html_url":"https://github.com/dnadesign/silverstripe-elemental/issues/200#issuecomment-370398509","issue_url":"https://api.github.com/repos/dnadesign/silverstripe-elemental/issues/200","id":370398509,"user":{"login":"digitall-it","id":3578378,"avatar_url":"https://avatars2.githubusercontent.com/u/3578378?v=4","gravatar_id":"","url":"https://api.github.com/users/digitall-it","html_url":"https://github.com/digitall-it","followers_url":"https://api.github.com/users/digitall-it/followers","following_url":"https://api.github.com/users/digitall-it/following{/other_user}","gists_url":"https://api.github.com/users/digitall-it/gists{/gist_id}","starred_url":"https://api.github.com/users/digitall-it/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitall-it/subscriptions","organizations_url":"https://api.github.com/users/digitall-it/orgs","repos_url":"https://api.github.com/users/digitall-it/repos","events_url":"https://api.github.com/users/digitall-it/events{/privacy}","received_events_url":"https://api.github.com/users/digitall-it/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T12:03:16Z","updated_at":"2018-03-05T12:03:16Z","author_association":"NONE","body":"I mean the full text search (frontend search). Elemental creates a text representation of each block and concatenates the text in the `$Content` variable. However, there should be a method of the block to be called to have control on how such representation is created. Otherwise, Elemental can fill the Content of inaccurate information, making the page unsearchable. The primary example is when using nested blocks: as it doesn't know how to descend trough blocks, a \"Three Column\" block can have an Image block, a Text block and an Icon block. How does Elemental know what is the textual representation of such Icon block? Will it know that it has to \"descend\" to the \"Three Column\" block childs to actually get their content, which is indeed the actual page content?\r\n\r\nIs using other search systems (like Zend Lucene or Apache Solr) different? Probably the situation would be even worse, because you may be want to save data in facets (for example the Icon blocks is a phone and has a phone text associated, you may want to save it in a Phone facet while indexing). I admit I didn't read well how does Elemental work with other search systems, so I would restrict the case to the base FullTextSearch module that comes free with SilverStripe.\r\n\r\nI propose to clarify in the documentation how to customize the way a textual representation for search purposes of block gets created."}}
{"actor":{"display_login":"digitall-it"}}