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

Change the index setting so it can handle site in a directory #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chellman
Copy link

localhost/wordpress as the index name confuses elasticsearch. I've replaced the slashes with underscores.

@mboynes
Copy link
Contributor

mboynes commented Sep 26, 2014

Good catch, and thanks for the PR! Before I merge I'm going to add unit tests and I'm going to tweak this solution to ensure that the index name is only alphanumeric characters, dashes, and underscores.

@mboynes mboynes self-assigned this Sep 26, 2014
@chellman chellman mentioned this pull request Sep 26, 2014
@chellman
Copy link
Author

Cool. If you want a hand with this, I can take a crack at it.

@joehoyle
Copy link

joehoyle commented Nov 6, 2014

FWIW I'm using this patch on sites we have in /wordpress and this patch is working well.

@gibrown
Copy link

gibrown commented Nov 6, 2014

Should maybe look at this and expand what characters are not allowed. There are a number of other characters in ES that are reserved for special operations on indices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants