Hi there
A field in my documents is a url like : http://search.ehaier.com/_bpocbmuwbjulbfxy-se.html
and I set my analyzer as keyword analyzer with java api, but when I use
aggregation to calculate the sum of urls, it returns the number of terms in
the url, like :
"key":"http"
"doc_count": 29662
what i want is store the whole url as a term, I tried to set the analyzer,
but it dosent work at all
Hi there
A field in my documents is a url like : http://search.ehaier.com/_bpocbmuwbjulbfxy-se.html
and I set my analyzer as keyword analyzer with java api, but when I use
aggregation to calculate the sum of urls, it returns the number of terms in
the url, like :
"key":"http"
"doc_count": 29662
what i want is store the whole url as a term, I tried to set the analyzer,
but it dosent work at all
On Fri, Jun 27, 2014 at 11:21 AM, Helennie Nie <helen...@gmail.com
<javascript:>> wrote:
Hi there
A field in my documents is a url like : http://search.ehaier.com/_bpocbmuwbjulbfxy-se.html
and I set my analyzer as keyword analyzer with java api, but when I use
aggregation to calculate the sum of urls, it returns the number of terms
in
the url, like :
"key":"http"
"doc_count": 29662
what i want is store the whole url as a term, I tried to set the
analyzer,
but it dosent work at all
--
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:>.
To view this discussion on the web visit
Aggregations work on fields that are already indexed according to the
analyzer used on the field. In your code, you defined an analyzer, but you
did not specify how you mapped the "user_visited" field to this analyzer.
On Fri, Jun 27, 2014 at 11:21 AM, Helennie Nie helen...@gmail.com
wrote:
Hi there
A field in my documents is a url like : http://search.ehaier.com/_bpocbmuwbjulbfxy-se.html
and I set my analyzer as keyword analyzer with java api, but when I use
aggregation to calculate the sum of urls, it returns the number of
terms in
the url, like :
"key":"http"
"doc_count": 29662
what i want is store the whole url as a term, I tried to set the
analyzer,
but it dosent work at all
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.