我开始实现ElasticSearch来代替旧的自制搜索引擎。我迁移了代码的主要部分,但我必须呈现由回形针提供的url,并且我的结果中不能有正确的对象。mapping do indexes :description indexes :name, type: :string indexes :content, type: :object do end
我不知道如何通过Tire gem在Elasticsearch中使用同义词/复数。我有没有同义词文件可以下载(英文版)?无论我是否使用Tire,都需要在ES中设置一些东西?class Story < ActiveRecord::Base include Tire::Model::Callbacks
attr_accessible
我在我的网站主页上使用ElasticSearch。在我的验收测试中,当用户登录时,他会被重定向到主页。只有当测试有一些元数据时,我才会进行实际的ES搜索: if example.metadata[:elastic] end
scenario "Results should be ordered by distance", :el