SolrJ and Json

2009-10-23 Thread SGE0
Hi , I have following problem: Using CommonsHttpSolrServer (javabin format) I do a query with wt=json and get following response (by using qresponse = solr.query(params); and then qresponse.toString(); {responseHeader={status=0,QTime=16,params={indent=on,start=0,q=mmm,qt=dismax,wt=[javabin, ja

Re: SolrJ and Json

2009-10-23 Thread SGE0
vabin and > xml. > > The qresponse.toString() actually is a String reperesentation of a > namedList object . it has nothing to do with JSON > > On Fri, Oct 23, 2009 at 2:11 PM, SGE0 wrote: >> >> Hi , >> >> I have following problem: >> Using Commons

Solrj client API and response in XML format (Solr 1.4)

2009-10-23 Thread SGE0
Hi All, After a day of searching I'm quite confused. I use the solrj client as follows: CommonsHttpSolrServer solr = new CommonsHttpSolrServer("http://127.0.0.1:8080/apache-solr-1.4-dev/test";); solr.setRequestWriter(new BinaryRequestWriter()); ModifiableSolrParams params = new ModifiableS

Solrj Javabin and JSON

2009-10-23 Thread SGE0
Hi, did anyone write a Javabin to JSON convertor and is willing to share this ? In our servlet we use a CommonsHttpSolrServer instance to execute a query. The problem is that is returns Javabin format and we need to send the result back to the browser using JSON format. And no, the browser is

Re: Solrj Javabin and JSON

2009-10-24 Thread SGE0
es. You just need means to convert the java object to json. > > > > On Sat, Oct 24, 2009 at 12:10 PM, SGE0 wrote: >> >> Hi, >> >> did anyone write a Javabin to JSON convertor and is willing to share this >> ? >> >> In our servlet we use a Commo

Re: Solrj client API and response in XML format (Solr 1.4)

2009-10-24 Thread SGE0
to your client. > --Noble > > > > On Fri, Oct 23, 2009 at 9:40 PM, SGE0 wrote: >> >> Hi All, >> >> After a day of searching I'm quite confused. >> >> I use the solrj client as follows: >> >> CommonsHttpSolrServer solr = new >>

Solr: How to create a core from the command line ?

2009-10-27 Thread SGE0
Hi, currently on dev. I use following command (in a browser) to create a new core (we use Solr in a multi-core mode): http:\\localhost:8080\solr-rel-1-00-7064\admin\cores?action=CREATE&name=test&instanceDir=c:\data\solr\cores\test&config=c:\data\solr\cores\test\conf\solrconfig.xml&schema=c:\data