Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Elasticsearch 8.10 or higher #183

Open
peterjaap opened this issue Jul 10, 2024 · 2 comments
Open

Add Elasticsearch 8.10 or higher #183

peterjaap opened this issue Jul 10, 2024 · 2 comments

Comments

@peterjaap
Copy link
Contributor

So we can make use of https://www.elastic.co/blog/introducing-query-rules-elasticsearch-8-10

@peterjaap
Copy link
Contributor Author

build/dist/docker-compose-elasticsearch8.yml

services:
  elasticsearch8:
    build:
      context: build/dist/elasticsearch
      args:
        - FROM_TAG=8.14.2
    environment:
        - "discovery.type=single-node"
touch conf/elasticsearch8
dev rebuild
docker ps | grep elasticsearch8
docker inspect <container-id> | grep IPAddress
docker exec -it <container-id> /bin/bash

sed -i '/^xpack.security.enabled:/d' /usr/share/elasticsearch/config/elasticsearch.yml
echo 'xpack.security.enabled: false' >> /usr/share/elasticsearch/config/elasticsearch.yml
sed -i 's/^xpack.security.http.ssl.enabled: true/#xpack.security.http.ssl.enabled: false/' /usr/share/elasticsearch/config/elasticsearch.yml
sed -i 's/^xpack.security.http.ssl.keystore.path: .*/#&/' /usr/share/elasticsearch/config/elasticsearch.yml
sed -i 's/^xpack.security.http.ssl.truststore.path: .*/#&/' /usr/share/elasticsearch/config/elasticsearch.yml
docker restart <container-id>
$ curl -X GET http://172.19.0.6:9200
{
  "name" : "79ee9caeaac5",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "SVfA0xwNT_mfUlylRGGCDQ",
  "version" : {
    "number" : "8.14.2",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "2afe7caceec8a26ff53817e5ed88235e90592a1b",
    "build_date" : "2024-07-01T22:06:58.515911606Z",
    "build_snapshot" : false,
    "lucene_version" : "9.10.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}`

@peterjaap
Copy link
Contributor Author

Info on how to use ES8 with Elasticsuite; Smile-SA/elasticsuite#3273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant