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
ing to put some minimal wrapper around the
>> raw JSON.
>>
>> But... if they DON'T follow a simple, flat data model, then YOU are going
>> to have to transform their data into a format that does have a simple, flat
>> data model.
>>
>> -- Jack Krupansky
data into a format that does have a simple, flat
> data model.
>
> -- Jack Krupansky
>
> -Original Message- From: Luis Cappa Banda
> Sent: Monday, May 13, 2013 10:52 AM
> To: solr-user@lucene.apache.org
> Subject: Quick question about indexing with SolrJ.
>
>
> Is
flat data model, then YOU are going to
have to transform their data into a format that does have a simple, flat
data model.
-- Jack Krupansky
-Original Message-
From: Luis Cappa Banda
Sent: Monday, May 13, 2013 10:52 AM
To: solr-user@lucene.apache.org
Subject: Quick question about inde
Is it possible to index plain String JSON documents using SolrJ? I already
know annotating POJOs works fine, but I need a more flexible way to index
data without any intermediate POJO.
That's because when changing, adding or removing new fields I don't want to
change continously that POJO again an