我要索引的文档有一个名为 name 的属性type
。当我使用轮胎存储它时,例如:
Tire.index 'mydocuments' do
delete
create
store :name => name, :type => 'pdf'
refresh
end
然后这个文档是索引_type = pdf
,因此我可以访问它http://localhost:9200/mydocuments/pdf/id
。
但是我怎样才能改变这一点,类型是 (单数)而不是从来自文档源的mydocument
我的实际属性中复制。type