Hi Amir, One thing you may want to look at is the Apache OODT File Manager here. If you can model your content objects as Apache OODT "product types" you can then use the parent/child relationship model there to achieve what you are after. Then if you use the SolrDumperTool from the Apache OODT file manager, you can then dump your content into Solr to support scenario #1 and #2.
http://oodt.apache.org/components/maven/filemgr/development/developer.html https://cwiki.apache.org/confluence/display/OODT/Using+the+SolrIndexer+to+d ump+a+File+Manager+Catalog Cheers, Chris On 2/3/13 7:14 AM, "zagros" <amir.so...@gmail.com> wrote: >Hi, > >I'm new to Solr and have two questions. > >#1) >I was wondering if I wanted to index different object types. How I go >about >configuring them in schema file. >Here is the hypothetical simple scenario. My site has Users and Posts. I >want to be able to index User objects, and Posts, but make it so that if I >search "foo", then it searches Users with name "foo" and posts that have >"foo" in their text. > >#2) >Same scenario as above, I want to be able to define "Posts" to be child of >"Users". Can't find any docs on how to do this > > >thanks in advance > > > > > >-- >View this message in context: >http://lucene.472066.n3.nabble.com/Beginner-Question-about-Types-and-Paren >t-Child-Definitions-in-Solr-Schema-xml-tp4038209.html >Sent from the Solr - User mailing list archive at Nabble.com.