Skip to content

Haystack API with my own Elasticsearch datastore #2649

Answered by masci
nniiggeell asked this question in Questions
Discussion options

You must be logged in to vote

Hi @nniiggeell

the docker-compose.yml file is a good starting point but can be customises in multiple ways that totally depend on your use case.

I would like to know how I can connect Haystack API to my own Elasticsearch datastore.

Let's say you already have an ES cluster running somewhere - you don't need to spin up a container at all, you can comment out this whole section:

  # elasticsearch:
  #   # This will start an empty elasticsearch instance (so you have to add your documents yourself)
  #   #image: "elasticsearch:7.9.2"
  #   # If you want a demo image instead that is "ready-to-query" with some indexed articles
  #   # about countries and capital cities from Wikipedia:
  #   im…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nniiggeell
Comment options

@masci
Comment options

Answer selected by nniiggeell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants