Coder Social home page Coder Social logo

Comments (1)

AnnaBNana avatar AnnaBNana commented on June 1, 2024 1

@ajwillo tested according to specs listed below, and I am unable to reproduce your error. When I run ./manage.py rebuild_index I am able to successfully write to an OpenSearch index. Without more detail on how you configured your OpenSearch domain, it is hard to say what the problem is here. Here are the details on how my application is set up:

Django==4.1.7
django-haystack==3.2.1
elasticsearch==7.13.3
Python 3.11.0b5

settings.py

HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.elasticsearch7_backend.Elasticsearch7SearchEngine',
        'URL': <DOMAIN-ENDPOINT>,
        'INDEX_NAME': 'haystack',
        'KWARGS': {
            'port': 443,
            'http_auth': (USERNAME, PASSWORD),
        }
    },
}

I configured my OpenSearch instance as a test domain, according to instructions found here https://docs.aws.amazon.com/opensearch-service/latest/developerguide/gsgcreate-domain.html

During setup I selected Enable compatibility mode, as it sounded like this might be required since I used version 7.x on the application side. My only thought is you may need to configure your OpenSearch domain differently to get this working. Hope this helps, don't hesitate to reach out, would be happy to help you troubleshoot.

from django-haystack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.