Questions tagged [elasticsearch-7]

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

314 questions
0
votes
1 answer

How to associate a value with a keyword in Elasticsearch

I am using Elasticsearch 7.6 and indexing a list of keywords with the following mapping definition: "keywords" : { "type" : "text", "analyzer": "std_folded", "store": true, "fields": { "keyword": { "type": "keyword" } …
kee
  • 10,969
  • 24
  • 107
  • 168
0
votes
4 answers

Elasticsearch returns zero hits when using termQuery in QueryBuilders

I am building a Java app that searches through data from Elasticsearch (Data comes in from kafka to logstash and then elasticsearch in json format). When I use QueryBuilders.queryStringQuery(reqId) I get all results back no problem but when I use…
Russ
  • 41
  • 1
  • 7
0
votes
1 answer

QueryString to search String with colon

i am trying to achieve below condition orgId = "z2store" and type = "web" and dateTime = "12:17:08" below query i have written GET /sample/_search { "bool" : { "must" : [ { "term" : { "orgId" : { "value" :…
TeamZ
  • 343
  • 6
  • 15
0
votes
1 answer

How to use geo_distance filter as OR condition in Elasticsearch 7.x?

I am using Elasticsearch 7.6 and trying to run a query that runs a geo_distance query to find matching documents within an exact city OR within a distance range of 25 miles in this case. In layman's terms, it would be "Do a search for all jobs in…
user1669296
  • 425
  • 1
  • 6
  • 13
0
votes
0 answers

Error is thrown while indexing a document through Elasticsearch rest client

I am using spring boot application with Elasticsearch rest high level client. While indexing a document in already created index customer , I am facing following issue : java.lang.IncompatibleClassChangeError: Found interface…
user11935734
0
votes
1 answer

How to limit max number of ElasticSearch documents in a index?

I've installed an Elastic Search (version 7.x) cluster and created a new index. I want to limit the maximum number of documents in this index. Let's say 10000 documents top. The naive solution is to query the number of documents before inserting a…
No1Lives4Ever
  • 6,430
  • 19
  • 77
  • 140
0
votes
2 answers

Elasticsearch 7.5.2 cluster is creating only one shard for an index by default

I have a newly setup Elasticsearch 7.5.2 cluster. When I create an index, only one shard is created default for it. My cluster strategy is as below: Total Nodes: 5 -------------- Node 1 & Node 2 - Master Only Node 3 - Master & Data…
0
votes
2 answers

Nested documents in ElasticSearch without mapping types

With the planned removal of mapping types coming to ElasticSearch, does this also mean the deprecation of nested documents and nested queries? How would/will ElasticSearch support queries of nested objects in typeless context? The functionality I'm…
0
votes
1 answer

Kibana and elasticsearch regexp doenot work

I'm trying to get exact match of field but unfortunately regexp doesn't work with me. I have elasticsearch 7.5.2 Now i'm trying to search inside field for string exactly for example I have this urlField : /lang1/page1/ and /lang2/page1/ and…
The Dude
  • 61
  • 8
0
votes
1 answer

FSCrawler can't find existing jobs

I'm quite new to the Elastic Stack and want to index documents by using FSCrawler. I'm occuring a strange problem: I create a new job and get a confirmation that it had been successfuly created. I can see the newly created folder with the…
0
votes
1 answer

Elasticsearch 7 - prevent fields from being searchable

I know I can prevent fields from being indexed by setting the enabled mapping to false. This does work as expected but I am concerned that some of these fields will be needed in the future. In my use case, I am searching for a product SKU of…
Adam Lambert
  • 1,311
  • 3
  • 24
  • 45
0
votes
1 answer

Elastic search score documents based on how close numerically a string is

Assuming we have documents with the following format in elastic indexed: { "street": "Adenauer Allee", "number": "119", "zipcode": "53113" } and we have a query like: { "from": 0, "size": 1, "query": { "bool": { …
gosom
  • 1,299
  • 3
  • 16
  • 35
0
votes
1 answer

How to create an index in Elasticsearch with an analyzer and shard defined?

I am trying to create an index with the mapping of text and keyword with the analyzer defined, here what i have tried till now: { "settings" : { "number_of_shards" : 2, "number_of_replicas" : 1 }, "analysis": { …
Ankit Kumar
  • 41
  • 1
  • 7
0
votes
2 answers

How do we create an IndexRequest in Java for ElasticSearch 7.4.2 Java High Level REST Client?

I am trying to insert data into ElasticSearch (version 7.4.2) hosted on bonsai.io cloud. When I try to create an IndexRequest & IndexResponse in my client code in Java (Java High Level REST client), there is no import available for both IndexRequest…
0
votes
1 answer

Use field value from Parent Document in Child Query

I have a parent-child relationship. My parent documents have a field called lastRevisionId which stores an identifier for the most recent revision of the parent document. The child documents are immutable key/value pairs describing properties of a…
Matthew Shea
  • 567
  • 5
  • 14
1 2 3
20
21