[gen] Indexer: textual content of indexes now keep only words of more than 2 chars and other improvements.

This commit is contained in:
Gaetan Delannay 2014-12-26 12:24:38 +01:00
parent 06c656d278
commit fd5e88928d
3 changed files with 27 additions and 18 deletions

View file

@ -244,6 +244,7 @@ class ToolMixin(BaseMixin):
# The search is triggered from an app-wide search
klass = self.getAppyClass(className)
fieldNames = getattr(klass, 'searchFields', None)
if callable(fieldNames): fieldNames = fieldNames(self.appy())
if not fieldNames:
# Gather all the indexed fields on this class
fieldNames = [f.name for f in self.getAllAppyTypes(className) \