Skip to content

Commit

Permalink
Merge pull request #11 from mboudet/master
Browse files Browse the repository at this point in the history
Disable tune for tripal 2
  • Loading branch information
abretaud authored Feb 15, 2019
2 parents 2728f0f + c1d0128 commit ecf79b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tripaille/commands/db/tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@custom_exception
@dict_output
def cli(ctx):
"""Tune indices for website indexation
"""Setup default entity index priority for whole website indexing
Output:
Expand Down
5 changes: 4 additions & 1 deletion tripal/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,16 @@ def _do_populate_mview(self, mview, no_wait=False, job_name=None):

def tune(self):
"""
Tune indices for website indexation
Setup default entity index priority for whole website indexing
:rtype: dict
:return: "Status"
"""

if self.tripal.version == 2:
raise NotImplementedError("Tuning is not required in Tripal 2")

data = {}

res = self._request('elasticsearch/tune', data)
Expand Down

0 comments on commit ecf79b7

Please sign in to comment.