In this post, I am going to explain, how ‘Elasticsearch Character Filter’ work. So there are following steps to done this.
Step -1: Set mapping for your index: Suppose our index name is ‘testindex’ and type is ‘testtype’. Now, we are going to set analyzer and filter.
“Character filters are used to preprocess the string of characters before it is passed to the tokenizer. A character filter may be used to strip out HTML markup, or to convert “&” characters to the word “and” “ As you seen above, we have set a filter to convert ‘&’ to ‘and’ Step-2 Index your data: Now, we are going to index data containing ‘&’ character. But we want to fetch data from ‘and’
Step-3: Check how analyzer work for your index data :
Step-4: Fetch data from match query : Now, I want to fetch data from match query. As you…
View original post 76 more words