indexing - Solr field depth -
how 1 set solr such have "child" node fields? example, doc, there exists 2 cars, each car has subset of colors.
for example:
<doc> <field name = "make"> toyota </field> <field name = "car"> camri </field> <field name = "color"> silver </field> <field name = "color"> red </field> <field name = "car"> corolla </field> <field name = "color"> blue </field> <field name = "color"> red </field> <doc>
how 1 go getting these relationships indexed?
the general practice denormalize database solr works plain schema. example, can make multi-valued field , put these values it:
- camri/silver
- camri/red
- corolla/blue
- corolla/red
Comments
Post a Comment