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
    AdvSearch 1.0.0 RC1 is ready. I am interested to find 2 ou 3 testers before to release this new add-on. Thanks to PM me if you are interested by.

    Some informations and demos are available on the site here: http://www.revo.wangba.fr/index.php?id=40

    And you can get the documentation from here
      • 18463
      • 121 Posts
      Martijn van Turnhout Reply #2, 15 years, 2 months ago
      Heads-up, guys: this addon is going to be really, really useful for a lot of websites. Those filter options can come in handy for real estate companies, job agencies etc. This shouldn’t be overlooked easily. grin
        • 33976 ☆ A M B ☆
        • 571 Posts
        Hey coroico, you can count me in laugh
          • 9674
          • 170 Posts
          Yep, you can count on me as soon as I solve my problem with variable caching http://modxcms.com/forums/index.php/topic,66942.0.html
          I will implement it on the same site.

          Cheers.

          Philippe
            • 5811
            • 1,717 Posts
            @Romain. I just send you the transport package. Thanks for your feedbacks by email.

            @fildefer57. I will send you the package in few minutes.

            Thanks for your contribution
              • 5811
              • 1,717 Posts
              @Martijn

              Regarding Faceted search demo and Faceted search - 2 demo, the content of the queryHooks Filter1 and Filter2 are the following:

              Filter1:
              <?php
              /**
               * AdvSearch
               *
               * Copyright 2011 by Coroico <[email protected]>
               *
               * Enjoy queryHooks with AdvSearch !
               *
               */
              
              $qhName = 'filter1'; // queryHook for faceted search 1 demo
              $andConditions = array(
              	array(
              		'type' => 'tv',
              		'field' => 'articleCategory',
              		'opervals' => array('REGEXP','tag','ctg','all') 	// field REGEXP $_REQUEST['ctg'] - 'all' value filtered
              	),
              	array(
              		'type' => 'tv',
              		'field' => 'articleTags',
              		'opervals' => array('REGEXP','tag','tag','all') 	// field REGEXP $_REQUEST['tag'] - 'all' value filtered
              	),
              );
              
              $qhDeclaration = array(
              	'andConditions' => $andConditions
              );
              
              $hook->addQueryHook($qhName, $qhDeclaration);
              return true;


              And for Filter2:
              <?php
              /**
               * AdvSearch
               *
               * Copyright 2011 by Coroico <[email protected]>
               *
               * Enjoy queryHooks with AdvSearch !
               *
               */
              
              $qhName = 'filter2'; // queryHook for faceted search 2 demo
              $andConditions = array(
                  array(
                      'type' => 'tv',
                      'field' => 'articleCategory',
                      'opervals' => array('REGEXP','tag','ctg','all')     // field REGEXP $_REQUEST['ctg'] - 'all' value filtered
                  ),
                  array(
                      'type' => 'tv',
                      'field' => 'articleMark',
                      'opervals' => array(
                          array('>=', 'tag', 'minf', 'none'),     // field >= $_REQUEST['minf']
                          array('<=', 'tag', 'msup', 'none')      // AND field <= $_REQUEST['msup']
                      )
                  )
              );
              
              $qhDeclaration = array(
              	'andConditions' => $andConditions
              );
              
              $hook->addQueryHook($qhName, $qhDeclaration);
              return true;


              I let you looking to code source of the form to do the links between tv names and html tag names.

              I still need write the documentation regarding queryHooks
                • 34001
                • 428 Posts
                Hi coroico,
                You can add me on the list.
                I have a project right now where I’ll need a faceted search. So the timing is perfect. smiley
                  Intégrateur web freelance
                  • 25979
                  • 178 Posts
                  Hi coroico, you can count me in too.

                  regards,

                  mike
                    //Why use windows since there is a door?//
                    • 7045
                    • 225 Posts
                    This is gonna be super helpful to a lot of us, like previously stated. I was actually going to ask if anything like this was in existence or development. I would love to help test, and I sent you a PM already.
                      • 5811
                      • 1,717 Posts
                      I was actually going to ask if anything like this was in existence or development.
                      AdvSearch RC1 is now in production for a site of a company of New Zealand.
                      And in the same time under testing mainly by the French community. And as French (like many other languages) has some pretty accentuated characters, I pronostic some issues on that side smiley

                      RC2 is in development, I hope to finalize this release for the end of the week. RC2 mainly brings:
                      - a better declaration of query hook
                      - search in custom package (for main classes and/or for joined classes).
                      A first demo is available here. I will add a demo with a faceted search inside a custom package probably tomorrow.

                      Send me your email, and I will send you for testing the RC2 as soon this release (and the updated documentation)is ready.