Re: how to get all the docIds in the search result?

2009-07-23 Thread shb
ing to just the ID? > Something along the line of: > > query.setRows(Integer.MAX_VALUE); > query.setFields("id"); > > Might speed the query up a little. > > > On 23 Jul 2009, at 09:11, shb wrote: > > Here id is indeed the uniqueKey of a document. >> I

Re: how to get all the docIds in the search result?

2009-07-23 Thread shb
Here id is indeed the uniqueKey of a document. I want to get all the ids for some other useage. 2009/7/23 Shalin Shekhar Mangar > On Thu, Jul 23, 2009 at 1:09 PM, shb wrote: > > > if I use query.setRows(Integer.MAX_VALUE); > > the query will become very slow, because searc

Re: how to get all the docIds in the search result?

2009-07-23 Thread shb
ows(Integer.MAX_VALUE); > > Cheers > Avlesh > > On Thu, Jul 23, 2009 at 8:15 AM, shb wrote: > > > When I use > > SolrQuery query = new SolrQuery(); > > query.set("q", "issn:0002-9505"); > > query.setRows(10);

how to get all the docIds in the search result?

2009-07-22 Thread shb
When I use SolrQuery query = new SolrQuery(); query.set("q", "issn:0002-9505"); query.setRows(10); QueryResponse response = server.query(query); I only can get the 10 ids in the response. How can i get all the docIds in the search result? Thanks.

Re: how to change the size of fieldValueCache in solr?

2009-07-21 Thread shb
Thanks very much. Is there any difference between fieldValueCache and fieldCache?

how to change the size of fieldValueCache in solr?

2009-07-21 Thread shb
The FieldValueCache plays a important role in sort and facet of solr. But this cache is not managed by solr, is there any way to configure it? thanks!

Re: Aggregating/Grouping Document Search Results on a Field

2009-07-09 Thread shb
you can refer to the facet search of solr, that might help you. 2009/7/10 Bradford Stephens > Greetings, > > We've been experimenting with grouping fields returned from document > search results in Lucene, and we haven't gotten anything very > encouraging. Basically, the more results we return,

Re: how to do the distributed search with sort using solr?

2009-07-08 Thread shb
>java.net.ConnectException: Connection refused > at >org.apache.solr.client.solrj. >impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:391) The "Connection refused" error is caused becaused that the servers have been stopped. I>Are you sure both servers are running properly? You can h

Re: how to do the distributed search with sort using solr?

2009-07-08 Thread shb
Sorry, the error is as follows. I have read the solr wiki carefully and google it, but I haven't founded any related question or solution, any one can help me, thanks! org.apache.solr.client.solrj.SolrServerException: Error executing query at org.apache.solr.client.solrj.request.QueryRequest.

how to do the distributed search with sort using solr?

2009-07-08 Thread shb
In my project, I am trying to do a distributed search sorted by some field using solr. The test code is as follows: SolrQuery query = new SolrQuery(); query.set("q", "id:[1 TO *]"); query.setSortField("id",SolrQuery.ORDER.asc); query.setParam("shards", "localhost:8983/solr, localhost:7574/solr");