lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Jha <amitjha2...@gmail.com>
Subject rganizationId present in DataConfig does not have a counterpart in Solr Schema.in 5.4.1
Date Fri, 12 Feb 2016 03:50:08 GMT
On Fri, Feb 12, 2016 at 9:18 AM, Amit Jha <amitjha2005@gmail.com> wrote:

> Hi Team,
>
> I am using SOLR 5.4.1 in my application and we are using Data import
> handler for importing the data from RDBMS to solr.
>
>   While declaring the schema i.e
>  <field name="organizationId" type="int" indexed="true" stored="true"
> required="true" multiValued="false" />
>
> in schema.xml, application is encountering the below issue.
>
> * o.a.s.h.d.c.DIHConfiguration The field :organizationId present in
> DataConfig does not have a counterpart in Solr Schema.*
>
>
> DB-Data-config.xml
> My entity is defined like below.
>
> <dataConfig>
>    <!--<propertyWriter dateFormat="yyyy-MM-dd HH:mm:ss"
> type="SimplePropertiesWriter" directory="data"
> filename="dataimport.properties" locale="en_US" />-->
>     <dataSource driver="oracle.jdbc.driver.OracleDriver"
> url="jdbc:oracle:thin:@//*********"
>                   user="************"
>                   password="**********"
>               convertType="true" />
>     <document>
>         <entity name="inventory" pk="INVENTORY_ITEM_ID" query="SELECT
> a.INVENTORY_ITEM_ID,
>   a.ORGANIZATION_ID
> FROM GETS_INTF.<TABLE> a"
> deltaQuery="select a.INVENTORY_ITEM_ID from GETS_INTF.<TABLE> a where
> last_modified > '${dataimporter.last_index_time}'">
> *<field column="INVENTORY_ITEM_ID" name="id" />*
> * <field column="ORGANIZATION_ID" name="organizationId" />*
>         </entity>
>     </document>
> </dataConfig>
>
> Can some body help, why user defined schema is not working .
>
> Thanks,
> Amit Kumar Jha
>

Mime
View raw message