Jay Taylor's notes
back to listing indexsearch - How to create initial Elasticsearch settings when using the river plugin - Stack Overflow
[web search]|
I am using the river plugin for CouchDB and when I execute the following curl command: curl -XPUT 'localhost:9200/_river/blog/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "localhost",
"port" : 5984,
"db" : "blog",
"filter" : null
},
"index" :{
"analysis" :{
"analyzer" :{
"whitespace" :{
"type" : "whitespace",
"filter":"lowercase"
},
"ox_edgeNGram" :{
"type" : "custom",
"tokenizer" : "ox_t_edgeNGram",
"filter" : ["lowercase"]
},
"ox_NGram" :{
"type" : "custom",
"tokenizer" : "ox_t_NGram",
"filter" : ["lowercase"]
}
},
"tokenizer" :{
"ox_t_edgeNGram":{
"type":"edgeNGram",
"min_gram":2,
"max_gram":25,
"side":"front"
},
"ox_t_NGram":{
"type":"NGram",
"min_gram":2,
"max_gram":25
}
}
}
}
}'
receive the response: {"ok":true,"_index":"_river","_type":"blog","_id":"_meta","_version":1}
The problem I have, is when I want to view the settings in the browser and go to:
The json that is returned is as follows, but I'm expecting information regarding the analyzer etc. that I thought I created. Returned JSON:
{
blog: -{
settings: -{
index.number_of_shards: "5"
index.number_of_replicas: "1"
}
}
}
It should also be noted that when I create a blog index without using the river and run a curl command to input the analysis information, I do receive a response from the browser indicating the settings that I input. How can I set the default settings of a an index when using the River plugin?
| ||||
| add comment | ||||
|
To solve this issue:
I found the answer here: | |||
| add comment |
|
You can try this url
| ||||
| add comment |



