Point is that when I try to run a facet like this one:
"type" : {
"terms" : { "field" : "type" },
"facet_filter" : {
"and" : [
{ "term" : { "characteristics" : "warranty_3 years" } },
]
}
},
I always get 0 result. It seems like the "_" gets tokenized and removed
when searching as if the field were analyzed. The mapping for the
characteristics field it's tyoe: string, index: "not_analyzed".
The term in a term filter is never analyzed, regardless of the analyzer set
on the field.
When you say that you get 0 results, does that mean your query gets zero
results or there are no entries in the facet? What happens when you do not
apply the facet filter?
Point is that when I try to run a facet like this one:
"type" : {
"terms" : { "field" : "type" },
"facet_filter" : {
"and" : [
{ "term" : { "characteristics" : "warranty_3 years" } },
]
}
},
I always get 0 result. It seems like the "_" gets tokenized and removed
when searching as if the field were analyzed. The mapping for the
characteristics field it's tyoe: string, index: "not_analyzed".
HI Ivan.
I made again some experiments and actually I got the expected results.
There may have been a typo in the query or filter on my part which I didn't
see.
Sorry for the inconvenience
AM
On Fri, Nov 1, 2013 at 1:07 AM, Ivan Brusic ivan@brusic.com wrote:
The term in a term filter is never analyzed, regardless of the analyzer
set on the field.
When you say that you get 0 results, does that mean your query gets zero
results or there are no entries in the facet? What happens when you do not
apply the facet filter?
Point is that when I try to run a facet like this one:
"type" : {
"terms" : { "field" : "type" },
"facet_filter" : {
"and" : [
{ "term" : { "characteristics" : "warranty_3 years" } },
]
}
},
I always get 0 result. It seems like the "_" gets tokenized and removed
when searching as if the field were analyzed. The mapping for the
characteristics field it's tyoe: string, index: "not_analyzed".
Any idea what could be possibly wrong?
Thanks in advance.
AM
--
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.
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.