I would like to retrieve statistical data about a string field like the
min, max and average length (by counting the number of characters inside
the string). I am using CURL to do this and I have what I have tried so far
I would like to retrieve statistical data about a string field like the
min, max and average length (by counting the number of characters inside
the string). I am using CURL to do this and I have what I have tried so far
but my issue now is that I get "PropertyAccessException: Could not access
length". My title field is of type string and I was expecting Elasticsearch
to know about it. I am also using CURL for queries, is there any way to
overcome this error?
Thank you,
Cristina
On Saturday, April 12, 2014 2:50:04 PM UTC+2, vineeth mohan wrote:
Hello Cristina ,
This is not possible using stat facet. It expect the field to be a number
and it calculates max/min etc based on its different values.
A way to do this would be to add a new field while indexing which would be
the length of the title.
Then performing stats over it might work.
There might be other solutions based on scripting , but i need to explore
...
Thanks
Vineeth
On Sat, Apr 12, 2014 at 3:25 PM, Cristina Garbacea <cr1st1na...@gmail.com<javascript:>
wrote:
I would like to retrieve statistical data about a string field like the
min, max and average length (by counting the number of characters inside
the string). I am using CURL to do this and I have what I have tried so far
but my issue now is that I get "PropertyAccessException: Could not access
length". My title field is of type string and I was expecting Elasticsearch
to know about it. I am also using CURL for queries, is there any way to
overcome this error?
Thank you,
Cristina
On Saturday, April 12, 2014 2:50:04 PM UTC+2, vineeth mohan wrote:
Hello Cristina ,
This is not possible using stat facet. It expect the field to be a number
and it calculates max/min etc based on its different values.
A way to do this would be to add a new field while indexing which would
be the length of the title.
Then performing stats over it might work.
There might be other solutions based on scripting , but i need to explore
...
I would like to retrieve statistical data about a string field like the
min, max and average length (by counting the number of characters inside
the string). I am using CURL to do this and I have what I have tried so far
but what I get back from ES are only counts for the top 10 docs. How can I
get values like max length, min length and average length for my title
field? Thank you!
On Saturday, April 12, 2014 2:50:04 PM UTC+2, vineeth mohan wrote:
Hello Cristina ,
This is not possible using stat facet. It expect the field to be a number
and it calculates max/min etc based on its different values.
A way to do this would be to add a new field while indexing which would be
the length of the title.
Then performing stats over it might work.
There might be other solutions based on scripting , but i need to explore
...
Thanks
Vineeth
On Sat, Apr 12, 2014 at 3:25 PM, Cristina Garbacea <cr1st1na...@gmail.com<javascript:>
wrote:
I would like to retrieve statistical data about a string field like the
min, max and average length (by counting the number of characters inside
the string). I am using CURL to do this and I have what I have tried so far
The value computed can also be a script, using the value_script instead of
value_field, in which case the lang can control its language, and params allow
to provide custom parameters (as in other scripted components).
but what I get back from ES are only counts for the top 10 docs. How can
I get values like max length, min length and average length for my title
field? Thank you!
On Saturday, April 12, 2014 2:50:04 PM UTC+2, vineeth mohan wrote:
Hello Cristina ,
This is not possible using stat facet. It expect the field to be a number
and it calculates max/min etc based on its different values.
A way to do this would be to add a new field while indexing which would
be the length of the title.
Then performing stats over it might work.
There might be other solutions based on scripting , but i need to explore
...
I would like to retrieve statistical data about a string field like the
min, max and average length (by counting the number of characters inside
the string). I am using CURL to do this and I have what I have tried so far
returns me exception because the facet expects a number field. How can I
achieve my goal? Thanks!
--
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.
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.