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

eZ Find issue when searching for a string with (:) or (+)

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • None
    • 4.4.0
    • Misc
    • None
    • eZ Publish 4.4
      ezfind 2.3

    Description

      Hi,
      we have a problem about the search with ezFind and the facets.
      We have facets on the name of the objects.
      when a characters plus is in the name of the object and we click on it, it returns nothing because, through the url, the characters is not transform in %2b and in the final request sent to solr, the is replaced by a space...

      exemple:

      name of the object : 23 nouvelles agglomérations passent en Tarif ZD2 le + compétitif
      
      url sent to solr on facet's click: 
      search?SearchText=&filter[]=subattr_name___rubrique_details_s:23 nouvelles agglomérations passent en Tarif ZD2 le + compétitif
      &activeFacets[rubrique_details/name/rubrique_details:Noms de sous-rubrique]=23 nouvelles agglomérations passent en Tarif ZD2 le + compétitif
      &activeFacets[class:Types de contenu]=Sous-rubrique
      
      final request in solr : 
      'Filter' => 
          array
            'subattr_name___rubrique_details_s' => string '23 nouvelles agglomérations passent en Tarif ZD2 le   compétitif (01/07/2010)' (length=79)
      

      The is transforme in a space.

      Another problem character is : (
      in this case, if there is a ( in the name of the object, the final query sent to solr is cut after this (

      exemple:

      name of the object: "Les Types de réseau : Small ou Performance"
      
      url : &filter[]=subattr_name___rubrique_details_s:Les Types de réseau : Small ou Performance
      
      final query sent to solr : 
      'Filter' => 
          array
            'subattr_name___rubrique_details_s' => string 'Les Types de réseau ' (length=21)
      

      So, it returns nothing...

      Steps to reproduce

      add a facet on the name of object.
      Add an object with a character ( or and then, click on the name of the object in a facet and let's see the result...

      Attachments

        Activity

          People

            jv@ez.no jv@ez.no
            rc@ez.no rc@ez.no
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: