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 P
: 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 wit
You can send JSON to Solr as update documents:
http://wiki.apache.org/solr/UpdateJSON. Not sure if SolrJ supports it,
but it is just an HTTP post, so you may not even need SolrJ.
But the issue is that your own JSON probably does not match JSON
expected by Solr. So, you need to map it somehow, righ
Hello, Jack.
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 Strin
Do your POJOs follow a simple flat data model that is 100% compatible with
Solr?
If so, maybe you can simply ingest them by setting the Content-type to
"application/json" and maybe having to put some minimal wrapper around the
raw JSON.
But... if they DON'T follow a simple, flat data model,