Questions tagged [elasticsearch-2.0]

Use this tag for version specific questions about Elasticsearch 2.0 - the distributed, RESTful search and analytics engine. When using this tag also include the more generic [elasticsearch] tag where possible.

Elasticsearch 2.0 takes huge strides forward in terms of speed, security, scalability, and hardware efficiency. It introduces a host of new features, including powerful new aggregations to do more analytics, cluster state diffs to support even larger clusters, compatibility with 2.0 versions of Shield (security), Marvel (monitoring), Watcher (alerts), and more.

345 questions
0
votes
3 answers

Elasticsearch : How to get top 10 distinct values for a field

I am trying to get the top 1 distinct values for a field as GET /indexName/test/_search?search_type=count { "aggs": { "my_fields": { "terms": { "field": "col1", "size": 10 } } } } and here is what i get { …
AbtPst
  • 7,778
  • 17
  • 91
  • 172
0
votes
1 answer

Elasticsearch NodeJS : How to return result

I am trying to return a value out of a js function call as var elasticsearch = require('elasticsearch'); var client = elasticsearch.Client({ host: 'localhost:9200', log: 'trace' }); var r=""; client.ping({ // ping usually has a 3000ms…
AbtPst
  • 7,778
  • 17
  • 91
  • 172
0
votes
1 answer

Elasticsearch : Uncaught ReferenceError: elasticsearch is not defined

I am trying to create a NodeJS application using Elasticsearch here is my code