This works for me:
$ curl -XPOST localhost:9200/test -d '
{
"settings": {
"analysis": {
"analyzer": {
"default": {
"type": "standard",
"stopwords": ["i'"'"'m"]
}
}
}
}
}'
$ curl localhost:9200/test/_analyze?text=i'm
{"tokens":}
Maybe there is some escaping issue when you're putting the mappings? What
do your index settings/mappings look like?
On Friday, February 8, 2013 8:25:53 PM UTC, Felipe Hummel wrote:
Hey guys, I'm trying to set a custom list of stopwords in the JSON that
creates an index.Like this: "stopwords" : ["i'm", "you're" .... ] . But when I check the
index metadata (through HEAD plugin), it seems it is parsing it wrong. It
states: index.analysis.filter.myStopFilter..stopwords.179: im, youreI tried escaping, but ' should not be escaped inside JSON (it gives syntax
error)I've tried searching for "i'm" and it finds results so it is not using it
right.Any ideas?
Felipe Hummel
--
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.