_stats for a specific document?


(Tiago Rodrigues) #1

Hello,

I had found a way of knowing how many searches were made in an index with
the following code:

http://localhost:9200/IndexName/_stats

In results have the field "search"."'fetch_total"

The point is, is somehow possible to take the amount of searches in an
document?
I tried the following code and got no results:

http://localhost:9200/IndexName/typename/_id/_stats

the error i got is the following:

No handler found for uri
[/megamural/banner/BCZeMzQiRyiXR-wbEbn9fg/_stats?pretty=true] and method
[GET]

Thanks for any help and sorry my poor english.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #2

I don't understand what you are trying to do.

Are you trying to search for documents?
Or do you need stats on index?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 22 oct. 2013 à 21:54, Tiago Rodrigues tiago_tk21@hotmail.com a écrit :

Hello,

I had found a way of knowing how many searches were made in an index with the following code:

http://localhost:9200/IndexName/_stats

In results have the field "search"."'fetch_total"

The point is, is somehow possible to take the amount of searches in an document?
I tried the following code and got no results:

http://localhost:9200/IndexName/typename/_id/_stats

the error i got is the following:

No handler found for uri [/megamural/banner/BCZeMzQiRyiXR-wbEbn9fg/_stats?pretty=true] and method [GET]

Thanks for any help and sorry my poor english.

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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Tiago Rodrigues) #3

I want to know how many times a document was searched, I found a way to
know the index feetch_total in _stats, and now i think i can do the same
with a single document but i tried and got an error.

Probably i need to try with another parameter.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(David Pilato) #4

This feature does not exist in elasticsearch. You have to build it yourself.

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 23 oct. 2013 à 14:31, Tiago Rodrigues tiago_tk21@hotmail.com a écrit :

I want to know how many times a document was searched, I found a way to know the index feetch_total in _stats, and now i think i can do the same with a single document but i tried and got an error.

Probably i need to try with another parameter.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.


(Tiago Rodrigues) #5

Oh ok /~: ,
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(pellyadolfo) #6

A question related to this thread. What is the quickest way, from the point
of view of performance, to get a handler to a document identified by its
id. Is there any native API to skip creating, parsing... JSON
requests/response?

And, assuming that a handler to an specific document is available, is there
any API to get metrics (count words, eval terms, and the usual stuff that
is included in a query) for a single document? (This should be internally
available to run queries but maybe not propagated externally to the user.

What I am trying to do is synchronizing documents in ES with an external
storage but I do not think is a good idea to run a query per document.

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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/af0bc137-47e5-45dd-bfca-798e37b2029d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #7