我一直在使用 mongodb 从事电子商务应用程序。现在我计划将我现有的电子商务基础设施与 solr 集成来管理产品目录的显示。我的主要想法是合并以下功能: - 分类导航 - 分面 - 地理定位 - 自动建议
这是我想重新创建的应用程序布局示例:
目前我在 mongodb 中有以下集合:
Products: {
"_id" : ObjectId("568887fc14a9962460fbbcbd"),
"date_created" : "2014-10-01T00:00:00Z",
"date_updated" : "2014-10-01T00:00:00Z",
"name" : "Iphone 6 64gb",
"price" : "100",
"summary" : "Iphone 6 64gb",
"delivery" : "Shipment",
"shipment_location" : "USA",
"shipment_weight" : "1",
"shipment_package_quantity" : "1",
"options" : {
"id" : "price-1234567890",
"value" : "111",
"stock_level" : "1",
"currency" : "usd"
},
"attributes" : {
"id" : "atr_1",
"name" : "memory",
"values" : "64gb"
},
"images" : {
"id" : "price-1234567890",
"caption" : "image",
"file" : [
{
"id" : "price-1234567890-1",
"date_uploaded" : "2014-10-01T00:00:00Z",
"length" : "123",
"md5" : "hasg",
"filename" : "price-1234567890-1",
"content_type" : "PNG",
"metadata" : "price-1324567890-1",
"data" : "price-1234567890-1",
"url" : "/images/folder/mongodb/a.png"
}
]
},
"category_id" : "65",
"category_index" : {
"id" : "111",
"sort" : "price"
},
"stock" : {
"id" : "price-1234567890",
"date_created" : "2014-10-01T00:00:00Z",
"date_updated" : "2014-10-01T00:00:00Z",
"parent_id" : "",
"parent" : "111",
"number" : "111",
"quantity" : "11",
"variant_id" : "1",
"variant" : "11",
"last" : "1",
"prev_id" : "1",
"prev" : "1",
"level" : "1",
"reason" : "1",
"description" : "1",
"order_id" : "11",
"order" : "1"
},
"quantity_min" : "1",
"quantity_inc" : "1",
}
分类收藏:
{
"_id" : 3,
"date_created" : "2016-01-01T00:00:00Z",
"date_updated" : "2016-01-01T00:00:00Z",
"name" : "Computers",
"slug" : "Computers",
"description" : "Computers",
"meta_description" : "Computers",
"meta_keyword" : "Computers",
"navigation" : "true",
"top_id" : 3,
"top" : "true",
"parent_id" : 2,
"parent" : "Default",
"active" : "y",
"productype" : "simple",
"path" : "Computers",
"categoryids" : "2,3",
"children" : "yes",
}
分类:
{
"_id" : ObjectId("56803181bf244c701d000170"),
"category_id" : "65",
"name" : "Names",
"expandable" : false,
"inputAsTree" : true,
"multiSelect" : true,
"mandatory" : false,
"version" : 9,
"createTime" : 1451240000.0000000000000000,
"lastUpdateTime" : 1451280000.0000000000000000,
}
分类术语集合:
{
"_id" : ObjectId("568073e5bf244c701d000179"),
"text" : "Jose",
"version" : 2,
"taxonomyid" : "56803181bf244c701d000170",
"orderValue" : 1600,
"expandable" : false,
"nativeLanguage" : "en",
"i18n" : {
"en" : {
"text" : "Jose",
"locale" : "en"
}
},
}
分类术语是指分类。在第一个中,您可以定义主要名称,并在术语中定义与分类(选项)相关的术语。例如:分类:名称。分类术语:bob-jose-pedro
谁能阐明我必须做些什么来实现与 mongo 中提出的集合模式的集成以在 solr 中进行设计:
- 分类导航:带有引导导航的整个虚拟店面的产品。
- 分面:自动提取产品信息,使客户能够按颜色、尺寸、品牌、当地可用性和价格进行过滤。
如何使用分类导航映射类别。?如何映射分类术语与分面。?solr 是否为构面提供设置配置区域?
或您认为可能更好的任何不同方法。