Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Commit

Permalink
Add getIndexQueryNames method to index to comply with extended inte…
Browse files Browse the repository at this point in the history
…rface.
  • Loading branch information
hannosch committed Feb 19, 2014
1 parent afa6172 commit 79adf01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
2.13.5 (unreleased)
-------------------

- Add `getIndexQueryNames` method to index to comply with extended interface.

2.13.4 (2012-12-03)
-------------------
Expand Down
4 changes: 4 additions & 0 deletions src/Products/ZCTextIndex/ZCTextIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ def getIndexSourceNames(self):
except:
return [self._fieldname]

def getIndexQueryNames(self):
"""Indicate that this index applies to queries for the index's name."""
return (self.id,)

def getIndexType(self):
"""Return index type string"""
return getattr(self, '_index_type', self._index_factory.__name__)
Expand Down

0 comments on commit 79adf01

Please sign in to comment.