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

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.9.4
  • Fix Version/s: None
  • Component/s: Global search
  • Affected Branches:
    MOODLE_19_STABLE

Description

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!

Activity

Hide
Valery Fremaux added a comment -

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.

Show
Valery Fremaux added a comment - 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.
Hide
Jeffrey Silverman added a comment -

Howdy. Has any progress or workaround been made on this issue?

Show
Jeffrey Silverman added a comment - Howdy. Has any progress or workaround been made on this issue?
Hide
Valery Fremaux added a comment -

Not yet Jeffrey, its a tricky internal deal against search results processing performance... in discussion with some fellows as Penny... and other.

Show
Valery Fremaux added a comment - Not yet Jeffrey, its a tricky internal deal against search results processing performance... in discussion with some fellows as Penny... and other.
Hide
Amir Elion added a comment -

Global search would be very helpful, and this issue makes it not fit for use.
We are using a site on an internal sever and can't use Google search.
I know it is "Experimental" but still - is there a solution - or some other options for a global search?

Show
Amir Elion added a comment - Global search would be very helpful, and this issue makes it not fit for use. We are using a site on an internal sever and can't use Google search. I know it is "Experimental" but still - is there a solution - or some other options for a global search?

People

Vote (6)
Watch (6)

Dates

  • Created:
    Updated: