Re: Tutorial example loading of exampledocs for *.xml fails due to bad request
OK, but this content was provided by the people who created the tutorial. Perhaps there is a change in the recent release as the data files need to be modified to work? The tutorial says it is for Solr 5.3 and I am using 5.5.
: When I attempt the second example, of loading the *.xml files, I receive an
: error back. I tried just one of the XMLs and receive the same error.
Yeah ... there's a poor assumption here in the tutorial. note in
particular this paragraph...
Solr's install includes a handful of Solr XML formatted files with example
data (mostly mocked tech product data). NOTE: This tech product data has a
more domain-specific configuration, including schema and browse UI. The
bin/solr script includes built-in support for this by running bin/solr
start -e techproducts which not only starts Solr but also then indexes
this data too (be sure to bin/solr stop -all before trying it out).
However, the example below assumes Solr was started with bin/solr start -e
cloud to stay consistent with all examples on this page, and thus the
collection used is "gettingstarted", not "techproducts".
If you use "bin/solr start -e techproducts" (or explicitly create a solr
collection using the "sample_techproducts" config set) then those
documents will index just fine -- but the assumption written here in the
tutorial that you can index those tech product documents to the same
gettingstarted collection you've been indexing to earlier in the tutorial
is definitely flawed -- the fieldtype deduction logic that's applied for
the gettingstarted collection (and the specific type deduced from the
earlier docs) won't neccessarily apply to the sample tech product