We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • We're using MODX's native search plugin, Simplesearch, on our site and the results are, well, less than stellar. We're seeing search terms that should be obvious return no values and then the search results returns results that don't have the search term in the original search. Here's how we have it setup on the site (running MODX 2.5.7):

    [[!SimpleSearchForm? &tpl=`sp-search-form` &landing=`318`]


    and here's the value in the tpl:

    <form style="margin-top: 6px;margin-right: 20px;" class="search" action="[[~[[+landing]]]]" method="[[+method]]">
    
         <input type="hidden" name="id" value="[[+landing]]" />
      <input type="hidden" name="asId" value="[[+asId]]" />
    
    <input type="text" name="[[+searchIndex]]" value="[[!+searchValue]]" id="search" placeholder="search...">
    
    </form>


    The site is hosted on the MODXcloud hosting environment. We were using Google CSE on the site but that's being phased out and SimpleSearch is just not working for the client. Doesn't seem like AdvSearch is an option either (we've researched this thoroughly and it doesn't appear the newest version of the Zend framework is compatible with AdvSearch).

    Thanks!
      Precision Web Development ... SmashStack.com
      • 4172
      • 5,888 Posts
      Can't think, why simpleSearch should do that, other than there is a caching-issue.
      How do you call the search-results?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 38783
        • 571 Posts
        You can obtain a compatible (older) version of the Zend framework. There is a discussion about this issue here: https://github.com/Coroico/AdvSearch/issues/78
          If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

          email: [email protected] | website: https://andytough.com
        • Quote from: Bruno17 at Sep 21, 2017, 05:25 AM
          Can't think, why simpleSearch should do that, other than there is a caching-issue.
          How do you call the search-results?

          My apologies for the delayed response...crazy last few weeks.

          Here's how I call the search results:

           [[!SimpleSearch? &highlightTag=`strong` &perPage=`15`  &useAllWords=`1` &depth=`5` &searchStyle=`match` &exclude=`2,271,318,317,298,295,269,254` &includeTVs=`1` &processTVs=`1`  &docFields=`pagetitle,description` &pagingSeparator=` `]]
            Precision Web Development ... SmashStack.com