Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELASTICSEARCH_INDEX_PREFIX not working #21

Open
red-coder opened this issue Jan 31, 2014 · 0 comments
Open

ELASTICSEARCH_INDEX_PREFIX not working #21

red-coder opened this issue Jan 31, 2014 · 0 comments

Comments

@red-coder
Copy link

Brownian can not find the meta index when configuring ELASTICSEARCH_INDEX_PREFIX to something else than "bro". This can be fixed by changing getIndices() to use the prefix.

Current code:

#Brownian/view/utils/es.py
def getIndices():
    result = Request(index="@bro-meta")._doRequest({"size": 65535})
...

Fixed code:

#Brownian/view/utils/es.py
def getIndices():
    result = Request(index="@{}-meta".format(settings.ELASTICSEARCH_INDEX_PREFIX))._doRequest({"size": 65535})
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant