Analyzer for a field in a nested document?

I have an array of nested documents which I need to specify an analyzer
for. If anyone knows how to specify an analyzer for a nested document I'd
greatly appreciate it.

Our documents look like

item: {
labels: {
label: {
kind: "a str",
color: "another str"
}
}
}

If I wanted to use the keyword analyzer on 'kind' Where would I put that in
my index mapping?

Help would be much appreciated, I've tried this many ways but can't seem to
get it right.

Ah, figured it out, you can put further properties below the nested type.

On Friday, June 15, 2012 3:56:36 PM UTC-7, Andrew Cholakian wrote:

I have an array of nested documents which I need to specify an analyzer
for. If anyone knows how to specify an analyzer for a nested document I'd
greatly appreciate it.

Our documents look like

item: {
labels: {
label: {
kind: "a str",
color: "another str"
}
}
}

If I wanted to use the keyword analyzer on 'kind' Where would I put that
in my index mapping?

Help would be much appreciated, I've tried this many ways but can't seem
to get it right.

Hi Andrew,

can you please post your mapping how did u provide analyzer to nested field
, i am facing the same problem.

Thanks
Paul

On Saturday, 16 June 2012 11:23:01 UTC+5:30, Andrew Cholakian wrote:

Ah, figured it out, you can put further properties below the nested type.

On Friday, June 15, 2012 3:56:36 PM UTC-7, Andrew Cholakian wrote:

I have an array of nested documents which I need to specify an analyzer
for. If anyone knows how to specify an analyzer for a nested document I'd
greatly appreciate it.

Our documents look like

item: {
labels: {
label: {
kind: "a str",
color: "another str"
}
}
}

If I wanted to use the keyword analyzer on 'kind' Where would I put that
in my index mapping?

Help would be much appreciated, I've tried this many ways but can't seem
to get it right.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2558de88-5856-4b52-aea3-57a5115a9e1f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

got it :slight_smile:

On Wednesday, 18 December 2013 17:45:45 UTC+5:30, paul wrote:

Hi Andrew,

can you please post your mapping how did u provide analyzer to nested
field , i am facing the same problem.

Thanks
Paul

On Saturday, 16 June 2012 11:23:01 UTC+5:30, Andrew Cholakian wrote:

Ah, figured it out, you can put further properties below the nested type.

On Friday, June 15, 2012 3:56:36 PM UTC-7, Andrew Cholakian wrote:

I have an array of nested documents which I need to specify an analyzer
for. If anyone knows how to specify an analyzer for a nested document I'd
greatly appreciate it.

Our documents look like

item: {
labels: {
label: {
kind: "a str",
color: "another str"
}
}
}

If I wanted to use the keyword analyzer on 'kind' Where would I put that
in my index mapping?

Help would be much appreciated, I've tried this many ways but can't seem
to get it right.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8f2ff7e0-f657-459d-b600-b9fead5b1a4d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

could you please post the solution?