Now, I can use analysers - "name_analyzer" for a field in elastictastic document. Here is my model class
tag.rb
field :tag_value, type: 'string', index: 'analyzed', analyzer: 'name_analyzer' do
field :tag_value_lower, type: 'string', index: 'analyzed', analyzer: 'lower_keyword'
field :tag_value_untouched, type: 'string', index: 'not_analyzed'
end
When I perform:
Tag.sync_mapping
I get the following error:
Elastictastic::ServerError::MapperParsingException: [Analyzer [name_analyzer] not found for field [tag_value]]
from /home/geeky-sh/.rvm/gems/ruby-1.9.3-p327/bundler/gems/elastictastic-0652e1cf11ff/lib/elastictastic/middleware.rb:75:in `raise_error'
Any reasons on why I am unable to set mappings using my custom analyzers?
Here is my result of query:
Now, I can use analysers - "name_analyzer" for a field in elastictastic document. Here is my model class
When I perform:
I get the following error:
Any reasons on why I am unable to set mappings using my custom analyzers?