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 String with an embedded JSON and add() it via an HttpSolrServer object instance. If the JSON matches the Solr server schema.xml or not it would be a server-side problem, not a client-side one. I mean, I want to use a best effort and more flexible way to index data, and using POJOs is not the way to do that: you have to change the Java class, compile it again and relaunch whatever the process that uses that Java class.
Regards, - Luis Cappa 2013/5/13 Jack Krupansky <j...@basetechnology.com> > 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, 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 indexing with SolrJ. > > > 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 and again. > > > -- > - Luis Cappa > -- - Luis Cappa