lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "senthil nathan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-8755) java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on OS Grid coordinates
Date Mon, 08 Apr 2019 12:55:00 GMT

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

senthil nathan updated LUCENE-8755:
-----------------------------------
    Description: 
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"/>

  was:
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"/>

 

 

 

 

 

 


> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 on OS Grid coordinates
> -----------------------------------------------------------------------------
>
>                 Key: LUCENE-8755
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8755
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>            Reporter: senthil nathan
>            Priority: Critical
>
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message