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
    @modbaby
    How does one turn off the introMessage?
    Look at this post for the answer

    I have added a "some tricks (before the next release)" chapter in the wiki to take into account of your remark.
      • 5811
      • 1,717 Posts
      @traveller
      Search in Russian works only in the blog. But search in Russian does not work in comments.
      Where are storing the comments ? If they are storing in specific tables outside of content documents, it’s normal that ajaxSearch doesn’t find any searchword in your comments.
      Words are searching only in TVs or in content documents. Extracts with the word found are displayed only for content documents. When a word is found in a TV, only the document title linked with the TV is displayed.
        • 30562
        • 99 Posts
        Quote from: coroico at Feb 08, 2008, 05:22 PM

        Where are storing the comments ? If they are storing in specific tables outside of content documents, it’s normal that ajaxSearch doesn’t find any searchword in your comments.
        ...
        Hi coroico!

        I have looked, as storage of comments in snippet Jot is arranged. Snippet News Publisher is used meanwhile for a blog in the distrib MODx 9.6.1.
        Location of comments are: the database table: “xxx_JOT_CONTENT”, the “CONTENT” field.

        It turns out it is necessary to search for the root of a problem in snippet Jot.
        English words after all are searched in comments. MODx it is again sick of discrimination concerning the languages which are distinct from English. sad

        Good luck.

        PS
        One detail. It was absolutely confused, began to forget sequence of my actions.

        In the present version of the my test site I use non-Ajax search (&ajaxSearch=`0`).
        And on page with results of search there is a call of snippet:
        [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &AS_landing=`8`!]

        That’s all.
          • 5811
          • 1,717 Posts
          @Tom in response to replies #443 and #445

          This issue comes from the presence of a "%" character near the word java in in this document:
          form: standard CSS: 100% freedom in the appearance of your templates
          function: Javascript & PHP pieces of functional code: "Snippets" and other resources
          To simply understand what happens go to here and try a first test with
          standard CSS: 100 freedom in the appearance of your templates
          as test1. And then do the same test with
          standard CSS: 100% freedom in the appearance of your templates
          As explained by OpenGeek, this javascript error occurs due to the use of the decodeUriComponent function in the js/ajaxSearch.js file line 162:
            $('current-search-results').setHTML(decodeURIComponent(request));
          But the value of request is correct and well formated.
          To be honest, I don’t understand (1.6 heritage) why it is necessary to decode the request value even though the URI isn’t encoded huh
          So, as a first quick correction, you can simply change :
            $('current-search-results').setHTML(decodeURIComponent(request));
          by
            $('current-search-results').setHTML(request);
          or change the text of your document
          e.g : "standard CSS: total freedom in the appearance of your templates" seems good too grin

          I have done some tests (with utf8 and latin1 documents) without the decodeURIComponent function, and it seems to be good. But I wish to run more tests before publishing this correction in a new version (1.7.0.2)
          Thanks for your post.
            • 30269
            • 119 Posts
            Thanks for the excellent explanation, although it goes over my head;) The 100% I changed by "total" and it works like a charm as predicted: smiley

            form: standard CSS: total freedom in the appearance of your templates
              • 30562
              • 99 Posts
              @coroico

              I have looked more attentively. I was mistaken. And miracles are not present.
              The search terms of article in English casually coincided with a required context in comments to blog article. So, search in blog News Publisher does not work neither for Russian nor for English words.

              I have looked a source code ajaxSearch.php.inc. Updating should be carried out in it, first of all.
                • 30562
                • 99 Posts
                Here is my offer on search strengthening, at idea level.

                This offer concerns languages with the advanced system of suffixes and the terminations of words. For example, Russian. It is required to process search terms (from search inquiry) before search process for this purpose.
                There are special algorithms. See for example http://snowball.tartarus.org/algorithms/russian/stemmer.html . The stem-algorithm is not required to be built in MODx. It is required to make stab-function for a call of preliminary processing which the user will specify independently.
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  An "onBeforeSearch" event then, passing the search term, that allows the user to create a custom pre-processor for the search term.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 30562
                    • 99 Posts
                    Quote from: sottwell at Feb 13, 2008, 01:25 AM

                    An "onBeforeSearch" event then, passing the search term, that allows the user to create a custom pre-processor for the search term.
                    Where can I see about "onBeforeSearch" event and custom preprocessing ?
                    Search in a forum and Google has not brought results. sad


                    Idea #2:
                    It’s necessary of custom postprocessing of search with correct highlighting of the terminations following a basis of the found word (term).
                    How are about highlighting preprocessor in the found results is fulfilled today?
                      • 20289
                      • 958 Posts
                      Quote from: traveller at Feb 13, 2008, 01:56 AM

                      Where can I see about "onBeforeSearch" event and custom preprocessing ?
                      Search in a forum and Google has not brought results. sad
                      It is under each plugin’s configuration tab (in this case; search Highlighting plugin)
                      login to manager > resources > manage resources > plugins
                        [img]http://i10.tinypic.com/52c4eir.gif[/img][/td]
                        [td][Wiki] [Persian support forum]
                        [SVN] [RTL SVN Branch] [bugs] [FishEye+Crucible] [Learn MODx!] | [My Google Code]
                        [font=tahoma][برای دسترسی به راهنمای فارسی به [url=http://www.modxcms.ir]

                      This discussion is closed to further replies. Keep calm and carry on.