[jira] [Updated] (LUCENE-8755) QuadPrefixTree robustness: can throw exception while indexing a point at high precision

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Updated] (LUCENE-8755) QuadPrefixTree robustness: can throw exception while indexing a point at high precision

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/LUCENE-8755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated LUCENE-8755:
---------------------------------
    Component/s:     (was: core/index)
                 modules/spatial-extras
        Summary: QuadPrefixTree robustness: can throw exception while indexing a point at high precision  (was: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on OS Grid coordinates)

> QuadPrefixTree robustness: can throw exception while indexing a point at high precision
> ---------------------------------------------------------------------------------------
>
>                 Key: LUCENE-8755
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8755
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/spatial-extras
>            Reporter: senthil nathan
>            Priority: Critical
>         Attachments: LUCENE-8755.patch
>
>
> When trying to index a below document with apache solr 7.5.0 i am getting java.lang.IndexOutOfBoundsException, this data is causing the whole full import to be failed. I have also defined my schema for your reference 
>  
> Data:
> [
> { "street_description":"SAMPLE_TEXT", "pao_start_number":6, "x_coordinate":244502.06, "sao_text":"FIRST FLOOR", "logical_status":"1", "street_record_type":1, "id":"AA60L123333-ENG", "street_description_str":"SAMPLE_TEXT", "lpi_logical_status":"1", "administrative_area":"SAMPLE_TEXT & HOVE", "uprn":"8899889", "town_name":"TEST TOWN", "street_description_full":"60 DEMO ", "y_coordinate":639062.07, "postcode_locator":"AB1 1BB", "location":"244502.06 639062.07" }
> ]
>  
> Configuration in managed-schema.xml
>  
> <fieldType name="oslocation" class="solr.SpatialRecursivePrefixTreeFieldType" geo="false" maxDistErr="0.000009" worldBounds="ENVELOPE(0,700000,1300000,0)" distErrPct="0.15"/>
> <field name="_root_" type="string" docValues="false" indexed="true" stored="false"/>
>  <field name="_text_" type="text_en" multiValued="true" indexed="true" stored="false"/>
>  <field name="_version_" type="long" indexed="true" stored="false"/>
>  <field name="administrative_area" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="auth_name" type="string" multiValued="false" indexed="false" stored="true"/>
>  <field name="id" type="string" multiValued="false" indexed="true" required="true" stored="true"/>
>  <field name="locality_name" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="location" type="oslocation" multiValued="false" indexed="true" stored="true"/>
>  <field name="logical_status" type="string" multiValued="false" indexed="false" stored="true"/>
>  <field name="lpi_logical_status" type="string" multiValued="false" indexed="false" stored="true"/>
>  <field name="organisation" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="organisation_name" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_end_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_end_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_start_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_start_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="pao_text" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="postcode_locator" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_end_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_end_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_start_number" type="int" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_start_suffix" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="sao_text" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="street_description" type="text_en" multiValued="false" indexed="true" stored="true"/>
>  <field name="street_description_str" type="text_gp_custom" multiValued="false" indexed="true" stored="true"/>
>  <field name="street_description_full" type="text_gp_custom" multiValued="false" indexed="true" stored="true"/>
>  <field name="street_record_type" type="int" multiValued="false" indexed="false" stored="true"/>
>  <field name="town_name" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="uprn" type="string" multiValued="false" indexed="true" stored="true"/>
>  <field name="x_coordinate" type="double" multiValued="false" indexed="true" stored="true"/>
>  <field name="y_coordinate" type="double" multiValued="false" indexed="true" stored="true"/>



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]