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
1 answer

AWS Elasticsearch Avg aggregation Java API generates error while trying to retrieve results using Jest client during a certain time period

I am using Elasticsearch SDK 2.3 and also Jest 2.0.0 to create a client. I am trying to get average aggregation (and other aggregations) implemented which will retrieve results from a certain time period. SearchSourceBuilder searchSourceBuilder =…
0
votes
1 answer

nGram partial matching & limiting nGram results in multiple field query

Background: I've implemented a partial search on a name field by indexing the tokenized name (name field) as well as a trigram analyzed name (ngram field). I've boosted the name field to have exact token matches bubble up to the top of the…
0
votes
2 answers

How to get elasticsearch.js to work without using require?

I am trying to implement elasticsearch.js in my project and when I added: var elasticsearch = require('elasticsearch'); It broke my project and said require is not defined. I did research and saw that I would have to use a library called…
Rethabile
  • 325
  • 3
  • 22
0
votes
1 answer

Elasticsearch query based on result of initial query

I have an interesting problem, I have an Elasticsearch query which brings back whatever results, however, some of these results have have other results associated with them, like comments associated with a forum post. If a forum post is matched by…
0
votes
1 answer

Elasticsearch - Why am I not getting the same search results after updating a document?

Here's what I'm doing: First, I make a search and get some documents curl -XPOST index/type/_search { "query" : { "match_all": {} }, "size": 10 } Then, I'm updating one of the documents resulted in the search curl -XPOST…
0
votes
2 answers

Elasticsearch Nested Parent-Child mapping

I'd like to map the following structure: - I have blog posts - Blog posts can have comments - Comments can have replies (which are also comments), so it should be a recursive datastructure POST -----*--> COMMENT COMMENT -----*---> COMMENT Here's…
maestro
  • 671
  • 1
  • 13
  • 27
0
votes
1 answer

using term in elasticsearch for queries

I have downloaded a sample accounts json database from the elasticsearch website.https://www.elastic.co/guide/en/elasticsearch/reference/current/_exploring_your_data.html I am trying to do some queries on top of it. For example, curl -XGET…
0
votes
2 answers

Establish if a document satisifies a query (without actually performing the query) in ElasticSearch

I have a document (that I know is in the index), and a query. Is there a way of knowing if the document satisfies the query, without actually querying the index and looking into the results. So for example, I'd like to know if the document { "price"…
meto
  • 3,425
  • 10
  • 37
  • 49
0
votes
1 answer

Denormalizing data for Elasticsearch

I have a PostgreSQL database. There are 72 tables in the database. The total number of columns is greater than 1600. And I would like to index all this data into Elasticsearch and be able to run bool queries over it. What is the best way to…
srgbnd
  • 5,404
  • 9
  • 44
  • 80
0
votes
0 answers

elasticsearch change number of shards / replicas

I am trying to change the number of shards and replicas for an index as shown below.. I am using ElasticSearch 2.4.0. I did reindex the data and trying to change the number of shards and replicas with the new index. For example if I want to…
0
votes
3 answers

Elasticsearch:: Sorting giving weird results

When I am searching the for the first time, its sorting all documents and giving me the first 5 records. However, if same search query is executed by changing the sort direction(ASC -> DESC), then its not sorting all documents again, its giving me…
0
votes
0 answers

Cannot increase number of replicas. Leading to Unassigned shards even though i have enough nodes

In my ES cluster i have 19 nodes. Following is my cluster health. { "cluster_name" : "AVS", "status" : "green", "timed_out" : false, "number_of_nodes" : 19, "number_of_data_nodes" : 19, "active_primary_shards" : 23, …
Dhaval
  • 1,046
  • 6
  • 10
0
votes
1 answer

Elasticsearch Synonyms returning 0 results

I created a synonym filter named "synonym_filter" "synonym_filter": { "type": "synonym", "synonyms": [ "adidas, xyz, abc", "nike, rofl, lol" ] …
Michael Leiss
  • 5,395
  • 3
  • 21
  • 27
0
votes
1 answer

elasticsearch - field filterable but not searchable

Using elastic 2.3.5. Is there a way to make a field filterable, but not searchable? For example, I have a language field, with values like en-US. Setting several filters in query->bool->filter->term, I'm able to filter the result set without…
Josh
  • 4,726
  • 2
  • 20
  • 32
0
votes
1 answer

Elasticsearch 2.x: Error with geo_point with Mongodb and Mongoosastic

Yo! Having some problems there past ew days working through this error when working with the 'geo_point' mapping in elasticsearch 2.x. while trying to map my mock data to include the 'geo_point' I'm receiving an error in my console when running the…