开发者

Solr pagination problem when grouping results

开发者 https://www.devze.com 2023-03-31 01:27 出处:网络
I use Solr 3.3 and Solritas UI . I have applied result grouping by default. When I search with some keyword I don\'t get the results across multiple pages.Even I provide empty query and search I dont

I use Solr 3.3 and Solritas UI . I have applied result grouping by default. When I search with some keyword I don't get the results across multiple pages.Even I provide empty query and search I dont get results spanned across multiple pages. I think this problem is related to pagination and I guess I need to change the velocity scripts.

Please guide me on this...

Edit :

Under browse.vm this is the code that is related to pagination and when the results are grouped we dont have link to next page macro being called.

Can some one give some clear pictur开发者_如何转开发e for my vague idea.

Right now what ever I search I just get 1 group(s) found in some ms.



  #if($response.response.get('grouped'))
  $response.response.get('grouped').size() group(s) found in ${response.responseHeader.QTime} ms 
  #else$page.results_found results found in ${response.responseHeader.QTime} ms
  Page $page.current_page_number of $page.page_count#end



  #if($response.response.get('grouped'))
  #else
  #link_to_previous_page("previous")
  $page.results_found results found.
  Page $page.current_page_number of $page.page_count
  #link_to_next_page("next")
  #end
  


How many "NumFound" do you have for your group ? Are you sure the field you are grouping on does not have a unique value or is empty, and you get all your results in one group ?

EDIT: Do you get something like this with only one group (what I am saying is maybe your groupValue is unique ??) ?

Solr pagination problem when grouping results

0

精彩评论

暂无评论...
验证码 换一张
取 消