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, youre
I 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.
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, youre
I 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.
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, youre
I 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.
On Friday, February 8, 2013 4:25:53 PM UTC-4, 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, youre
I 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.
On Friday, February 8, 2013 4:25:53 PM UTC-4, 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, youre
I 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.
I hadn't seen it before but good to know! Far from obvious.
You can also escape single quotes in JSON as \u0027
clint
On Saturday, 9 February 2013 17:43:17 UTC, Felipe Hummel wrote:
The settings were giving me this:
"index.analysis.filter.myStopFilter..stopwords.179": "im,
youre"
With your way it gives me the correct form:
"index.analysis.filter.buskTokenFilter.stopwords.0":"i'm",
"index.analysis.filter.buskTokenFilter.stopwords.1":"you're",
Why that works? What is you'"'"'re ?
Thanks!
Felipe Hummel
On Friday, February 8, 2013 4:25:53 PM UTC-4, 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,
youre
I 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
I hadn't seen it before but good to know! Far from obvious.
You can also escape single quotes in JSON as \u0027
clint
On Saturday, 9 February 2013 17:43:17 UTC, Felipe Hummel wrote:
The settings were giving me this:
"index.analysis.filter.myStopFilter..stopwords.179": "im,
youre"
With your way it gives me the correct form:
"index.analysis.filter.buskTokenFilter.stopwords.0":"i'm",
"index.analysis.filter.buskTokenFilter.stopwords.1":"you're",
Why that works? What is you'"'"'re ?
Thanks!
Felipe Hummel
On Friday, February 8, 2013 4:25:53 PM UTC-4, 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,
youre
I 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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.