Re: Determining which field caused a document to not be imported

2014-10-03 Thread Shawn Heisey
On 10/3/2014 8:13 AM, Tom Evans wrote: > Caused by: java.lang.ClassCastException: java.lang.Integer cannot be > cast to java.lang.Long > at java.lang.Long.compareTo(Long.java:50) > at java.util.TreeMap.getEntry(TreeMap.java:346) > at java.util.TreeMap.get(TreeMap.java:273) > at > org.apache.solr.h

Re: Determining which field caused a document to not be imported

2014-10-03 Thread Shawn Heisey
On 10/3/2014 8:24 AM, Tom Evans wrote: > On Fri, Oct 3, 2014 at 3:13 PM, Tom Evans wrote: >> I tried converting the selected data to SIGNED INTEGER, eg >> "CONVERT(country_id, SIGNED INTEGER) AS country_id", but this did not >> have the desired effect. > > However, changing them to be cast to CHA

Re: Determining which field caused a document to not be imported

2014-10-03 Thread Tom Evans
On Fri, Oct 3, 2014 at 3:24 PM, Tom Evans wrote: > On Fri, Oct 3, 2014 at 3:13 PM, Tom Evans wrote: >> I tried converting the selected data to SIGNED INTEGER, eg >> "CONVERT(country_id, SIGNED INTEGER) AS country_id", but this did not >> have the desired effect. > > However, changing them to be c

Re: Determining which field caused a document to not be imported

2014-10-03 Thread Tom Evans
On Fri, Oct 3, 2014 at 3:13 PM, Tom Evans wrote: > I tried converting the selected data to SIGNED INTEGER, eg > "CONVERT(country_id, SIGNED INTEGER) AS country_id", but this did not > have the desired effect. However, changing them to be cast to CHAR changed the error message - "java.lang.Integer

Re: Determining which field caused a document to not be imported

2014-10-03 Thread Tom Evans
On Fri, Oct 3, 2014 at 2:24 PM, Shawn Heisey wrote: > Can you give us the entire stacktrace, with complete details from any > "caused by" sections? Also, is this 4.8.0 or 4.8.1? > Thanks Shawn, this is SOLR 4.8.1 and here is the full traceback from the log: 95191 [Thread-21] INFO org.apache.sol

Re: Determining which field caused a document to not be imported

2014-10-03 Thread Shawn Heisey
On 10/3/2014 5:41 AM, Tom Evans wrote: > I recently rewrote our SOLR 4.8 dataimport to read from a set of > denormalised DB tables, in an attempt to increase full indexing speed. > When I tried it out however, indexing broke telling me that > "java.lang.Long cannot be cast to java.lang.Integer" (fu

Determining which field caused a document to not be imported

2014-10-03 Thread Tom Evans
Hi all I recently rewrote our SOLR 4.8 dataimport to read from a set of denormalised DB tables, in an attempt to increase full indexing speed. When I tried it out however, indexing broke telling me that "java.lang.Long cannot be cast to java.lang.Integer" (full stack below, with the document elide