Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8943

Solr tutorial can give errors when indexing techproduct data depending on what user has already indexed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 7.0
    • None
    • None

    Description

      http://lucene.apache.org/solr/quickstart.html currently says...

      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".

      But the assumption at the end of this paragraph – that the sample techproduct documents can be added to the existing gettingstarted collection – is fundementally flawed based on how the early sections of the tutorial are written.

      With a completley clean, unused, empty gettingstarted demo collection, bin/post -c gettingstarted example/exampledocs/*.xml does work (on master anyway) but if you have been following along with teh tutorial you don't have a completley empty gettingstarted collection – you will already have at a minimum the files in "docs", but also the user has been enocuraged to index arbitrary files from their computer...

      Indexing a directory of "rich" files
      ...
      bin/post -c gettingstarted docs/
      ...
      To index your own data, re-run the directory indexing command pointed to your own directory of documents. For example, on a Mac instead of docs/ try ~/Documents/ or ~/Desktop/ ...

      ...once the user has done that, it is not safe to assume that the techproduct sample documents can definitely be imported cleanly

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: