Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-19342

We can not search by search keyword which include multi-byte strings in Globa search.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.6, 2.0
    • Component/s: Global search
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      In multibyte language environment (ex. Japanese), we can not seach by multibyte strings on global search.

      The cause of this problem is only forgetting character encoding;

      Patch is as follows;

      In search/Zend/Search/Lucene.php, function find()

      public function find($query)
      {
      if (is_string($query))

      { // (Shirai144): modify from here // $query = Zend_Search_Lucene_Search_QueryParser::parse($query); $query = Zend_Search_Lucene_Search_QueryParser::parse($query, 'UTF-8'); // (Shirai144): modify to here }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vf Valery Fremaux
              Reporter:
              shirai Tatsuya Shirai
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                21/Oct/09