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

Docs for updating default mapping is incorrect #73

Open
ewohnlich opened this issue Jan 15, 2020 · 0 comments
Open

Docs for updating default mapping is incorrect #73

ewohnlich opened this issue Jan 15, 2020 · 0 comments

Comments

@ewohnlich
Copy link
Contributor

I want to change the default mapping so that SearchableText provides both a raw keyword field and text field with snowball analyzer for a project. The docs https://github.com/collective/collective.elasticsearch/blob/master/docs/config.rst suggest I can create my own adapter and apply a layer. However, this appears to be invalid ZCML - adapters can't have layers

zope.configuration.exceptions.ConfigurationError: ('Unrecognized parameters:', 'layer')

Assuming I am correct here, I don't think there's currently a better way to update these than monkey patching? I've also monkey patched the create_mapping for collective.elasticsearch.indexes.EZCTextIndex but this appears to not apply for those fields in the _default_mapping.

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