lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krzysztof Szalast (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-2050) Column name in JDBC oracle data source is case sensitivity
Date Mon, 16 Aug 2010 17:52:16 GMT
Column name in JDBC oracle data source is case sensitivity
----------------------------------------------------------

                 Key: SOLR-2050
                 URL: https://issues.apache.org/jira/browse/SOLR-2050
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 1.4.1
         Environment: Windows XP 32bit,
java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing),
runned on embeded jetty
            Reporter: Krzysztof Szalast
            Priority: Minor


I have table in Oracle database:
table (
id INTEGER,
message CLOB
)

Data source xml file (data-config.xml):
dataConfig/document:

<entity name="esdk_msg" transformer="ClobTransformer" ...
<field column="ID" name="id" />
<field column="MSG" name="msg" clob="true"/>

works fine, but (MSG vs. msg as column name):

<entity name="esdk_msg" transformer="ClobTransformer" ...
<field column="ID" name="id" />
<field column="msg" name="msg" clob="true"/>

ends with error:

org.apache.solr.common.SolrException: Document [106249] missing required field: msg
        at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:305)
        at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:60)
        at org.apache.solr.handler.dataimport.SolrWriter.upload(SolrWriter.java:75)
        at org.apache.solr.handler.dataimport.DataImportHandler$1.upload(DataImportHandler.java:292)
        at org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:392)
        at org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:242)
        at org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:180)
        at org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:331)
        at org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:389)
        at org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:370)
2010-08-16 19:39:33 org.apache.solr.handler.dataimport.DocBuilder finish

On other database (Informix) both versions of data-config.xml works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message