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

Add PointFields as pField in example/default schemas

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      Followup task of SOLR-8396

      1. SOLR-9990.patch
        24 kB
        Tomás Fernández Löbbe

        Issue Links

          Activity

          Hide
          tomasflobbe Tomás Fernández Löbbe added a comment -

          This patch adds the following fields:

          +    <fieldType name="pint" class="solr.IntPointField" docValues="true"/>
          +    <fieldType name="pfloat" class="solr.FloatPointField" docValues="true"/>
          +    <fieldType name="plong" class="solr.LongPointField" docValues="true"/>
          +    <fieldType name="pdouble" class="solr.DoublePointField" docValues="true"/>
          +    
          +    <fieldType name="pints" class="solr.IntPointField" docValues="true" multiValued="true"/>
          +    <fieldType name="pfloats" class="solr.FloatPointField" docValues="true" multiValued="true"/>
          +    <fieldType name="plongs" class="solr.LongPointField" docValues="true" multiValued="true"/>
          +    <fieldType name="pdoubles" class="solr.DoublePointField" docValues="true" multiValued="true"/>
          

          and new dynamic fields:

          +    <dynamicField name="*_pi" type="pint"    indexed="true"  stored="true"/>
          +    <dynamicField name="*_pis" type="pints"    indexed="true"  stored="true"/>
          +    <dynamicField name="*_pl" type="plong"   indexed="true"  stored="true"/>
          +    <dynamicField name="*_pls" type="plongs"   indexed="true"  stored="true"/>
          +    <dynamicField name="*_pf" type="pfloat"  indexed="true"  stored="true"/>
          +    <dynamicField name="*_pfs" type="pfloats"  indexed="true"  stored="true"/>
          +    <dynamicField name="*_pd" type="pdouble" indexed="true"  stored="true"/>
          +    <dynamicField name="*_pds" type="pdoubles" indexed="true"  stored="true"/>
          +    <dynamicField name="*_pdt" type="pdate"  indexed="true"  stored="true"/>
          +    <dynamicField name="*_pdts" type="pdates"  indexed="true"  stored="true"/>
          

          to the "basic", "schemaless" and "techproducts" configsets. Doesn't change existing fields (int/long/float/date/double).

          Show
          tomasflobbe Tomás Fernández Löbbe added a comment - This patch adds the following fields: + <fieldType name= "pint" class= "solr.IntPointField" docValues= "true" /> + <fieldType name= "pfloat" class= "solr.FloatPointField" docValues= "true" /> + <fieldType name= "plong" class= "solr.LongPointField" docValues= "true" /> + <fieldType name= "pdouble" class= "solr.DoublePointField" docValues= "true" /> + + <fieldType name= "pints" class= "solr.IntPointField" docValues= "true" multiValued= "true" /> + <fieldType name= "pfloats" class= "solr.FloatPointField" docValues= "true" multiValued= "true" /> + <fieldType name= "plongs" class= "solr.LongPointField" docValues= "true" multiValued= "true" /> + <fieldType name= "pdoubles" class= "solr.DoublePointField" docValues= "true" multiValued= "true" /> and new dynamic fields: + <dynamicField name= "*_pi" type= "pint" indexed= "true" stored= "true" /> + <dynamicField name= "*_pis" type= "pints" indexed= "true" stored= "true" /> + <dynamicField name= "*_pl" type= "plong" indexed= "true" stored= "true" /> + <dynamicField name= "*_pls" type= "plongs" indexed= "true" stored= "true" /> + <dynamicField name= "*_pf" type= "pfloat" indexed= "true" stored= "true" /> + <dynamicField name= "*_pfs" type= "pfloats" indexed= "true" stored= "true" /> + <dynamicField name= "*_pd" type= "pdouble" indexed= "true" stored= "true" /> + <dynamicField name= "*_pds" type= "pdoubles" indexed= "true" stored= "true" /> + <dynamicField name= "*_pdt" type= "pdate" indexed= "true" stored= "true" /> + <dynamicField name= "*_pdts" type= "pdates" indexed= "true" stored= "true" /> to the "basic", "schemaless" and "techproducts" configsets. Doesn't change existing fields (int/long/float/date/double).
          Hide
          dsmiley David Smiley added a comment -

          +1

          Show
          dsmiley David Smiley added a comment - +1
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 7a625bbb25c119014e94a952c06d0f789bf04c3c in lucene-solr's branch refs/heads/master from Tomas Fernandez Lobbe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=7a625bb ]

          SOLR-9990: Add PointFields in example/default schemas

          Show
          jira-bot ASF subversion and git services added a comment - Commit 7a625bbb25c119014e94a952c06d0f789bf04c3c in lucene-solr's branch refs/heads/master from Tomas Fernandez Lobbe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=7a625bb ] SOLR-9990 : Add PointFields in example/default schemas
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e5cc007d4a4dd7c64fed4bed1b7c3f825e3278da in lucene-solr's branch refs/heads/branch_6x from Tomas Fernandez Lobbe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e5cc007 ]

          SOLR-9990: Add PointFields in example/default schemas

          Show
          jira-bot ASF subversion and git services added a comment - Commit e5cc007d4a4dd7c64fed4bed1b7c3f825e3278da in lucene-solr's branch refs/heads/branch_6x from Tomas Fernandez Lobbe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e5cc007 ] SOLR-9990 : Add PointFields in example/default schemas
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 14397949006723d907d4ee681ff2802410aa19ab in lucene-solr's branch refs/heads/master from Tomas Fernandez Lobbe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=1439794 ]

          SOLR-9990: Avoid copyField in SolrExampleTests.testUpdateField

          Show
          jira-bot ASF subversion and git services added a comment - Commit 14397949006723d907d4ee681ff2802410aa19ab in lucene-solr's branch refs/heads/master from Tomas Fernandez Lobbe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=1439794 ] SOLR-9990 : Avoid copyField in SolrExampleTests.testUpdateField
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 667d024fbd7e0471daaf359a42dbc7e36b714a93 in lucene-solr's branch refs/heads/branch_6x from Tomas Fernandez Lobbe
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=667d024 ]

          SOLR-9990: Avoid copyField in SolrExampleTests.testUpdateField

          Show
          jira-bot ASF subversion and git services added a comment - Commit 667d024fbd7e0471daaf359a42dbc7e36b714a93 in lucene-solr's branch refs/heads/branch_6x from Tomas Fernandez Lobbe [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=667d024 ] SOLR-9990 : Avoid copyField in SolrExampleTests.testUpdateField
          Hide
          varunthacker Varun Thacker added a comment -

          We should add DatePointField in the schemas as well. It's probably too late for 6.5 so unless there is another RC we can put this as part of a separate jira?

          Show
          varunthacker Varun Thacker added a comment - We should add DatePointField in the schemas as well. It's probably too late for 6.5 so unless there is another RC we can put this as part of a separate jira?
          Hide
          tomasflobbe Tomás Fernández Löbbe added a comment -

          I did include DatePointField in the schemas, I skipped them from the above snippet but look at the commit diff

          Show
          tomasflobbe Tomás Fernández Löbbe added a comment - I did include DatePointField in the schemas, I skipped them from the above snippet but look at the commit diff
          Hide
          varunthacker Varun Thacker added a comment -

          Thanks for the clarification. Should have looked at the new managed-schema more closely before commenting.

          Show
          varunthacker Varun Thacker added a comment - Thanks for the clarification. Should have looked at the new managed-schema more closely before commenting.

            People

            • Assignee:
              tomasflobbe Tomás Fernández Löbbe
              Reporter:
              tomasflobbe Tomás Fernández Löbbe
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development