Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Search
  •  
  • advsearch: search option parameter #

  • 36502
    180
    alias pandro

    tillilab Reply #1, 7 months, 1 week ago

    Reply
    • Link to this post#1
    Hi,
    is there a parameter for Advsearch like it was &advSearch for AjaxSearch?

    I mean the option to search: oneword, allword, exactphrase?

    Thanks,
    Alessandro


  • 5811
    1,677

    coroico Reply #2, 7 months, 1 week ago

    Reply
    • Link to this post#2
    With AdvSearch, You don't need a parameter like &advSearch.

    To understand why, click on the help button near the search form or follow this link and look at the chapter "Query syntax"

    Or play with this demo page : http://www.revo.wangba.fr/index.php?id=120


  • 36502
    180
    alias pandro

    tillilab Reply #3, 7 months, 1 week ago

    Reply
    • Link to this post#3
    Hi, and thanks for your reply,
    I had already seen your demo page, but actually I'm facing a customer quite annoying...he doesn't want so much power
    I could resolve with a "queryhook" so that I transform the query search with AND operator between different words, could it be a solution?



  • 5811
    1,677

    coroico Reply #4, 7 months, 1 week ago

    Reply
    • Link to this post#4
    I could resolve with a "queryhook" so that I transform the query search with AND operator between different words, could it be a solution?
    No, you can't use queryHook to change the searchString.
    The queryHook is used only to modify the where clause of the sql request, by adding new filters. Not by modifying the string searched.


  • 36502
    180
    alias pandro

    tillilab Reply #5, 7 months, 1 week ago

    Reply
    • Link to this post#5
    Thanks,
    I solved modifying class "advsearchutil.class.php":
    the main problem was when the user looked for phrase with single character word,
    ie: "have a nice day"

    in the advsearchutil.class.php I made it change a with " AND "...
    I hope to remember it when I'll update!

    I know I know...it sounds like a dirty workaround...





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
coroico, tillilab

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy