Merge pull request #226 from martenson/fix-tool-search

[15.05] avoid adding data managers to the tool search index
This commit is contained in:
Daniel Blankenberg
2015-05-06 16:51:15 -04:00
+3
View File
@@ -37,6 +37,9 @@ class ToolBoxSearch( object ):
self.index = self.storage.create_index( schema )
writer = self.index.writer()
for id, tool in self.toolbox.tools():
# Do not add data managers to the public index
if tool.tool_type == 'manage_data':
continue
add_doc_kwds = {
"id": id,
"name": to_unicode( tool.name ),