Skip to content

Commit

Permalink
Return an appropriate index size
Browse files Browse the repository at this point in the history
  • Loading branch information
andbag committed Apr 19, 2019
1 parent 7483a11 commit 53cb668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Products/PluginIndexes/TopicIndex/TopicIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def numObjects(self):

def indexSize(self):
"""Return the size of the index in terms of distinct values."""
return 'n/a'
return len(self.filteredSets)

def search(self, filter_id):
f = self.filteredSets.get(filter_id, None)
Expand Down

0 comments on commit 53cb668

Please sign in to comment.