Search Questions

General plugins (Local) ::: local_searchquestions
Maintained by Ray Morris
Adds text search to the question bank.
Latest release:
143 sites
30 downloads
20 fans
Current versions available: 1

Adds text search to the question bank. You can find questions and answers which contain specific words and phrases.  Some have used it to find "all of the above" answers by searching for that phrase.


The wildcard % can be used within a search. For example, chocolate%recipe will find:

chocolate cake recipe

chocolate pie recipe

chocolate and peanut butter bar recipe


Screenshots

Screenshot #0
Screenshot #1

Contributors

Ray Morris (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Tomasz Muras
    Tue, 13 Jan 2015, 5:11 AM
    Works fine and the code is good, I'd go for approval.

    From the optional stuff you may want to fix (nothing critical there):
    * pre-check warnings: http://integration.moodle.org/job/Precheck%20remote%20branch/9616/artifact/work/smurf.html
    * in public function display_options_adv():
    ** you don't need global $output;
    ** you don't need require_login();

    Thank you for your contribution!
    Tomek
  • Ray Morris
    Tue, 13 Jan 2015, 5:33 AM
    Thanks, Tomasz. I've removed the two extra global variable declarations in Git. The automated stuff was removed in the new ZIP file I posted earlier today.
  • David Mudrák
    Tue, 13 Jan 2015, 4:11 PM
    Thanks Ray for contributing this, and thanks Carl and Tomasz for the peer-review. I am happy to approve it now. Ray, can you please consider adding some more description of the plugin and the functionality (see the plugin precheck results above). E.g. let the users know where in the UI the functionality is to be found (some may not realize it extends the extends the existing question UI and may try to search for it elsewhere), what is the supported syntax for searching etc. Thanks in advance.
    Said that, you are cleared to land now - welcome to the Plugins directory!
  • Ray Morris
    Tue, 13 Jan 2015, 10:10 PM
    Thanks David. More plugins for finding questions are ont he way, including:
    search by tags
    find unused questions
  • Germán and Temudgin
    Wed, 14 Jan 2015, 5:36 AM
    This is a very useful plugin. Being so small I think it would be worth discussing about the convenience that it be included in Moodle core.
    Does anyone know if there a discussion about it in any Moodle forum ?
  • Ray Morris
    Wed, 14 Jan 2015, 6:37 AM
    @German the discussion thread is https://moodle.org/mod/forum/discuss.php?d=278302
  • Antonia Bonaccorso
    Wed, 16 Aug 2017, 3:09 PM
    Hi Ray.
    You mentioned quite some time ago that this is the first of a series of plugin you are going to release. We are interested in the plugin "search by tags". Do you already have a beta version or even release the plugin? That would be very cool!
    Best regards,
    Antonia
  • Rachel Martin
    Tue, 10 July 2018, 6:11 AM
    @Antonia, this is Ray's old boss, he left us to work in a different area of development and is no longer working with Moodle. We had interest fall off on the searchbytags feature internally. I have a working version for 3.1, but upgrading to Moodle 3.5, there may be conflicts again and I think I might be pulling it from our server. It was more of a sort by tag selection. I can provide the last copy of those files if you like. I am maintaining our search questions plugin and my initial testing has it working on 3.5. If there is interest, I can see if I can't get the version updated here. You may need to message me directly since I am not the maintainer for the plugin on this site.
  • Albert Leatherman
    Tue, 13 Aug 2019, 10:53 PM
    Hi Rachel, would you mind sharing here the version that works with Moodle 3.1? Thanks.
  • Ray Morris
    Wed, 11 Dec 2019, 12:43 PM

    Albert, here is the last version I have. Rachel's team may or may not have updated them since.

    https://github.com/MorrisR2/moodle_local_searchbytags

    You can find my other Moodle and questions/quiz work here:
    https://github.com/MorrisR2?tab=repositories

    Someone else is adding features to this module here:
    https://github.com/eLearnTK/moodle_local_questionfinder

    Rachel, you're not that old - you are boss, though.

  • tumer altas
    Tue, 4 Jan 2022, 9:14 PM
    Hello Ray, hope you are fine. I have installed the plugin but I couldn't make it work when I try to add a question to a quiz. I hit the " add question from question bank", and search for a word; however, it doesn't do the search. Am I missing something?
  • tumer altas
    Tue, 4 Jan 2022, 9:17 PM
    My moodle version is 3.11 btw
  • Davor Budimir
    Fri, 29 July 2022, 9:20 PM
    Unfortunately, it doesn't work correctly with php 8.0, so we can either choose php 7.4 and have this plugin or choose php 8.0 and not have this plugin. I had to go with php 8.0 because of my other sites
  • P H
    Fri, 16 Dec 2022, 6:58 PM
    Hello and thank you for this very useful plugin.
    Are there any plans for a new version compatible with Moodle 4.1 and php 8.0?
    Regards
1 2
Please login to post comments