1

The index is created on the local file directory and not on the elasticsearch server.

I created a new spring boot project that for databased used spring-data along with hibernate search - https://github.com/dhananjay12/spring-data/tree/master/es-hibernate-search-seperate

Its a simple CRUD operation. I am using mysql as backend and elasticsearch-5.6.3. The elasticsearch is running on the default configurations

The data is getting saved in mysql but the index is not created on the elasticsearch server. It is getting created in a file where I am running the project

1
  • Hi! Did you resolve this problem? I'm experiencing exactly the same. Commented Oct 26, 2019 at 9:22

1 Answer 1

1

You probably forgot to set the Elasticsearch integration as the default for all indexes. By default Hibernate Search uses the embedded Lucene integration.

Just set the hibernate.search.default.indexmanager property to elasticsearch, either in hibernate.properties or in persistence.xml.

See this section of the documentation for details about Elasticsearch-specific configuration.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.