Try https://issues.apache.org/jira/browse/SOLR-4685

It allows you to return put JSON from a string field.

Also to convert a XML field to JSON you can use a plugin for DIH

https://issues.apache.org/jira/browse/SOLR-4692

On Monday, May 13, 2013, Chris Hostetter wrote:

>
> : I don't want to use POJOs, that's the main problem. I know that you can
> : send AJAX POST HTTP Requests with JSON data to index new documents and I
> : would like to do that with SolrJ, that's all, but I don't find the way to
> : do that, :-/ . What I would like to do is simple retrieve an String with
> an
> : embedded JSON and add() it via an HttpSolrServer object instance. If the
>
> Use ContentStreamUpdateRequest -- provide your pre-generated JSON as the
> ContentStream (you can back it by a String using
> ContentStreamBase.StringStream or whatever you have to work with) then
> process it against your HttpSolrServer object.
>
>
> -Hoss
>


-- 
Bill Bell
billnb...@gmail.com
cell 720-256-8076

Reply via email to