Hello Lei, The Java client currently doesn't use the Solr API for search; It uses Map/Reduce. Sadly there's no support for those solr parameters. The only way to do it currently would be by adding phases to sort then reduce the entire result set which isn't exactly optimal.
We currently do have plans on improving this situation on both sides. We're adding new features to the protocol buffers API that will support the 'rows' and 'start' parameters which I am hoping to get into the client "soon". There's a bit of work there because it involves ripping out the old MR search stuff and retrofitting the new, which is going to require a bit of interface breaking as well above the old underlying PB client. I may also look at adding the solr-likeinterface to the HTTP side of the client after that. Unfortunately I don't have a good timeline for you. Hopefully in the next month for the PB additions is about the best I can offer at the moment. As for help, we're always thrilled when other people make contributions :) If you were to add in the solr API support to the original underlying HTTP client it'd be awesome. Thanks, Brian Roach On Jul 19, 2012, at 2:41 PM, Lei Gu wrote: > Hi, > We are exploring using Riak as our persistent storage for our next project. > Does Java client support search with paging and sorting, like the web solr > api? > If yes, can you point one with class/method support it? > > Here is an example with page and number of rows per page set, > > curl "http://localhost:8098/solr/books/select?start=0&rows=10000&q=prog*" > > If not, is there a plan to add the support to the Java client? Can we help? > > Thanks. > > -- Lei > > > ________________________________ > The information contained in this electronic mail transmission is intended > only for the use of the individual or entity named in this transmission. If > you are not the intended recipient of this transmission, you are hereby > notified that any disclosure, copying or distribution of the contents of this > transmission is strictly prohibited and that you should delete the contents > of this transmission from your system immediately. Any comments or statements > contained in this transmission do not necessarily reflect the views or > position of GSI Commerce, Inc. or its subsidiaries and/or affiliates. > > _______________________________________________ > riak-users mailing list > riak-users@lists.basho.com > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com