Solr
  1. Solr
  2. SOLR-3149

Update obsolete schema.xml in example-DIH

    Details

      Description

      The version of example/example-DIH/solr/db/conf/schema.xml is 1.1 (too old) where example/solr/conf/schema.xml is 1.4. I believe that it is important to keep all schema.xml up to date for newbies.

      The example/example-DIH/solr/db/conf/schema.xml will be referred as primary hints for newbies because most of them may want to try import some data from their preexisting DB or something first, referring [1]. Even DataImportHandler tutorial itself can be done without problem, obsolete schema.xml may confusing for them.

      Typical difference of new and old schema.xml is existence of explanation of *TrieField. Because old one's default types are solr.IntField or solr.DateField and no mention of this. Consequently, when they try range queries or boosting query based on old schema.xml, they may face unintended slow response or error.

      [1] http://wiki.apache.org/solr/DataImportHandler#Full_Import_Example

        Activity

        Hide
        James Dyer added a comment -

        Yusuke,

        Thanks for pointing this out. Would you mind applying this patch and trying out all of the examples to be sure they still work? (I was having some trouble getting them all to run in my enviornment).

        I've both updated the schemas and pared them down quite a bit to (mostly) only contain needed features. There is also a new note to look for the main example config for more options.

        If this seems good and all the examples still run ok I'll commit.

        Show
        James Dyer added a comment - Yusuke, Thanks for pointing this out. Would you mind applying this patch and trying out all of the examples to be sure they still work? (I was having some trouble getting them all to run in my enviornment). I've both updated the schemas and pared them down quite a bit to (mostly) only contain needed features. There is also a new note to look for the main example config for more options. If this seems good and all the examples still run ok I'll commit.
        Hide
        Alexandre Rafalovitch added a comment -

        At least in Solr 5, all the schemas are now at version 1.5

        Safe to close.

        Show
        Alexandre Rafalovitch added a comment - At least in Solr 5, all the schemas are now at version 1.5 Safe to close.

          People

          • Assignee:
            Unassigned
            Reporter:
            Yusuke Yanbe
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 3h
              3h
              Remaining:
              Remaining Estimate - 3h
              3h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development