Based on my understanding of the documentation, I'd expect this filter to
return the above document and any other documents with "baby" in
display_ages_small_label--which is exactly what I'd want to happen. What am
I doing wrong, and how should I fix this?
I think I might have figured out the problem. The above filter works, but
when I filter on "preschool-and-toddler", the query fails, presumably due
to unescaped dashes. Now I'm having trouble figuring out how best to escape
them. (This is probably also causing a problem when I index the data, so
I'll have to go back and fix that as well.)
Any suggestions?
Thanks again!
On Friday, August 9, 2013 10:24:54 AM UTC-7, Charles Pletcher wrote:
Hi all,
I'm having trouble getting the syntax right for filtering based on the
terms that are contained in an array. I have documents that look like this:
Based on my understanding of the documentation, I'd expect this filter to
return the above document and any other documents with "baby" in
display_ages_small_label--which is exactly what I'd want to happen. What am
I doing wrong, and how should I fix this?
Sorry to keep replying to myself, but maybe someone will have a similar
problem in the future.
I realized that I didn't actually need to search in the array, just to
filter by known terms, so I switched its index property to "not_analyzed"
and now everything works as expected.
On Friday, August 9, 2013 10:32:03 AM UTC-7, Charles Pletcher wrote:
I think I might have figured out the problem. The above filter works, but
when I filter on "preschool-and-toddler", the query fails, presumably due
to unescaped dashes. Now I'm having trouble figuring out how best to escape
them. (This is probably also causing a problem when I index the data, so
I'll have to go back and fix that as well.)
Any suggestions?
Thanks again!
On Friday, August 9, 2013 10:24:54 AM UTC-7, Charles Pletcher wrote:
Hi all,
I'm having trouble getting the syntax right for filtering based on the
terms that are contained in an array. I have documents that look like this:
Based on my understanding of the documentation, I'd expect this filter to
return the above document and any other documents with "baby" in
display_ages_small_label--which is exactly what I'd want to happen. What am
I doing wrong, and how should I fix this?
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.