You can unmarshall the xml docs using jaxb and use the pojo adding
capabilities of solr to index the doc. You may need to create the classes
from the schema using xjc tool.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Using-EmbeddedSolrServer-with-static-documents
well-formed XML documents of a specific format."
>
> I would like to index all kinds of documents. For a start I'll be happy to
> be able to work with xml and html documents.
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Using-Embed
--
View this message in context:
http://lucene.472066.n3.nabble.com/Using-EmbeddedSolrServer-with-static-documents-tp2767614p2773012.html
Sent from the Solr - User mailing list archive at Nabble.com.
nt doc = new SolrInputDocument("path/myDoc.txt");
> solrServer.add(doc);
> solrServer.commit();
>
> It does not seem possible to do such thing. Am I missing something? Are
> there some best practices with regards to referring to a document on the
> filesystem?
>
l.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Using-EmbeddedSolrServer-with-static-documents-tp2767614p2767614.html
Sent from the Solr - User mailing list archive at Nabble.com.