General plugins (Local): Search Questions

local_searchquestions
Maintained by Picture of Ray MorrisRay Morris
Adds text search to the question bank.
129 sites
27 downloads
17 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

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

Comments RSS

Show comments
  • Picture of Ray Morris
    Tue, Dec 23, 2014, 11:02 PM
    Note this is the first of at least three plugins we plan to publish that use the new question bank APIs to extend the ability to find questions and view information about questions. Others include:
    Add "last modified" date column to question bank
    Search by tags
    Show only currently unused questions (for building quizzes or other activities)
  • Picture of Carl LeBlond
    Fri, Jan 2, 2015, 6:08 AM
    Hi Ray,
    Thank you for the plugin submission. Seems like a very useful plugin. installation failed since permissions of php files were incorrect. I did a chmod 644 and the installation proceeded smoothly. Are you familiar with the codechecker plugin? It revealed a few styling issues that should be easy for you to clean up. Operationally it seemed liked it worked well. The Search Answers checkbox doesn't stay checked, but still seemed to search the answers correctly.

    Also a screenshot of its integration on the quesion bank page would be great. I know that Moodle.org has plans for the pics in future.

    Carl
  • Picture of Carl LeBlond
    Sun, Jan 11, 2015, 4:09 AM
    Thanks for updating screenshots and taking care of the whitespaces. You'll have to wait for a plugin approver to take a closer look for final approval.
    Carl
  • Picture of Tomasz Muras
    Tue, Jan 13, 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
  • Picture of Ray Morris
    Tue, Jan 13, 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.
  • Picture of David Mudrák
    Tue, Jan 13, 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!
  • Picture of Ray Morris
    Tue, Jan 13, 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, Jan 14, 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 ?
  • Picture of Ray Morris
    Wed, Jan 14, 2015, 6:37 AM
    @German the discussion thread is https://moodle.org/mod/forum/discuss.php?d=278302
  • Picture of Antonia Bonaccorso
    Wed, Aug 16, 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
  • Picture of Rachel Martin
    Tue, Jul 10, 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.
  • Picture of Albert Leatherman
    Tue, Aug 13, 2019, 10:53 PM
    Hi Rachel, would you mind sharing here the version that works with Moodle 3.1? Thanks.
  • Picture of Ray Morris
    Wed, Dec 11, 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.

Please login to post comments