Solr结果分组时分页问题
我使用 Solr 3.3 和 Solritas UI 。我已应用默认结果分组。 当我使用某些关键字进行搜索时,我没有得到跨多个页面的结果。即使我提供空查询和搜索,我也没有得到跨多个页面的结果。我认为这个问题与分页有关,我想我需要更改速度脚本。
请指导我...
编辑:
在browser.vm下,这是与分页相关的代码,当结果分组时,我们没有指向被调用的下一页宏的链接。
有人可以为我模糊的想法提供一些清晰的图片吗?
现在,无论我搜索什么,我都会在几秒钟内找到1组。
#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
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 picture 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的小组有多少个“NumFound”?您确定要分组的字段没有唯一值或者为空,并且您将所有结果都放在一组中吗?
编辑:你是否只用一个组得到类似的东西(我的意思是你的 groupValue 可能是唯一的??)?
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 ??) ?