Skip to content

Commit

Permalink
Consistent naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazz committed Jan 20, 2012
1 parent 5f34a6c commit c4d19cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions searchify/clients/pyes_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ class Client(object):
def __init__(self):
self.conn = pyes.ES(settings.PYES_ADDRESS, timeout=30)

def indexer(self, indexname):
def get_indexer(self, indexname):
"""Get an indexer for a given index name.
"""
return IndexerClient(self, indexname)

def searcher(self, indexname):
def get_searcher(self, indexname):
"""Get a searcher for a given index name.
"""
Expand Down
2 changes: 1 addition & 1 deletion searchify/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class Indexer(object):
def __init__(self, model):
self.model = model
if self.index:
self.client = client.indexer(self.index)
self.client = client.get_indexer(self.index)

def reindex_on_cascade(self, cascade_from, cascade_to):
"""
Expand Down

0 comments on commit c4d19cd

Please sign in to comment.