Hits vs getTotalHits

https://www.evernote.com/shard/s381/sh/79afa662-059a-4c1b-9337-38cf0bd0fcb5/cf9472d78647e00e8470586442d598b1/deep/0/SearchHits.java----Maven--org.elasticsearch-elasticsearch-1.2.2----exzeo-spock------Projects-exzeo-spock-.png

Is this is for backward compatibility? Which is latest one?

--
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/d8f83077-d220-43dd-acbb-c4253ee3c1ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

IIRC, totalHits() was the first form. But some frameworks needed accessors using get/set.
So get was added.

I would use get/set.

Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 14 août 2014 à 20:46, AsyncAwait vadivtk@gmail.com a écrit :

Is this is for backward compatibility? Which is latest one?

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/d8f83077-d220-43dd-acbb-c4253ee3c1ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/C4C7C738-8671-413D-88A1-946109CF18F2%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.