Re: question about solr response qtime

2012-05-10 Thread crive
Yes

On Thu, May 10, 2012 at 4:57 PM, G.Long  wrote:

> Hi :)
>
> In what unit of time is expressed the QTime of a QueryResponse? Is it
> milliseconds?
>
> Gary
>


Re: SolrJ 4, soft commit

2012-05-16 Thread crive
Will have a go at it in a bit, in the meantime I've kind of workaround it
setting autoSoftCommit maxDocs to 1.

On Wed, May 16, 2012 at 3:08 PM, Ahmet Arslan  wrote:

> > You can still access the raw params for the update request
> > though - and then just look at
> http://wiki.apache.org/solr/UpdateXmlMessages#A.22commit.22_and_.22optimize.22
> >
> > Just get the modifiable params from the request and set the
> > soft commit.
>
> Does this code work?
>
>SolrServer server = new HttpSolrServer(url);
>UpdateRequest req = new UpdateRequest();
>req.setParam(UpdateParams.SOFT_COMMIT, "true");
>UpdateResponse updateResponse = req.process(server);
>System.out.println(updateResponse);
>