Questions tagged [elasticsearch-1.6.0]

12 questions
22
votes
1 answer

Elasticsearch :found jar hell in test classpath

I want to perform unit testing in Elasticsearch for that I am using Java-test-framework I am using Elasticsearch-1.6.0 and referring to these link for help…
swaheed
  • 3,671
  • 10
  • 42
  • 103
4
votes
2 answers

how to use embedded ElasticSearch for integration testing

I am following this tutorials https://orrsella.com/2014/10/28/embedded-elasticsearch-server-for-scala-integration-tests/ All I am trying to follow the link because I am using ELasticSearch 1.6.0 but it's using NodeClient and I want to use…
swaheed
  • 3,671
  • 10
  • 42
  • 103
2
votes
1 answer

where is the type in elasticsearch7.1 index

i was using elasticsearch-1.6 here we have an index and a type and inside that type we have the documents https://www.elastic.co/guide/en/elasticsearch/reference/1.6/docs-index_.html as we had twitter as an index and tweet as an type and 1 is the…
swaheed
  • 3,671
  • 10
  • 42
  • 103
2
votes
1 answer

elasticsearch-1.6 Could not initialize class org.elasticsearch.monitor.jvm.JvmInfo when connecting to its docker container

I have an sbt project which includes elasticsearch i am creating a custom image of my sbt project and using elasticsearch:1.6.0 public image https://hub.docker.com/_/elasticsearch here is the docker file of my sbt project FROM…
swaheed
  • 3,671
  • 10
  • 42
  • 103
2
votes
0 answers

how to add test-jar in build.sbt

I am following this link https://www.elastic.co/guide/en/elasticsearch/reference/1.6/using-elasticsearch-test-classes.html The dependencies are given for maven style
swaheed
  • 3,671
  • 10
  • 42
  • 103
1
vote
1 answer

elasticsearch 1.6 elasticsearch command and code is not working in jdk11

i am using elasticsearch-1.6 its working fine when i have java 1.8 sbt version 0.13 and scala version 2.11.1 after then i updated to java version java version "11.0.2" 2019-01-15 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS) Java…
swaheed
  • 3,671
  • 10
  • 42
  • 103
1
vote
2 answers

Elastic-search how to order by group values alphabetically?

I have bellow query to group result, what i want to add to this query is to sort grouped values alphabetically. GET promote_kmp/audit_table/_search { "aggs":{ "group_by_table_name":{ "terms":{ "field":"table_name", …
jones
  • 1,423
  • 3
  • 35
  • 76
0
votes
1 answer

what elasticsearch query is needed to search the part of the whole word

I have a document in elasticsearch {"uuid":"eaa91372-d541-4b24-bdf4-3cb4902d2da1","artistName":"Amadeo Modigliani","Review":"abc","Origin":"pak","isNew":"false"} I am using match query in my code to get the document it's returning the correct…
swaheed
  • 3,671
  • 10
  • 42
  • 103
0
votes
0 answers

java.lang.NullPointerException on getting ElasticsearchIntegrationTest's Client

I am using ElasticSearch-1.6.0 using this link to setup ES testing https://www.elastic.co/guide/en/elasticsearch/reference/1.6/using-elasticsearch-test-classes.html and this link for…
swaheed
  • 3,671
  • 10
  • 42
  • 103
0
votes
1 answer

elasticsearch range filter incorrect

Everyone. This is a simple test code with the elasitcsearch document url curl -XPOST 'localhost:9200/customer/external/_search?pretty' { "took" : 3, "timed_out" : false, "_shards" : { "total" : 5, …
hello_god
  • 173
  • 10
0
votes
1 answer

ElasticsearchIllegalArgumentException

My code is curl -XGET 'http://localhost:9200/web/_suggest?pretty' -d ' { "brand-suggest": {"completion": {"field": "nameSuggest","size": "5","context": { "private": "false" }}, "text": "sampl"}}' I have an error while trying in elasticsearch…
venkat
  • 73
  • 2
  • 14
0
votes
1 answer

Difference between BoolFilterBuilder VS boolquerybuilder vs FilteredQueryBuilder

I've been using boolquerybuilder. The results are fine. Whats the purpose of using BoolFilterBuilder and FilteredQueryBuilder. can i use them instead of boolquerybuilder?