Bug 1153039 - No pagination on search results
Summary: No pagination on search results
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Copr
Classification: Community
Component: frontend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Valentin Gologuzov
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-15 13:14 UTC by Miroslav Suchý
Modified: 2015-12-01 06:04 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-31 09:40:19 UTC
Embargoed:


Attachments (Terms of Use)

Description Miroslav Suchý 2014-10-15 13:14:14 UTC
Description of problem:
No pagination on search results

Steps to Reproduce:
1. search for rhscl (which should return more then 10 results)

Actual results:
Just 10 results are shown and no pagination.

Expected results:
Pagination in case of more then 10 results.

Comment 1 Valentin Gologuzov 2014-10-22 15:03:52 UTC
The problem is not in pagination, but in the whooshee embedded search engine. For some reason it returns at most 10 results, which by accident exact size of a page for paginator.

I'll try to obtain more results whooshee.

This search page is tricky, since when "/" presents simple db lookup is used, otherwise we query whooshee.

Comment 2 Valentin Gologuzov 2014-10-22 15:05:15 UTC
Forget to add proof: 
here we ask for "rhscl/" 

https://copr.fedoraproject.org/coprs/fulltext/?fulltext=rhscl%2F
and obtain 5 pages with results

Comment 3 Valentin Gologuzov 2014-10-30 18:56:55 UTC
Pinpointed problem: flask-whooshee invoked whoosh search without `limit` parameter, so that default value=10 was used to cut off top results.

Created pull request with fix for upstream https://github.com/bkabrda/flask-whooshee/pull/7


Note You need to log in before you can comment on or make changes to this bug.