Questions tagged [elasticsearch-java-api]

281 questions
0
votes
1 answer

Elasticsearch java api or filter

I need to apply an "OR" filter, which would be equivalent to category in ('a' or 'b' or 'c' or 'd' or 'e') an equivalent ES query is provided below "query_string": { "query": "category: (\"a\", \"b\", \"c\", \"d\", \"e\")" …
Adithya Kumar
  • 159
  • 1
  • 2
  • 12
0
votes
2 answers

Getting RoutingMissingException while migrating from ES 2.2.0 to ES 2.3.0

I am using prepareDelete query in a BulkRequest where I have a set of IDs which I have to delete. I used: BulkRequestBuilder bulkRequest = searchClient.prepareBulk(); for id in ids { bulkRequest.add(searchClient.prepareDelete("indexName",…
Animesh Pandey
  • 5,900
  • 13
  • 64
  • 130
0
votes
2 answers

Elasticsearch: finding the index of the word for which response document is returned

I am querying elasticsearch and getting an array in return. But the returned array contains multiple sentences. i want to find the index of the word for which the document is returned. The relevant part of the returned document: "_id":…
0
votes
1 answer

Looking for documentation on ElasticSearch java node settings in V2

I am unable to locate the documentation as to the settings that i can put in the following Settings instance and what each setting implies to the node client. Settings settings = Settings.settingsBuilder() …
DPRao
  • 47
  • 7
0
votes
1 answer

Elasticsearch Update indexdocument

I need to update an index document for an elasticsearch table and this is the code I have implemented. But it is not working, what's wrong and how should I implement this? My code. Map matching_result; for (SearchHit hit :…
Niranjan Dattatreya
  • 405
  • 1
  • 6
  • 18
0
votes
1 answer
0
votes
2 answers

Does ElasticSearch have the same indexes functionality that mongodb have?

I want to know as we have index creation feature in mognodb to speed up the query process https://docs.mongodb.org/v3.0/indexes/ what do we have for elasticsearch for this purpose? I googled it but I was unable to find any suitable information, I…
swaheed
  • 3,671
  • 10
  • 42
  • 103
0
votes
1 answer

elasticsearch with NativeSearchQueryBuilder space and uppercase

I'm using the following code to filter by elastic search java api,it works fine and return result if i use string query ,but If i use text with spaces or uppercase letters it don't return any data if use String…
0
votes
1 answer

Sorting on child occurrences Elasticsearch JAVA API

{ "skus" : [ { "inv" : 426, "sub_category_id" : 677 }, { "inv" : 112, "sub_category_id" : 678 }, { "inv" : 0, "sub_category_id" : 611 } ] } I have the document called 'product' with…
naw
  • 39
  • 1
  • 8
0
votes
1 answer

How can I find exactly phrase with an array field in Elasticsearch?

I have index with field singers mapping like: "singers": { "type": "string", "index_name": "singer", "analyzer": "unicode_analyzer" } Example data like: "singers": [ "Đàm Vĩnh Hưng", "Thanh Lam (NSƯT)" ] Now I want to find if…
0
votes
1 answer

Connection immediately is aborted when trying to connect to remote cluster-node

I am trying to connect to an Elasticsearch cluster form a Java application by using the TransportClient. I have successfully tested connected to a cluster running locally. Now we have set up a remote cluster in the EC2-Cloud. Accessing it via REST…
centic
  • 15,565
  • 9
  • 68
  • 125
0
votes
2 answers

Elasticsearch NoNodeAvailableException

I am getting following error from Elasticsearch. `Apache Tomcat/7.0.64 - Error report