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

Search config #85

Open
lucafavatella opened this issue May 12, 2017 · 1 comment
Open

Search config #85

lucafavatella opened this issue May 12, 2017 · 1 comment

Comments

@lucafavatella
Copy link
Contributor

I propose defaults/main.yml shall have the possibility to express search config - similarly to how it already expresses bucket types (in riak_bucket_types) - with a section like this:

#riak_search_schemas:
#  - { name: myschema1, file: '/etc/mycustomschema' }
riak_search_schemas: []


#riak_search_indexes:
#  - { name: myidx1, schema: 'myschema1' }
#  - { name: myidx2, schema: 'myschema1' }
#  - { name: myidx3, schema: '_yz_default' }
riak_search_indexes: []

Q1. Would it fit in ansible-riak?

Q2. I understand it shall be implemented using PUT requests 1 and 2. Do you have any advice on how to invoke those PUT requests idempotently? The two PUT requests are documented to return 409 if same name is already present - but it would not check if attributes are the same of the request (i.e. if the schema content is the expected one, and if the index is using the correct schema). It would require caller to issue GET first, store body, compare with the expected one, and then err if found but different. But such logic looks complex. Would you accept ignore_errors: true like in 44da67f ?

@lucafavatella
Copy link
Contributor Author

I guess another source of complexity may be the HTTP vs. HTTPS port to use.

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