lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noble Paul നോബിള്‍ नोब्ळ् <>
Subject Re: Issue with delta import (not finding data in a column)
Date Wed, 12 May 2010 14:32:56 GMT
Are u reusing the context object? It may help if u can paste the relevant
part of ur code

On 10 May 2010 19:03, "ahammad" <> wrote:

I have a Solr core that retrieves data from an Oracle DB. The DB table has a
few columns, one of which is a Blob that represents a PDF document. In order
to retrieve the actual content of the PDF file, I wrote a Blob transformer
that converts the Blob into the PDF file, and subsequently reads it using
PDFBox. The blob is contained in a DB column called DOCUMENT, and the data
goes into a Solr field called fileContent, which is required.

This works fine when doing full imports, but it fails for delta imports. I
debugged my transformer, and it appears that when it attempts to fetch the
blob stored in the column, it gets nothing back (i.e. null). Because the
data is essentially null, it cannot retrieve anything, and cannot store
anything into Solr. As a result, the document does not get imported. I am
not sure what the problem is, because this only occurs with delta imports.

Here is my data-config file:

   <dataSource driver="oracle.jdbc.driver.OracleDriver" url="address"
user="user" password="pass"/>
   <document name="table1">
       <entity name="TABLE1" pk="ID" query="select * from TABLE1"
           deltaImportQuery="select * from TABLE1 where ID
                       deltaQuery="select ID from TABLE1 where (LASTMODIFIED
to_date('${dataimporter.last_index_time}', 'yyyy-mm-dd HH24:MI:SS'))"
                               <field column="ID" name="id" />
                               <field column="TITLE" name="title" />
                               <field column="FILENAME" name="filename" />
                               <field column="DOCUMENT" name="fileContent"
                               <field column="LASTMODIFIED"
name="lastModified" />

View this message in context:
Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message