Solr DataImport Hander

2014-04-03 Thread sanjay92
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   

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:

  
  





   
   


  





--
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.


How do I add another unrelated query results to solr index

2014-04-03 Thread sanjay92
Hi,
How do I add two different queries into one single index.
e..g.
I have added following
  



  

But when I query, I dont see any data from salgrade table.
I have also tried another document tag but that also did not work as
expected.
Is it possible ?


  
  
  



  





   
   



  
  





--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-do-I-add-another-unrelated-query-results-to-solr-index-tp4128932.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How do I add another unrelated query results to solr index

2014-04-07 Thread sanjay92
I think it was not just rootEntity="true".

We need to add transformer="TemplateTransformer"  and make sure that each
entity has some kind of Unique column across all entities e.g. in this case 



is a made up column and this doc_id values should be unique across all
entities. template clause is like transformation e.g. doc_id values are made
up by prefixing salg_ and values of ${salgrade.GRADE} in the first entity
section while in the second entity section, it is using different prefix and
different variable to make it Unique.

schema.xml have   doc_id
and also add following :
   
   
   
   
   
   
   


   

   




  
  




  

  





   
   



  




--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-do-I-add-another-unrelated-query-results-to-solr-index-tp4128932p4129678.html
Sent from the Solr - User mailing list archive at Nabble.com.