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

Do not index _version_ field in example schemas because the field has DocValues enabled already

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3, master (7.0)
    • Component/s: SolrCloud
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      SOLR-8740 enabled doc values by default for most non-text field types. As a result, version field is now both indexed and has doc values.

      I propose to make version field doc values only by default and remove the indexed=true set in all the example schema files.

      1. SOLR-9449.patch
        3 kB
        Shalin Shekhar Mangar

        Activity

        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        Patch to change schema files for all the three examples.

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - Patch to change schema files for all the three examples.
        Hide
        yseeley@gmail.com Yonik Seeley added a comment -

        +1, the way we use version, it normally doesn't make sense for it to be indexed.

        Show
        yseeley@gmail.com Yonik Seeley added a comment - +1, the way we use version , it normally doesn't make sense for it to be indexed.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 738d52700a4387d201509aec8bbf82d983fa7ed5 in lucene-solr's branch refs/heads/master from Shalin Shekhar Mangar
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=738d527 ]

        SOLR-9449: Example schemas do not index version field anymore because the field has DocValues enabled already

        Show
        jira-bot ASF subversion and git services added a comment - Commit 738d52700a4387d201509aec8bbf82d983fa7ed5 in lucene-solr's branch refs/heads/master from Shalin Shekhar Mangar [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=738d527 ] SOLR-9449 : Example schemas do not index version field anymore because the field has DocValues enabled already
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 213c184a587721feac6684e50aace57c21e02bbd in lucene-solr's branch refs/heads/branch_6x from Shalin Shekhar Mangar
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=213c184 ]

        SOLR-9449: Example schemas do not index version field anymore because the field has DocValues enabled already
        (cherry picked from commit 738d527)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 213c184a587721feac6684e50aace57c21e02bbd in lucene-solr's branch refs/heads/branch_6x from Shalin Shekhar Mangar [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=213c184 ] SOLR-9449 : Example schemas do not index version field anymore because the field has DocValues enabled already (cherry picked from commit 738d527)
        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        Thanks Yonik.

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - Thanks Yonik.
        Hide
        shalinmangar Shalin Shekhar Mangar added a comment -

        Closing after 6.3.0 release.

        Show
        shalinmangar Shalin Shekhar Mangar added a comment - Closing after 6.3.0 release.

          People

          • Assignee:
            shalinmangar Shalin Shekhar Mangar
            Reporter:
            shalinmangar Shalin Shekhar Mangar
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development