I'm trying to return a single value if I search on a field that contains a
list. Tags is my list and I have three values in it one, two and three.
tags : ["one", "two", "three"]
If I do a search for "two" I would like to only return the "two" in the
value in the results.
I understand that a nested type is the way to go. The field "tag" is a
multi field property as I'm analysing it in multiple ways. I having trouble
getting a nested type working with a with a multi-field property. Here is
the mapping of the tags at the moment:
I'm trying to return a single value if I search on a field that contains a
list. Tags is my list and I have three values in it one, two and three.
tags : ["one", "two", "three"]
If I do a search for "two" I would like to only return the "two" in the
value in the results.
I understand that a nested type is the way to go. The field "tag" is a
multi field property as I'm analysing it in multiple ways. I having trouble
getting a nested type working with a with a multi-field property. Here is
the mapping of the tags at the moment:
On Sat, Jun 15, 2013 at 8:54 PM, es newbie <dan.t...@gmail.com<javascript:>
wrote:
I'm trying to return a single value if I search on a field that contains
a list. Tags is my list and I have three values in it one, two and three.
tags : ["one", "two", "three"]
If I do a search for "two" I would like to only return the "two" in the
value in the results.
I understand that a nested type is the way to go. The field "tag" is a
multi field property as I'm analysing it in multiple ways. I having trouble
getting a nested type working with a with a multi-field property. Here is
the mapping of the tags at the moment:
--
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.
I'm not sure the the child/parent mapping is the way to go.
The tags field is indexed in multiple ways, so I need to to be a
multi_valued field. I want to return all values in the tag array for some
queries. For an autocomplete search I only want to return the value in the
array that is a match, not all of the values in the array. I also don't
want to have to index the document fields twice, once for the document and
once for the tags. Can I not do what I want with a nested type?
On Sunday, June 16, 2013 1:33:27 PM UTC+1, es newbie wrote:
Thanks I'll take a look at that.
On Sunday, June 16, 2013 12:59:07 PM UTC+1, Radu Gheorghe wrote:
I'm trying to return a single value if I search on a field that contains
a list. Tags is my list and I have three values in it one, two and three.
tags : ["one", "two", "three"]
If I do a search for "two" I would like to only return the "two" in the
value in the results.
I understand that a nested type is the way to go. The field "tag" is a
multi field property as I'm analysing it in multiple ways. I having trouble
getting a nested type working with a with a multi-field property. Here is
the mapping of the tags at the moment:
I'm not sure the the child/parent mapping is the way to go.
The tags field is indexed in multiple ways, so I need to to be a
multi_valued field. I want to return all values in the tag array for some
queries. For an autocomplete search I only want to return the value in the
array that is a match, not all of the values in the array. I also don't
want to have to index the document fields twice, once for the document and
once for the tags. Can I not do what I want with a nested type?
On Sunday, June 16, 2013 1:33:27 PM UTC+1, es newbie wrote:
Thanks I'll take a look at that.
On Sunday, June 16, 2013 12:59:07 PM UTC+1, Radu Gheorghe wrote:
I'm trying to return a single value if I search on a field that
contains a list. Tags is my list and I have three values in it one, two and
three.
tags : ["one", "two", "three"]
If I do a search for "two" I would like to only return the "two" in the
value in the results.
I understand that a nested type is the way to go. The field "tag" is a
multi field property as I'm analysing it in multiple ways. I having trouble
getting a nested type working with a with a multi-field property. Here is
the mapping of the tags at the moment:
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.