Issue Details (XML | Word | Printable)

Key: MDL-18481
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Valery Fremaux
Reporter: Jerome Decuq
Votes: 2
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Problem with the count and display of results in global search when the user doesn't have access to all the resources and activities

Created: 09/Mar/09 02:08 AM   Updated: 01/Jul/09 04:53 PM
Return to search
Component/s: Global search
Affects Version/s: 1.9.4
Fix Version/s: None

File Attachments: 1. Zip Archive globalsearchtest.zip (638 kB)


Participants: Jeffrey Silverman, Jerome Decuq and Valery Fremaux
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
I think that an example is probably the best to explain what's wrong (I have attached screen captures):
adminpage1, adminpage2, etc... show pages 1, 2, etc.. of the results given by the search engine when the site admin looks for the string "histoire".
It works perfectly, each page saying that there are 46 results, the results are displayed like this: 10 on each of the four first pages and 6 on the last one)

Now, if the user is a student (who doesn't have access to most courses), things go really wrong:

studentpage1, 2 and 3 show the pages of results for the same query ("histoire") when I used a student account. The first page tells me that there are 37 results, but displays only one!
Then, if I click on page 2, I'm then told that there are 29 results (where did the other 8 go?), but only two appear on the page.
Finally, if I want to have a look at page 3, the number of results announced is now 19 (?!), but the page displays NONE AT ALL!

So finally the student gets told that there are 37 or 29 or 19 results to his query (depending on the page he's on), but altogether is shown only 3.

I think that 3 is very probably the right number of results this student is allowed to see, but then they should all be on one page and the number of results announced on that page should be 3!





 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Jerome Decuq made changes - 09/Mar/09 02:31 AM
Field Original Value New Value
Description I think that an example is probably the best to explain what's wrong:
adminpage1, adminpage2, etc... show pages 1, 2, etc.. of the results given by the search engine when the site admin looks for the string "histoire".
It works perfectly, each page saying that there are 46 results, the results are displayed like this: 10 on each of the four first pages and 6 on the last one)

Now, if the user is a student (who doesn't have access to most courses), things go really wrong:

studentpage1, 2 and 3 show the pages of results for the same query ("histoire") when I used a student account. The first page tells me that there are 37 results, but displays only one!
Then, if I click on page 2, I'm then told that there are 29 results (where did the other 8 go?), but only two appear on the page.
Finally, if I want to have a look at page 3, the number of results announced is now 19 (?!), but the page displays NONE AT ALL!

So finally the student gets told that there are 37 or 29 or 19 results to his query (depending on the page he's on), but altogether is shown only 3.

I think that 3 is very probably the right number of results this student is allowed to see, but then they should all be on one page and the number of results announced on that page should be 3!



I think that an example is probably the best to explain what's wrong (I have attached screen captures):
adminpage1, adminpage2, etc... show pages 1, 2, etc.. of the results given by the search engine when the site admin looks for the string "histoire".
It works perfectly, each page saying that there are 46 results, the results are displayed like this: 10 on each of the four first pages and 6 on the last one)

Now, if the user is a student (who doesn't have access to most courses), things go really wrong:

studentpage1, 2 and 3 show the pages of results for the same query ("histoire") when I used a student account. The first page tells me that there are 37 results, but displays only one!
Then, if I click on page 2, I'm then told that there are 29 results (where did the other 8 go?), but only two appear on the page.
Finally, if I want to have a look at page 3, the number of results announced is now 19 (?!), but the page displays NONE AT ALL!

So finally the student gets told that there are 37 or 29 or 19 results to his query (depending on the page he's on), but altogether is shown only 3.

I think that 3 is very probably the right number of results this student is allowed to see, but then they should all be on one page and the number of results announced on that page should be 3!



Valery Fremaux added a comment - 09/Mar/09 03:18 AM
mmm, that was actually intended to be solved, but obviously it's not.

The fact is that the elimination process of undesired entries does not match easily with the page counting of results.

I'll check that, as I worked some monthes ago on the problem to check if this not a code version effect... or something more to do...

cheers.


Jeffrey Silverman added a comment - 30/Jun/09 10:59 PM
Howdy. Has any progress or workaround been made on this issue?

Valery Fremaux added a comment - 01/Jul/09 04:53 PM
Not yet Jeffrey, its a tricky internal deal against search results processing performance... in discussion with some fellows as Penny... and other.