This shows you the differences between the selected revision and the current version of the page.
| adding_facets 2010/07/19 10:12 | adding_facets 2010/08/20 11:54 current | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| We now need to tell Solr what to do with the new index. File /solr/biblio/conf/scheme.xml defines the fields in Solr. In the <fields> section, we add | We now need to tell Solr what to do with the new index. File /solr/biblio/conf/scheme.xml defines the fields in Solr. In the <fields> section, we add | ||
| - | <field name="allgenre" type="string" indexed="true" stored="true" multiValued="true" termVectors="true"/> | + | <field name="allgenre" type="textFacet" indexed="true" stored="true" multiValued="true" termVectors="true"/> |
| After the database has been re-indexed, the allgenre index will exist. The facet can be added to the facets.ini file as described above. | After the database has been re-indexed, the allgenre index will exist. The facet can be added to the facets.ini file as described above. | ||