Re: Nested objects in Solr

2015-07-24 Thread Alexandre Rafalovitch
Actually, Solr has been supporting Nested Objects for a little while:
https://cwiki.apache.org/confluence/display/solr/Uploading+Data+with+Index+Handlers#UploadingDatawithIndexHandlers-NestedChildDocuments

The schema represents a union of all possible fields though, so yes,
some care needs to be taken with names and mappings.

Regards,
   Alex.

Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 24 July 2015 at 09:52, Bill Au bill.w...@gmail.com wrote:
 What exactly do you mean by nested objects in Solr.  It would help if you
 give an example.  The Solr schema is flat as far as I know.

 Bill

 On Fri, Jul 24, 2015 at 9:24 AM, Rajesh rajesh.panneersel...@aspiresys.com
 wrote:

 You can use nested entities like below.

 document
 entity name=OuterEntity pk=id
 query=SELECT * FROM User
  field column=id name=id /
 field column=name name=name /

 entity name=InnerEntity child=true
 query=select * from subject 
/entity
 /entity
 /document




 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Nested-objects-in-Solr-tp4213212p4219039.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Nested objects in Solr

2015-07-24 Thread Bill Au
What exactly do you mean by nested objects in Solr.  It would help if you
give an example.  The Solr schema is flat as far as I know.

Bill

On Fri, Jul 24, 2015 at 9:24 AM, Rajesh rajesh.panneersel...@aspiresys.com
wrote:

 You can use nested entities like below.

 document
 entity name=OuterEntity pk=id
 query=SELECT * FROM User
  field column=id name=id /
 field column=name name=name /

 entity name=InnerEntity child=true
 query=select * from subject 
/entity
 /entity
 /document




 --
 View this message in context:
 http://lucene.472066.n3.nabble.com/Nested-objects-in-Solr-tp4213212p4219039.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Re: Nested objects in Solr

2015-07-24 Thread Rajesh
You can use nested entities like below.

document
entity name=OuterEntity pk=id
query=SELECT * FROM User 
 field column=id name=id /  
field column=name name=name /
   
entity name=InnerEntity child=true
query=select * from subject 
   /entity
/entity
/document




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Nested-objects-in-Solr-tp4213212p4219039.html
Sent from the Solr - User mailing list archive at Nabble.com.


Nested objects in Solr

2015-06-22 Thread Amadeo Asco
Dear Sir/Madam,

I am starting with Solr and I cannot index nested objects in Solr. I have not 
been able to find a satisfactory answer online. Please could you let me know 
where a full documentation of how to index nested objects in Solr can be found? 
Do I need to change the schema? How?

I look forward to hearing form you soon.

Thank you in advance,
Amadeo