1

I m trying to create my custom analyzer using elastic search, this is my setting.json file located in the given path

{   
    "analysis": {
        "analyzer": {
            "lowercase": {
                "type": "custom",
                "tokenizer": "keyword",
                "filter": [
                    "lowercase"
                ]
            }
        }

When I start my application then following error occurs

[ restartedMain] .d.e.r.s.AbstractElasticsearchRepository : failed to load elasticsearch nodes : org.elasticsearch.index.mapper.MapperParsingException: analyzer [lowercase] not found

@Document(indexName="user",type="userdetails",shards=1)
@Entity
@Table(name="user")
@Setting(settingPath = “J://setting.json”)
public class user implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @org.springframework.data.annotation.Id
    private String userid;

    @Column(nullable=false)
    @Field(type=FieldType.String,store=true)
    private String username;



    @Column(nullable=false)
    @MultiField(
              mainField = @Field(type = FieldType.String,index = FieldIndex.analyzed,analyzer="lowercase"),
              otherFields = {
                  @InnerField(index = FieldIndex.not_analyzed, suffix = "not_analyzed", type =FieldType.String)
              }
            )
    private String city;
2
  • Can you share you elastic search entity Commented Jan 19, 2018 at 11:07
  • i have shared elastic search entity Commented Jan 22, 2018 at 4:32

1 Answer 1

1

Resolved the issue by deleting the previous index, after deletion of index all settings are working properly

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.