Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-8403

[SolrSearchTool] Probleme with "and" keyword in lowercase

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.1.0
    • Plugin : Search
    • None

      If I type the Solr request

      {!ametys join=adressePrincipale/commune->faitPartieDepartement q="title:Paris"} and allContentTypes:"content-type.Structure"

      The "and" keyword" is highlighted in blue, while it is not correct ("AND" is the correct keyword). Furthermore, the query does not fail and return all contents matching the right operand, is it normal, is it a known Solr bug ?

          [CMS-8403] [SolrSearchTool] Probleme with "and" keyword in lowercase

          I think it is just in solr-ametys.js (line 21)
          isOperatorString is a regexp with flag i (case insensitive). Remove this flag

          Simon Prieul (Inactive) added a comment - I think it is just in solr-ametys.js (line 21) isOperatorString is a regexp with flag i (case insensitive). Remove this flag

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: