2

我需要在我发现 elasticsearcha 和 mongoosastic 的应用程序中实现搜索,因为我正在使用 mongoose 对我的 mongodb 进行 CRUD。

按照此处提供的步骤索引模型中的许多字段,一切正常。但在我付诸行动之前,我想弄清楚两者之间的区别

title: {type: String, es_indexed:true}
description: {type: String, es_type:'string'}

iv'e 还想出使用es_boost:2.0例如给予高比例。

string: {type:String, es_boost:2.0}
4

0 回答 0