It sounds like you are doing it correctly, Stefan. Must be something
syntactical. The schema.xml and solrconfig.xml does not factor into your
problem, only the data-config.

I do the same thing you are trying to do. A watered down version is:

<dataConfig>
  <dataSource type="JdbcDataSource" 
              name="bdb-1" 
              driver="oracle.jdbc.driver.OracleDriver"
              url="jdbc:oracle:thin:@(DESCRIPTION = (LOAD_BALANCE = on)
(FAILOVER = on) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST =
server.domain.com)(PORT = 1528))) (CONNECT_DATA = (SERVICE_NAME =
instance.domain.COM)))"
              user="scott" 
              password="tiger"/>
  <document name="monitors">
    <entity name="bdbmon" dataSource="bdb-1" query="SELECT column from
table">
    </entity> 
     <entity name="bug"  dataSource="bdb-1"  
            query="SELECT another_column from another_table">
      </entity>
  </document>
</dataConfig>

Hope this helps...

-----Original Message-----
From: stefan.ma...@bt.com [mailto:stefan.ma...@bt.com] 
Sent: Monday, February 08, 2010 7:34 AM
To: solr-user@lucene.apache.org; noble.p...@gmail.com
Subject: RE: How to configure multiple data import types

No my views have already taken care of pulling the related data together


I've indexed my first data set and now want to configure a second
(non-related) data set so that a User can issue a query for data set #1
whilst another user might be querying for data set #2

Should I be defining multiple <document ..> or <entity ..> entries
Or what ??

Thanks
Stefan Maric 

Reply via email to