Hi,
I am writing very simple Dept, Emp Solr DataImport Handler. it is working
but when I query using http://localhost:8983/solr/select?q=*:*
I see results in XML format . See attached file.
deptemp.xml <http://lucene.472066.n3.nabble.com/file/n4128911/deptemp.xml>
Output from inner query does not correctly formatted to show : For each
Dept, There are number of employees ( I want to show emp name and JOb) . I
want to show first ename,Job as 1 row but it is showing all emp name first
and after that another column for Job.
Do I to do any changes in schema.xml for proper display ?
-------------------------------------
data-config.xml looks like this:
<dataConfig>
<dataSource type="JdbcDataSource"
driver="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@mydb:1521:SID"
user="*****"
password="*****" />
<document>
<entity name="mydept" query="select deptno,dname,loc from dept">
<field column="DEPTNO" name="deptno" />
<field column="DNAME" name="dname" />
<field column="LOC" name="loc" />
<entity name="myemp" query="select ename,job from emp where
deptno=${mydept.DEPTNO} " >
<field column="ENAME" name="ename" />
<field column="JOB" name="job" />
</entity>
</entity>
</document>
</dataConfig>
--
View this message in context:
http://lucene.472066.n3.nabble.com/Solr-DataImport-Hander-tp4128911.html
Sent from the Solr - User mailing list archive at Nabble.com.