Description index added.
svn path=/plone.app.discussion/trunk/; revision=27251
This commit is contained in:
@@ -12,6 +12,11 @@ from plone.app.discussion.interfaces import IComment
|
||||
def comment_title(object):
|
||||
return object.title
|
||||
|
||||
@indexer(IComment)
|
||||
def comment_description(object):
|
||||
# Todo: this is wrong!!!
|
||||
return object.title
|
||||
|
||||
@indexer(IComment)
|
||||
def comment_searchable_text(object):
|
||||
return object.title, object.text
|
||||
|
||||
Reference in New Issue
Block a user