I'm not 100% sure what you mean by "custom types", but if you're talking about objects then there's no reason they can't both be in your schema. Any given document does not need to have all the fields in it, so you could flatten them both into one schema if you wanted.

You could also use the multicore feature and have a core for Object As and a core for Object Bs and then you'd just query both of them and then combine to get your results.

Thanks for your time!

Matthew Runo
Software Engineer, Zappos.com
mr...@zappos.com - 702-943-7833

On Mar 6, 2009, at 5:43 AM, Praveen_Kumar_J wrote:


Hi

How do I configure different custom types or schemas in Solr?


Assume I have some custom types type1 and type1 (some composite classes).

Can I configure these 2 types in a single schema file?


I need these 2 types to be online for creating and searching data.

Please provide me some sample configuration.



Regards,
Praveen
--
View this message in context: 
http://www.nabble.com/How-can-I-configure-different-types-in-Solr--tp22372731p22372731.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to