-
Couldn't load subscription status.
- Fork 808
Closed
Labels
Description
searchable.rb
FORMAT = "...."
settings :analysis => {
:analyzer => {
:city_name => {
'tokenizer' => 'standard',
'filter' => ['lowercase', 'asciifolding'],
'type' => 'custom'}
}
} do
mapping dynamic: 'false' do
indexes :id, type: 'long', index: :not_analyzed
indexes :name, type: 'string', boost: 1, analyzer: 'snowball'
indexes :city, type: 'string', boost: 10, analyzer: 'city_name'
end
endWhen I run in console
Model.importIn my meta data at http://localhost:9200/_plugin/head always map all fields and does not follow the rules as eg. city_name for field city. So when i run the code below, it works..Why?
Model.__elasticsearch__.create_index! force: true
Model.import
Model.__elasticsearch__.refresh_index!