1,366 questions
1
vote
1
answer
234
views
Migrate Elasticsearch Builder classes to latest Java API 9.x
I have this elasticsearch Java code to connect and get data:
Gradle dependencies:
implementation 'org.elasticsearch:elasticsearch:5.6.16'
implementation 'org.elasticsearch.client:transport:5.6....
0
votes
0
answers
21
views
Query string operator in elastic doesn't work with multiple fields and dashes
I have the following elastic example query that checks on product title:
GET new_customer_order_items/_search
{
"query": {
"bool": {
"filter": [
{
...
0
votes
1
answer
103
views
Elasticsearch doesn't creating index automatically
ES is up and running but not creating index automatically and not connecting to micro services also.
ps -ef | grep elasticsearch
imail 3767 1 0 06:22 pts/0 00:00:11 /usr/lib/jvm/java-1.8.0-...
0
votes
0
answers
66
views
Elastic query "must" does not work correctly
I have a problem with Elasticsearch
I want to create a query that will find students in a class with certain skills.
For this, I want to use a query with "AND".
My query only works correctly ...
0
votes
1
answer
41
views
Is that a way to use elastic search replace the specific field data to null when retriving search result?
I need to use elastic search in nestjs to query to retrieve some result from index.
Requirements: I need all results including access_level: "Restricted" and access_level: "...
0
votes
1
answer
142
views
i want to update the data type of fields in elasticsearch
I want to update the data type of fields I already created an index with data also visualization now want to update the data type of one field. I am doing this in the console of dev tools
I tried to ...
1
vote
1
answer
64
views
How to fetch documents with must match clause in elastic search 8.9 v
{
"size": 0,
"query": {
"bool": {
"must": [
{
"match": {
"cid"...
0
votes
1
answer
761
views
How can I automate data deletion in jaeger and elasticsearch?
I want to automate the process of removing old data from elastic search container.
I have written a docker-compose file to run elastic search, jaeger collector, agent, and query containers and then ...
0
votes
3
answers
184
views
Elasticsearch Merge tokens (terms) after the tokenisation
I am trying to find a solution to combine all tokens (terms) after tokenisation.
for example - This analyser(my-analyser) produce n tokens after applying "custom_stop" filter. Is there any ...
0
votes
1
answer
350
views
Elasticsearch completion suggester across multiple indices with different fields
I have 2 huge indices in the Elastic-search ,I am implementing search auto completion using completion suggester,I need to have suggeters from 2 different indices with different fields but it is not ...
0
votes
1
answer
168
views
Could not get alias of newly created template in ElasticSearch V8.6.2
I am a rookie to the ElasticSearch, and just tried to create a template with the following command.
PUT https://myip:myport/_template/templatetest
{
"index_patterns": ["templatetest-...
1
vote
0
answers
35
views
My Elastic Search query is not giving results, even though the value exsist
My Elastic Search Query is
GET /My_index_here/_search
{
"query": {
"bool": {
"must": [
{
"nested": {
"path":...
0
votes
0
answers
56
views
maximum concurrent count record in elasticsearch?
how to find the maximum concurrent connected client count on the basis of networkId filed in 1 hour in elasticsearch?
I have tried this 1 query
GET /sample_index/_search {"size":0,"...
0
votes
1
answer
105
views
RestHighLevelClient giving "unrecognized parameters" when trying to send request to ElasticSearch
I am trying to connect to one of the on-prem ES system in my application. Previously it was a different cluster. Recently, our ES team migrated it to a different cluster with basic auth enabled. I ...
0
votes
1
answer
119
views
Minimum should match with filter doesn't return any result
I have a complicated query which works fine.the proble is that I'm going to add a condition(filter) to it to filter the result.I need the exact result that I currently get with filtering based on the ...
0
votes
1
answer
195
views
"unknown key [tagindex_v2] for create index" error when creating an index in elasticsearch
Hu, I'm trying to copy some indices from one Elasticsearch instance to another. I'm trying top copy this index called "tagindex_v2". I've used http://localhost:9400/tagindex_v2 and in the ...
0
votes
0
answers
69
views
Elastic Search must and Should Combination
I'm new to elastic search and I've the below data in ElasticSearch.
{
"User": "A",
"Event": "E1"
},
{
"User": &...
0
votes
1
answer
317
views
How I can remove only data from elastic search index not the complete index
I have one ELK index available using that I am showing visual dashboard.
My requirement is that I need to empty or remove the data only , not the index it self. How i can achieve this. I googled a ...
0
votes
1
answer
2k
views
Elastic Search: Adding an element on an array
I am trying to batch update documents on the elastic search index. I want to know how can I achieve this scenario.
I have to create document if no document of that primaryKey exist.
I have to add the ...
1
vote
1
answer
3k
views
How do I extend the Elasticsearch SSL Certificate expiry periods?
I have an ES Cluster(ES version 7.4.2) that has been running for 3 years.
when I run the following query.
GET _ssl/certificates
I'm getting the output.
"expiry" : "2022-11-20T07:27:29....
0
votes
1
answer
2k
views
BadRequestError(400, 'x_content_parse_exception', '[1:263] [bool] failed to parse field [filter]')
I have this query ,
search = {
"query": {
"bool": {
"filter": [
{
"range": {
"created_at": {
&...
0
votes
1
answer
1k
views
How can I make query between dates in ElasticSearch?
I am trying to filter between two dates in ElasticSearch but I have the next error
This is the query
{
"query": {
"bool": {
"must": [
...
0
votes
0
answers
39
views
Purge elasticsearch
I am trying to install elasticsearch version 5.4, but when I am trying to remove elasticsearch I am getting below error:
sudo apt-get remove --purge elasticsearch
[sudo] password for ank:
E: ...
0
votes
0
answers
83
views
Default operator AND is not working for multi-field query_string in elastic search
I am searching for text "The British government on Monday" but not getting result.
my query is given below.
GET _all/_search
{
"query": {
"bool": {
&...
0
votes
1
answer
24
views
unable to match document containing all words specified in query
I am struggling to get only those documents which contains word1 and word2 both at least. I tried multiple ways to form request but still fails to fetch required records. Below request returns ...