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

<fieldType ... (postings|docValues)Format="SimpleText"> stopped working in Solr 6.2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      As a result of changes introduced in Lucene 6.2 by LUCENE-7323, SimpleTextCodec's postings and doc values formats can only be used from SimpleTextCodec. That means that Solr's default codecFactory SchemaCodecFactory, which enables per-field specification of postings and doc values formats by extending LuceneXXCodec to pull per-field specification from the schema, can't be used with SimpleText postings and doc values formats.

      What Solr could instead do is provide a non-schema-aware SimpleTextCodecFactory.

      1. SOLR-9596.patch
        9 kB
        Steve Rowe
      2. SOLR-9596.patch
        9 kB
        Steve Rowe
      3. SOLR-9596.patch
        2 kB
        Steve Rowe

        Issue Links

          Activity

          Hide
          steve_rowe Steve Rowe added a comment -

          Patch, contains a dead-simple SimpleTextCodecFactory for Solr.

          Show
          steve_rowe Steve Rowe added a comment - Patch, contains a dead-simple SimpleTextCodecFactory for Solr.
          Hide
          ehatcher Erik Hatcher added a comment -

          +1 - I've used this patch within my SOLR-1485 work to get some introspection to document the payload feature. Let's commit.

          Show
          ehatcher Erik Hatcher added a comment - +1 - I've used this patch within my SOLR-1485 work to get some introspection to document the payload feature. Let's commit.
          Hide
          steve_rowe Steve Rowe added a comment -

          Patch with test and a required IntelliJ config change.

          I'll commit once precommit passes for me.

          Show
          steve_rowe Steve Rowe added a comment - Patch with test and a required IntelliJ config change. I'll commit once precommit passes for me.
          Hide
          steve_rowe Steve Rowe added a comment -

          Slightly modified test: added test of basic retrieval.

          Show
          steve_rowe Steve Rowe added a comment - Slightly modified test: added test of basic retrieval.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit abacb2fe6ff5ad12f5a05fca642984dc9c012323 in lucene-solr's branch refs/heads/branch_6x from Steve Rowe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=abacb2f ]

          SOLR-9596: Add Solr support for SimpleTextCodec, via <codecFactory class=solr.SimpleTextCodecFactory/> in solrconfig.xml (per-field specification in the schema is not possible).

          Show
          jira-bot ASF subversion and git services added a comment - Commit abacb2fe6ff5ad12f5a05fca642984dc9c012323 in lucene-solr's branch refs/heads/branch_6x from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=abacb2f ] SOLR-9596 : Add Solr support for SimpleTextCodec, via <codecFactory class=solr.SimpleTextCodecFactory/> in solrconfig.xml (per-field specification in the schema is not possible).
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e2521b2a8baabdaf43b92192588f51e042d21e97 in lucene-solr's branch refs/heads/master from Steve Rowe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e2521b2 ]

          SOLR-9596: Add Solr support for SimpleTextCodec, via <codecFactory class=solr.SimpleTextCodecFactory/> in solrconfig.xml (per-field specification in the schema is not possible).

          Show
          jira-bot ASF subversion and git services added a comment - Commit e2521b2a8baabdaf43b92192588f51e042d21e97 in lucene-solr's branch refs/heads/master from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e2521b2 ] SOLR-9596 : Add Solr support for SimpleTextCodec, via <codecFactory class=solr.SimpleTextCodecFactory/> in solrconfig.xml (per-field specification in the schema is not possible).
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c7825f2c4531af2f34a7cecc11ba8c9c1c7204a2 in lucene-solr's branch refs/heads/branch_6x from Steve Rowe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c7825f2 ]

          SOLR-9596: Ref guide: document SimpleTextCodecFactory

          Show
          jira-bot ASF subversion and git services added a comment - Commit c7825f2c4531af2f34a7cecc11ba8c9c1c7204a2 in lucene-solr's branch refs/heads/branch_6x from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c7825f2 ] SOLR-9596 : Ref guide: document SimpleTextCodecFactory
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 55e37cdd3deb3d2934690aa10b02a0aaef7780ff in lucene-solr's branch refs/heads/master from Steve Rowe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=55e37cd ]

          SOLR-9596: Ref guide: document SimpleTextCodecFactory

          Show
          jira-bot ASF subversion and git services added a comment - Commit 55e37cdd3deb3d2934690aa10b02a0aaef7780ff in lucene-solr's branch refs/heads/master from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=55e37cd ] SOLR-9596 : Ref guide: document SimpleTextCodecFactory
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 5eab681d8a0ea490948817eaa1faf651de1e0a80 in lucene-solr's branch refs/heads/branch_6_6 from Steve Rowe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5eab681 ]

          SOLR-9596: Ref guide: document SimpleTextCodecFactory

          Show
          jira-bot ASF subversion and git services added a comment - Commit 5eab681d8a0ea490948817eaa1faf651de1e0a80 in lucene-solr's branch refs/heads/branch_6_6 from Steve Rowe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=5eab681 ] SOLR-9596 : Ref guide: document SimpleTextCodecFactory

            People

            • Assignee:
              steve_rowe Steve Rowe
              Reporter:
              steve_rowe Steve Rowe
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development