OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.37k stars 1.12k forks source link

Making comments searchable #2039

Open orchardbot opened 12 years ago

orchardbot commented 12 years ago

@Piedone created: https://orchard.codeplex.com/workitem/18212

Currently comment texts can't be indexed and searched, let's change this.

orchardbot commented 12 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!

orchardbot commented 12 years ago

@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).

orchardbot commented 12 years ago

@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.

orchardbot commented 12 years ago

@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.

orchardbot commented 12 years ago

@bleroy commented:

I was thinking mainly about a poorly moderated site that could be used as a fully-searchable link farm. Nothing dramatic.