Reputation: 336
facet_counts: {
facet_queries: { },
facet_fields: {
buyer: [
"beauty",
4025,
"inc",
3610,
"products",
1749,
"markwins",
1604,
"llc",
913,
"cosmetics"]
}
it seems that solr tokenize it into separate tokens. How can I get the whole value? If I don't change text field to str field. eg:
facet_counts: {
facet_queries: { },
facet_fields: {
buyer: [
"beauty inc",
3610,
"products llc",
1749,
"markwins llc",
1604]
}
}
Upvotes: 1
Views: 2126
Reputation: 1114
<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"/>
Then you can search on "buyer" and facet on "buyer_facet" . You need to re-index to fill the buyer_facet field.
Upvotes: 3