O'Reilly logo
  • Michael L Hart thinks this is interesting:

Copy the whole XML output from the initial tag <?xml version="1.0" ?> to the last tag </schema>, including both tags.

This XML is the schema to index data into Solr. Paste the new schema into the blog/conf/schema.xml file inside the example directory of your Solr installation. The schema.xml file is included in the code that comes along with this chapter, so you can also copy it directly from this file.


Cover of Django By Example


After running: python manage.py build_solr_schema
And coping the output into (or directing the output to)
“...\server\solr\<app name>\conf\schema.xml”
You will need to comment 2 sections of “depreciated” “fieldtype” variables
<!-- these fieldTypes have been depreciated
<fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true&q...