Re: Attempt to query for max id failing with exception

2009-08-07 Thread Reuben Firmin
Yep, thanks - this turned out to be a systems configuration error. Our sysadmin hadn't opened up the http port on the server's internal network interface; I could browse to it from outside (i.e. firefox on my machine), but the apache landing page was being returned when CommonsHttpSolrServer tried

Re: Attempt to query for max id failing with exception

2009-08-07 Thread Yonik Seeley
I just tried this sample code... it worked fine for me on trunk. -Yonik http://www.lucidimagination.com On Thu, Aug 6, 2009 at 8:28 PM, Reuben Firmin wrote: > I'm using SolrJ. When I attempt to set up a query to retrieve the maximum id > in the index, I'm getting an exception. > > My setup code i

Re: Attempt to query for max id failing with exception

2009-08-06 Thread Avlesh Singh
> > params.setQuery(queryString); > The query string is "*:*", right? Your id field is sortable, right? Cheers Avlesh On Fri, Aug 7, 2009 at 5:58 AM, Reuben Firmin wrote: > I'm using SolrJ. When I attempt to set up a query to retrieve the maximum > id > in the index, I'm getting an exception.

Attempt to query for max id failing with exception

2009-08-06 Thread Reuben Firmin
I'm using SolrJ. When I attempt to set up a query to retrieve the maximum id in the index, I'm getting an exception. My setup code is: final SolrQuery params = new SolrQuery(); params.addSortField("id", ORDER.desc); params.setRows(1); params.setQuery(queryString); fi