Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19379

Non-stemming fieldtype settings are not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Affects Version/s: 4.7.0-dev
    • Component/s: Legacy > Extensions
    • Labels:
      None
    • Environment:

      Operating System: Red Hat 6.2
      PHP Version: 5.3.3
      Database and version: MySQL 5.1.61
      Browser (and version): Firefox 11
      Extension: eZFind 2.7.0-rc1

      Description

      Non-stemming fieldtype configurations are not working.

      settings/override/ezfind.ini.append.php
      adding this settings

      [SolrFieldMapSettings]
      DatatypeMap[ezstring]=textgen
      DatatypeMap[eztext]=textgen
      Default=textgen
      

      Does not enable non-stemming search.

      Steps to reproduce

      Configure eZ Publish for Multilingual using eZFind with Multicore.

      Settings:

      • extension/ezfind/settings/ezfind.ini
        MultiCore=enabled
        
      • settings/override/solr.ini.append.php
        [SolrBase]
        Shards[eng-GB]=http://ezp.silva.cleverti.qa.ezpublish.no:8983/solr/eng-GB
        Shards[fre-FR]=http://ezp.silva.cleverti.qa.ezpublish.no:8983/solr/fre-FR
        Shards[nor-NO]=http://ezp.silva.cleverti.qa.ezpublish.no:8983/solr/nor-NO
        SearchServerURI=http://ezp.silva.cleverti.qa.ezpublish.no:8983/solr
        
      • settings/override/ezfind.ini.append.php
        [LanguageSearch]
        SearchMainLanguageOnly=disabled
        MultiCore=enabled
        LanguagesCoresMap[]
        LanguagesCoresMap[eng-GB]=eng-GB
        LanguagesCoresMap[fre-FR]=fre-FR
        LanguagesCoresMap[nor-NO]=nor-NO
        

      Now follow this steps to test non-stemming fieldtype:

      Setup - Solr needs to be configured to use non-stemming fieldtype

      edit the file "settings/override/ezfind.ini.append.php" and add the following settings:
      [SolrFieldMapSettings]
      DatatypeMap[ezstring]=textgen
      DatatypeMap[eztext]=textgen
      Default=textgen

      Setup - Create News folder

      Log in as admin in plain admin
      Select "Folder" in class drop down
      Click "Create here" button
      Enter formdata:
      Name : News
      Click "Send for publishing" button

      Create article : Article 1 Notering av aksjer

      Click "News" link
      Select "Norwegian (bokmal)" in language drop down
      Click "Create here" button
      Enter formdata:
      Title : Article 1 Notering av aksjer
      Intro : Notering av aksjer er bra

      Create article : Article 2 Noteringa på oslo bors gikk bra

      Select "Norwegian (bokmal)" in language drop down
      Click "Create here" button
      Enter formdata:
      Title : Article 2 Noteringa på oslo bors gikk bra
      Intro : Noteringa er viktig for bedriften

      Create article : Article 3 We played a game

      Click "Create here" button (object should be created in english)
      Enter formdata:
      Title : Article 3 We played a game
      Intro : games are fun

      Validate norwegian stemming

      Click "Selenium tests" in top menu
      Click "Switch SiteAccess" in left menu
      Click "plain_site_nor" link
      Log in as admin
      Enter "notering" in search box in top header
      Click "Search" button
      Validate that you get the following matches in your search:
      Article 1 Notering av aksjer
      Article 2 Noteringa på oslo bors gikk bra

      The result for a non-stemming eZFind configuration should return only 1 match:
      Article 1 Notering av aksjer

        Attachments

          Activity

            People

            Assignee:
            unknown unknown
            Reporter:
            unknown unknown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: