在多值字段solr4.0中存储键值对

时间:2013-03-25 10:06:12

标签: solr solr4

我正在使用solr4.0。我想在mutlivalued字段中存储键值对属性。

示例:我有一些文档(产品),它们将属性作为一个字段进行索引 属性作为单独的文件来自动建议。现在在一些汽车建议我也必须显示产品的数量。为此,我使用solr join 4.0和faceting on attributes。在这里,我想获得属性的名称和ID。我怎么能做到这一点?

查询如下所示

localhost:8980/solr/searchapp/select?q=%7B!join+from=attr_id+to=prod_attr_id%7Dterms:red&wt=json&indent=true&facet.field=prod_attr_id&facet=true&rows=1000&fl=product_name,product_id

0 个答案:

没有答案
相关问题