Questions tagged [elasticsearch-2.4]
19 questions
8
votes
1 answer
Atomic alias swap fails with index_not_found_exception on a totally unrelated index
I want to replace and index with zero-downtime, as described in the ES documentation.
I am doing so by:
creating a new index my_index_v2 with the new data
refreshing the new index
then swapping them in an atomic operation, by performing the…

istepaniuk
- 4,016
- 2
- 32
- 60
5
votes
1 answer
How to override `org.elasticsearch.client.FilterClient#doExecute()` in Scala?
Specifically with "org.elasticsearch" % "elasticsearch" % "2.4.x" (it does work with later versions
of ElasticSearch where ActionRequest no longer takes a parameter type, but we can't update to those just yet!).
The Java method we're trying to…

Roberto Tyley
- 24,513
- 11
- 72
- 101
3
votes
1 answer
ElasticSearch 2.4 - Query String OR between main type and nested
I'm using ElasticSearch 2.4
I need to create a search query between main object and nested object, if I use the AND condition it works correctly, but the problem is if I try to use OR conditional between main object and nested object:
Please review…

Cristian Rodriguez
- 75
- 5
3
votes
1 answer
Elasticsearch performance difference between ‘must’ and ‘must_not’
I wanted to know the performance difference between using must clause and must_not.
I am getting different timings trying from both of them.
Suppose I have 10 groups, and I want to make 5 groups accessible to a user while 5 are excluded.
So, I have…

prasiddha khadka
- 31
- 3
3
votes
0 answers
copy / update the child index using parent index field in elasticsearch
I have an index with parent-child relation in elastic 2.4.
This index has 2 type, one is a parent and second is the child. Both have different mappings except a common field that is field1.
Index mappings look like below:
type parent:
{
…

Aman Garg
- 3,122
- 4
- 24
- 32
2
votes
2 answers
How to implement an exact match in a filter with elasticsearch?
I'm working on a query based on name fields on Elasticsearch 2.4. The fields I'm interested in are:
state
city
colony
If I send this query:
{"query":
{"bool" :
{"must" : [
{"match" : {"state" : {"query" :…

sirandy
- 1,834
- 5
- 27
- 32
1
vote
0 answers
ElasticSearch 2.4 - inner_hits nested merge queries result
I'm using ElasticSearch 2.4
I need to get all Purchases that match all queries.
I'm actually using inner_hits function but it doesn´t works as expected because it only shows the match of the current nested query and the problem is the combination…

Cristian Rodriguez
- 75
- 5
1
vote
1 answer
ElasticSearch 2.4.6 does not start at all without any error message Ubuntu 16.04
Trying to start elasticsearch 2.4.6 with ./elasticsearch in the bin direcytory. It just closes and nothing happens. See the below screenshot
Stepping through the starter scripts, I can see that it comes until exec "$JAVA" $JAVA_OPTS $ES_JAVA_OPTS…

Tamim Addari
- 7,591
- 9
- 40
- 59
1
vote
1 answer
Elasticsearch Aggregation Pagination
Is there any way to do pagination using Elastic search with aggregation?
the elasticsearch version is 2.3.
This is the query:
{
"query": {
"match": {
"clientMac": "88:"
}
},
"aggs": {
"top_tags": {
"terms": {
…

Daoud Shaheen
- 364
- 4
- 16
1
vote
0 answers
Search with scroll parameter allows to exceed max_result_window
I'm using elasticsearch 2.4.0. My index settings are the following
settings: {
index: {
creation_date: "1506434142013",
number_of_shards: "5",
number_of_replicas: "1",
uuid: "A8_ikspMQgu34QOb22aIdA",
version: {
created:…

Alex Frolov
- 73
- 6
0
votes
0 answers
Elasticsearch data migration from ES version 2.4.6 to ES version 7.9.1 with duplication handle
I have written a code to migrate data from Elasticsearch 2.4.6 to Elasticsearch 7.9.2 through Python code.
But for some fields which have data_type geohash I am getting error
"parse exception",…

Atpug627
- 23
- 1
- 7
0
votes
0 answers
Spring Boot 1.5.x with Spring Data Elasticsearch 2.1.x how to secure Elasticsearch 2.4.4
How to secure access to Elasticsearch 2.4.x when in application is used Spring Boot 1.5.x with Spring Data Elasticsearch 2.1.x

eKangu
- 1
0
votes
1 answer
Query string with default_operator as AND works differently in ES 2.4 and ES 6.8
The query_string seems to be returning the documents that match all the terms across fields specified in the fields parameter in ES 2.4 whereas in ES 6.8 documents that match all the terms per field are returned.
Steps to reproduce:
Insert the…

logdev
- 292
- 6
- 22
0
votes
1 answer
URL to access cluster environment for ElasticSearch2.4.3
We have an ElasticSearch2.4.3 cluster environment of two nodes. I want to ask what URL should I provide to access the environment so that it works in High Availability?
We have two master Node1 and Node2. The host name for Node1 is node1.elastic.com…

Prateek
- 51
- 10
0
votes
1 answer
Difference between elasticsearch queries
I'm having a hard time trying to figure out why these two queries do not return the same number of results (I'm using elasticsearch 2.4.1):
{
"nested": {
"path": "details",
"filter": [
{ "match": { "details.id": "color" } },
{…

cebola
- 130
- 1
- 6