Questions tagged [amazon-opensearch]

242 questions
0
votes
0 answers

In open-search using java api to check if the index exists is not working

To check if an index in open-search we have a function called exists. BooleanResponse response = openSearchClient.indices().exists(ExistsRequest.of(s -> s.index(indexName))); This is not working this getting the below error. error image I installed…
Arjun S
  • 1
  • 2
0
votes
1 answer

How to connect to AWS OpenSearch Service in Java using Apache HttpClient 5 Transport or Apache RestClient Transport

I am using AWS SDK version 1, so using AwsSdk2Transport to setup OpenSearchClient is out of the option. Also, Java high-level REST client is getting deprecated. How can I connect to AWS OpenSearch cluster without using AwsSdk2Transport and Java…
Chintan
  • 59
  • 1
  • 2
  • 9
0
votes
1 answer

What is the ideal structure for storing and querying nested data in elasticsearch?

I'm running a query on elasticsearch using function_score where the value of a nested field is used for the calculation (price in this case). Which of the following is a better way to index the data? { "name": "John", "age": 50, …
HarryClifton
  • 129
  • 1
  • 7
0
votes
1 answer

Fluentd - turn log message string into searchable fields

I have been trying to transform application log messages into searchable fields in OpenSearch Dashboards(Kibana). For example, this log entry: 2023-06-20T05:59:59.568967474Z stdout F {"level":"INFO","timestamp":"2023-06-20…
0
votes
0 answers

Shrink operation fails in AWS OpenSearch

I want to make a shrink operation on a OS index. I have the following code: self.raw_request( "PUT", f"{index_name}/_settings", { "index": { "blocks.write": True, "routing.allocation.require._name":…
rodrigocf
  • 1,951
  • 13
  • 39
  • 62
0
votes
1 answer

how do I know if terraform aws_elasticsearch_domain "advanced_options" supports something like cluster_max_shards_per_node

Basically I am reading the docs... https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticsearch_domain And there is an advanced_options defined as "Key-value string pairs to specify advanced configuration options" But…
Jack-of-some
  • 309
  • 3
  • 12
0
votes
1 answer

Llama-index how to execute search query against OpenSearch Elasticsearch index?

I have this code where I am able to create an index in Opensearch Elasticsearch: def openes_initiate(file): endpoint = getenv("OPENSEARCH_ENDPOINT", "http://localhost:9200") # index to demonstrate the VectorStore impl idx =…
user2966197
  • 2,793
  • 10
  • 45
  • 77
0
votes
0 answers

Construct search request from XContentBuilder (Elasticsearch/Opensearch)

I am using the java high level rest client to construct and perform a search on my opensearch index. The query is a knn query with a few postfilter filters. I have built the query using XContentBuilder. I have converted the query to a string and run…
0
votes
1 answer

Access to AWS Opensearch in a VPC using IAM Role (ec2 instance profile)

I have an OpenSearch domain set up within a VPC, and there is an EC2 instance running in the same VPC. The EC2 instance has an IAM role attached to its instance profile, granting full permissions to access the OpenSearch domain. However, when…
0
votes
1 answer

Hibernate Search AWS OpenSearch Serverless connection problem

I am using Hibernate Search v. 6.1.8.Final within my Spring Boot application. My implementation works for OpenSearch v. 2.5 which runs locally and in Kubernetes. Besides the basis libraries I include…
Rokko_11
  • 837
  • 2
  • 10
  • 24
0
votes
0 answers

How to turn aws opensearch query into java code

How to do the aws opensearch query below with java code using aws sdk? POST zipcode-1/_search { "query": { "xy_shape": { "geometry": { "shape": { "type": "point", "coordinates": [ …
0
votes
0 answers

Prevent log data loss with FluentBit

I am new to fluentbit and need few suggestions for our logging solution for EKS. I am planning to achieve the below setup. EKS [app logs] -> Fluent Bit -> Amazon opensearch. In this scenario, how does one build a lossless logging solution. I am…
Gaurav Parashar
  • 1,347
  • 2
  • 19
  • 21
0
votes
1 answer

Is it possible to define an ISM/ILM policy such that an action is only performed when all the conditions are met?

For instance, I want to rollover my index only when both index_age:"1h" AND doc_count:1 { "policy": { "description": "Example rollover policy.", "default_state": "rollover", "states": [ { "name": "rollover", …
0
votes
1 answer

How does Llamaindex elasticsearch vector work

I am building an app to use Opensearch as vecotr store with Llamaindex using this example. Here is the code I have: endpoint = getenv("OPENSEARCH_ENDPOINT", "http://localhost:9200") idx = getenv("OPENSEARCH_INDEX", "gpt-index-demo") …
user2966197
  • 2,793
  • 10
  • 45
  • 77
0
votes
1 answer

elasticsearch .net client complex query not working

I've got list of objects called selected which is this shape: List<{bool Selected, String Discriminator, List Tags}>. I need to say if document.VgnItm.Discriminator is one of selected[index].Discriminator, AND document.VgnItm.Tags has at least…
BeniaminoBaggins
  • 11,202
  • 41
  • 152
  • 287