: I want to partition my index based on category information. Also, while : indexing I want to store particular category data to corresponding index : partition. In the same way I need to search for category information on : corresponding partition.. I found some information on wiki link : http://wiki.apache.org/solr/IndexPartitioning. But it couldn't help much
I've updated that document to reflect it's status as an "whiteboard" that hasn't been updated in a while, and that some of the ideas expressed there can achieved using a combination of distributed search and multicore. deciding which "core" to update when a new doc comes in (ie: based on category in your example) or which core to search against when a query comes in is something your application would need do -- the distributed searching functionality doesn't provide a feature like that. how it would work would be somewhat dependent on your use case (if you want every category to have it's own 'partition' it's trivial; if you want to hash on the category name it's a little more code but straightforward; if you have complex rules about how certain categories shoudl be grouped together in the same partition -- then you need to implement those special rules in your client code. -Hoss