We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5811
    • 1,717 Posts
    This is an auto-generated topic for AjaxSearch 1.9.1-Finale by coroico.

    Brief Description:

    Ajax and non-Ajax search that supports results highlighting
    See:
    - ajaxSearch_version_191.txt : release note with updates and improvements since 1.8.5
    - ajaxSearch_readme.txt : gobal presentation of AjaxSearch
    - cheatSheet : a quick overview of AjaxSearch parameters.
    - /documentation/migrationFrom185To190.txt : how to migrate from 1.8.5 to 1.9.0
    - Bugs & features tracker : http://svn.modxcms.com/jira/browse/AJAXSEARCH
    - Demo site : http://www.modx2.wangba.fr


      • 8883
      • 59 Posts
      Hi,
      thanks for sharing the Snippet.

      I used 1.8.4 before and I noted that the search results of 1.9.1 differs from that 1.8.4 returns.

      I tried to search for "Matthaus" instead of "Matthäus" (as it’s in the content table saved).
      AS1.8.4 don’t make the difference between the Umlaut "ä" and the "a". In 1.9.1 there are no results return when typing "Matthaus".

      So I thought in remember of other forum posts a problem with charset, connection and utf8 related "stuff" is the reason, but I guess it has nothing to do with that this time.
      (By the way the charset of the tables in the DB are set to utf8_general_ci; TinyMCE Encoding is set to raw,config.inc is configuered properly,...)

      Well, in the same MODx-installation AS1.8.4 and AS1.9.1 behave different, described above.
      So question is, what "changed" since 1.8.4 and how can I configure it as desired (find "ä" with searchterms "a", "á",...)

      Thank you
      bye
        • 5811
        • 1,717 Posts
        I tried to search for "Matthaus" instead of "Matthäus" (as it’s in the content table saved).
        AS1.8.4 don’t make the difference between the Umlaut "ä" and the "a".
        MySQL return a result as "Matthäus" has been found. But AjaxSearch can’t find the text for the extract. This is the reason why you don’t have any extract.

        AjaxSearch 1.9.1 fix this issue, when an extract is required and when the text (Matthäus) is not found, then AS doesn’t display a result. Even if Mysql has found a result.
          • 8883
          • 59 Posts
          Ok, thanks for explanation.

          And how can I configure AS 1.9.1 to show the result? In fact, AjaxSearch shall to "ignore" the secial chars. I want the result "Matthäus". No matter if Matthaus or Mattháus is typed in the form.

            • 28528
            • 31 Posts
            Using non-ajax. Is it possible to exclude image filenames from the results page?

            If for example I search for ’chicken’ I see chicken.jpg in the results

            Thanks for any help

            Steve
              • 364
              • 32 Posts
              I cant seem to get the search to only do the wanted documents. I have 2 main containers that are used to create ad’s and i dont want them to show up in the search. filtering by ID is not reasonable as there are over 1000 id’ within these.
              here is my code, using non ajax search
              [!AjaxSearch? &ajaxSearch=`0` &showResults=`0` &landingPage=`8` &showIntro=`0` &hideMenu=`0`  &documents=`1,53,50,49,52,51,6` !]
              


              Even with the hide menu =0 items not in the menu are showing up. I’m not sure whats going on here.

              Or is there another option for searching on my site?

              Thanks,



                • 5811
                • 1,717 Posts
                As you use a landing page, could you post the ajaxSearch snippet call of the page #8.

                To filter the results you need to add hideMenu inside the AS snippet call of the landing page.
                  • 364
                  • 32 Posts
                  my landing page had
                  [!AjaxSearch? &showInputForm=`0` &ajaxSearch=`0`!]
                  changed it to
                  [!AjaxSearch? &showInputForm=`0` &ajaxSearch=`0`   &parents=`1,53,50,49,52,51,6` !]
                  now it seems to filter, right.

                  I took out the hide menu, as the products dont get shown in the menu, just the catagories. My main concern was not having the CL ad pages to show up.

                  Thanks for the help, i didn’t even think about that i had to change the code on the landing page doh.