I'm pretty sure there's nothing to automate that task, but there are some tools to help with indexing XML. Lux (http://luxdb.org) is one; it can index all the element text and attribute values, effectively creating an index for each tag name -- these are not specifically Solr/Lucene fields, but tagged tokens within a single field. You can also create fields for XPath expressions that you specify, and then query these using XPath and XQuery. There are also other XML-oriented tools built on Lucene, like eXist. Compared to eXist, Lux is unique in that it is completely integrated with Solr and works side by side with it.

I believe there is a more conventional approach in a set of tools called DIH that includes XPath indexing capabilities but I'm not very familiar with that.

But I don't think any of these is schema (or DTD)-driven.

-Mike

On 5/6/2014 6:33 PM, paulparsons wrote:
I'm new to Solr, so forgive me if this is a silly question. Although I can
find some related information (in this list and elsewhere), I can't seem to
find a clear answer to my specific question:

If I have a DTD or XSD that describes the structure of a set of XML
documents that I have, is there some way to convert that into the schema.xml
that Solr requires? Or do I need to construct the schema from scratch
manually?

Thanks.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Use-XSD-or-DTD-to-make-Solr-schema-tp4135031.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to