I have the Elastisearch couchdb river installed. I am looking to creating
mappings for my database. I have different types of documents in my couchdb
database. I want to specify an individual mapping for each type of
document.
I tried this way and is throwing an error.
PUT http://localhost:9200/_river/user/_mapping
{
"user" : {
"properties" : {
"first_name" : {
"type" : "string",
"search_analyzer" : "str_search_analyzer",
"index_analyzer" : "str_index_analyzer"
}
}
,
"settings" : {
"analysis" : {
"analyzer" : {
"str_search_analyzer" : {
"tokenizer" : "keyword",
"filter" : ["lowercase"]
},
"str_index_analyzer" : {
"tokenizer" : "keyword",
"filter" : ["lowercase", "substring"]
}
},
"filter" : {
"substring" : {
"type" : "edgeNGram",
"min_gram" : 2,
"max_gram" : 20
}
}
}
}
}
}
ERROR:
{"error":"MapperParsingException[Analyzer [str_search_analyzer] not found
for field [first_name]]","status":400}
Can any one help me how this can be rectified or any such kind of JSON
examples?
Also, I need to give mapping for few more fields like "last_name",
"organization" etc. How I can specify multiple fields in the above
example?
Thanks,
Srilatha
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.