Hi, I'm new to solr so apologies if the solution is already documented. I have installed and populated a solr index using the examples as a template with a version of the data below.
I have XML in the form of <entity> <resource> <guid>123898-2092099098982</guid> <media_format>Blu-Ray</media_format> <updated>2011-05-05T11:25:35+0500</updated> </resource> <price currency="usd">3.99<price> <discounts> <discount type="percentage" rate="30" start="2011-05-03T00:00:00" end="2011-05-10T00:00:00" /> <discount type="decimal" amount="1.99" coupon="1" /> ..... </discounts> <aspect_ratio>16:9</aspect_ratio> <duration>1620</duration> <categories> <category id="drama" /> <category id="horror" /> </categories> <rating> <rate id="D1">contains some scenes which some viewers may find upsetting</rate> </rating> ....... <media_type>Video</media_type> </entity> Can I populate solr directly with this document (like I believe marklogic does )? If yes Can I search on any attribute ( i.e. find all records where /entity/resource/media_format equals "blu-ray" ) If no What is the best practice to import the attributes above into solr ( i.e. patterns for sub dividing / flattening document ). Does solr support attached documents and if so is this advised ( how does it affect performance ). Any help is greatly appreciated. Pointers to documentation that address my issues is even more helpful. Thanks again OJ