Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

createIndexWithStringSettingsAndMapping

Zhenwei Mar 25, 2018 06:47PM +03

I am working on a Java/Spring Boot Application.

Had my setup similar to this and everything is working.
https://github.com/searchly/searchly-java-sample/blob/master/src/main/java/com/searchly/jest/sample/service/SearchService.java

Now I am trying out adding analyzer for autocomplete in here.
https://www.elastic.co/guide/en/elasticsearch/guide/current/_index_time_search_as_you_type.html

Now sure exactly how to create an index with settings and mappings.
Followed example here and got error
https://github.com/searchbox-io/Jest/blob/d99556f466fc02337b381610ed7378450decbbd3/jest/src/test/java/io/searchbox/indices/CreateIndexIntegrationTest.java

{"error_id":"575afe57-1acf-424f-80c7-4a05694266ea","errors":[{"code":120,"message":"Http Request method not allowed for this resource"}]}

1 Community Answers

Best Answer
Ferhat Sobay Mar 25, 2018 10:32PM +03

Hi Zhenwei,

You should use at least version 5.x of Jest with 5.x and higher Elasticsearch version.

Best,
Ferhat


Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
support@searchly.com
http://assets2.desk.com/
false
searchboxio
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete