Open orchardbot opened 13 years ago
@petehurst commented:
The difficulty here is that comments don't (under normal circumstances) have any routing; so comments typically need to be indexed on their parent content item.
On the other hand if you gave RoutePart to comments, you could generate a situation where a search gave you a load of hits on comments and none on actual content. Personally, I don't know if I find it particularly useful to get comments from a search!
@bleroy commented:
It does open up a whole new category of spam hacks, but I think the idea here would be that comments would be indexed as part of the content item they are attached to (which would be routable).
@sebastienros commented:
That's why this is the CommentsPart and not the CommentPart which has to be added in the handler. It would loop over the comments and add them as an indexed content for the container.
@Piedone commented:
Yes, the idea would be to add comments to the content type's index they're attached to. @Bertrand: Could you please describe the security flaws caused? Because then this could lead to problems with other, registered user-editable content types too.
@bleroy commented:
I was thinking mainly about a poorly moderated site that could be used as a fully-searchable link farm. Nothing dramatic.
@Piedone created: https://orchard.codeplex.com/workitem/18212
Currently comment texts can't be indexed and searched, let's change this.