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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -