Comments (3)
Can you point me to the relevant documentation on the .org site? (The API is based on the REST API spec.)
from elasticsearch-ruby.
Hi Karel,
It's just there : http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html#getting in the 2nd code example of the paragraph.
I didn't know about the REST API spec. It's very interesting.
from elasticsearch-ruby.
@jlecour This should work correctly:
client.indices.put_template name: 'template-1', body: { template: 'logs-*', settings: { 'index.number_of_shards' => 1 } }
client.indices.put_template name: 'template-2', body: { template: 'logs-*', settings: { 'index.number_of_replicas' => 0 } }
client.indices.get_template.keys
# ["marvel.monitor.prefix-.marvel", "template-1", "marvel", "marvel.monitor.marvel", "template-2"]
client.indices.get_template(name: 'temp*').keys
# => ["template-1", "template-2"]
from elasticsearch-ruby.
Related Issues (20)
- Elasticsearch::Client#open_point_in_time returns NoMethodError HOT 2
- elasticsearch-ruby 7.14 silently dropping support for elastic search 5.x HOT 2
- Elasticsearch 6 on Mac is not running HOT 1
- Adding tracing? HOT 6
- Stuck on loop because the number of connections keeps increasing
- Elasticsearch server validation is incompatible with some builds HOT 5
- unlock/upgrade faraday dependency HOT 3
- Version change of behaviour on scroll endpoint HOT 2
- setting an api key in the client constructor clobbers whatever transport options you're trying to send in HOT 1
- Elasticsearch ruby errors in rails boot when more than 1 http client available HOT 2
- Version 7 to 8 compatibility HOT 2
- Add possibility to ignore 404 for clear_scroll API request HOT 1
- How call put_lifecycle method HOT 3
- version conflict error HOT 1
- Retry_on_conflicts implementation HOT 2
- Enable elasticsearch-transport v7 to use Faraday >=2 HOT 1
- Segfault when using elasticsearch within spring on MacOS 14.1.1 HOT 4
- Feedback 🗣️
- Elasticsearch Client Version Mismatch and Argument Error After Gem Upgrade HOT 4
- end of file reached (Faraday::ConnectionFailed) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-ruby.