facet_counts: {
facet_queries: { },
facet_fields: {
buyer: [
"beauty",
4025,
"inc",
3610,
"products",
1749,
"markwins",
1604,
"llc",
913,
"cosmetics"]
}
似乎solr将它标记为单独的标记。我怎样才能获得全部价值?如果我不将文本字段更改为str字段。 例如:
facet_counts: {
facet_queries: { },
facet_fields: {
buyer: [
"beauty inc",
3610,
"products llc",
1749,
"markwins llc",
1604]
}
}
答案 0 :(得分:0)
<field name="buyer" type="text_general" indexed="true" stored="true"/>
<field name="buyer_facet" type="string" indexed="true" stored="false"/>
<copyField source="buyer" dest="buyer_facet"/>
然后你可以在“buyer_facet”上搜索“买家”和方面。 您需要重新索引以填充buyer_facet字段。