We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23849
    • 223 Posts
    Hi All,

    In making the switch from Evo to Revo, and therefore AjaxSearch to AdvSearch, I've noticed that AdvSearch is missing a parameter I used to always use with the Evo counterpart:

    &advSearch

    (confusing, I know)

    I used to use this frequently with AjaxSearch to limit results to "exactphrase", so only results would show if the exact phrase searched was found (rather than just searching for a string of characters, whether they appear within other words etc. as AdvSearch does by default).

    The old parameter options were:

    exactphrase : provides the documents which contain the exact phrase
    allwords : provides the documents which contain all the words
    nowords : provides the documents which do not contain the words
    oneword : provides the document which contain at least one word

    I found these extremely helpful and I'm surprised to see they're no longer included with AdvSearch. Does anyone know if there's a new way to achieve similar results to the "exactphrase" option from AjaxSearch, with AdvSearch?

    Let me know!
      Nick Hoag
      Creative Partner
      The FutureForward

      http://thefutureforward.com
      • 36926
      • 701 Posts
      Quote from: presson83 at Aug 08, 2012, 02:45 PM
      Hi All,

      In making the switch from Evo to Revo, and therefore AjaxSearch to AdvSearch, I've noticed that AdvSearch is missing a parameter I used to always use with the Evo counterpart:

      Did you ever find a solution for this?
        • 39177
        • 22 Posts
        Bump!
        • There's a tantalizing Snippet here: http://timspencerweb.co.uk/results but it's for Evo only.

          One problem I've run into repeatedly is this kind of lack of functionality. Best left to google if possible, but generally, we need to optionally be able to search TVs (not just display them), and there needs to be some sort of logical sorting based on relevance. Tokenizing the search terms so that searches for "fishing guides" returns documents containing "fishing" or "guides" or (preferably) BOTH.

          The AdvSearch seems the best option at the moment (http://rtfm.modx.com/display/ADDON/AdvSearch.AdvSearch) because it has the option to define which fields are searched (including which TVs)... but it seems to fall short on that last requirement of limiting by (or sorting on) relevance of a result containing all the search terms... or am I misreading that?
            • 39177
            • 22 Posts
            You can use &fieldPotency to assign values to manipulate the weighting of results.

            For instance:
            [[!AdvSearch? &ids=`[[GetIds? &ids=`c0`]]` &withFields=`pagetitle, introtext, content` &withTVs=`tv.address, tv.career-history, tv.experiance, tv.expertise, tv.quote, tv.service, tv.car, tv.train, tv.tube, tv.surname` &tpl=`article-item` &perPage=`8` &includeTVs=`author,category` &fieldPotency=`pagetitle:10, introtext:5, content:5, tv.address:2, tv.career-history:2, tv.experiance:2, tv.expertise:2, tv.quote: 2, tv.service:2, tv.surname:10` &minChars=`2`]]


            The next issue is searching for "Richard Isham" will give you a load of results for "Richard" then for "Isham" so you may still not get great results! Allowing Phrase control is a must surely!

            And the creators own docs are far more detailed than the main rtfm version: http://www.revo.wangba.fr/advsearch-documentation.html
              • 39177
              • 22 Posts
              Just found this thread:
              http://forums.modx.com/thread/70963/advsearch-search-option-parameter

              Still not quite a solution. I am beginning to think Simple search:http://rtfm.modx.com/display/ADDON/SimpleSearch is the way to go. [ed. note: tim@marcom last edited this post 10 years, 9 months ago.]
                • 39177
                • 22 Posts
                Nope turns out Simple search does not support TV searches so that a no go!