Solr does not enforce anything about documents conforming to the schema except: 1> a field specified in a doc must be present in the schema 2> any field in the schema with ' required="true" ' must be present in the doc.
Additionally there is no penalty for NOT putting all the fields defined in the schema into a particular document. What this means: Just create your schema with all the fields you'll need for both types of documents, probably along with a "type" field to distinguish the two. Now just index the separate document types in the same index. Best Erick On Wed, Apr 18, 2012 at 9:28 AM, Gora Mohanty <g...@mimirtech.com> wrote: > On 18 April 2012 10:05, abhijit bashetti <bashettiabhi...@rediffmail.com> > wrote: >> >> Hi , >> Is it possible to have 2 document structures in solr? > [...] > > Do not think so, but why do you need it? Use two separate > indices, either in a multi-core setup, or in separate Solr > instances. > > Regards, > Gora