Итак, я пытался заставить это работать несколько часов, кажется, ничего не работает.
В моей модели определено mappings
:
settings do
mappings dynamic: false do
indexes :title, type: 'text'
indexes :description, type: 'text'
indexes :user, type: 'text' do
indexes :name, type: 'text'
end
end
end
Но когда я это сделаю:
Podcast.__elasticsearch__.delete_index! force: true
Podcast.__elasticsearch__.create_index! force: true
Podcast.__elasticsearch__.import force: true
и визит: http://localhost:9200/podcasts/_search?pretty=true&q=*:*&size=1000
Я вижу все данные модели, вылитые в индексы (мне нужны только заголовок, описание и имя пользователя).
В чем здесь проблема?