We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22673
    • 72 Posts
    Brilliant that works great! Merci beaucoup smiley
      • 5811
      • 1,717 Posts
      Ok. I will try to offer placeholders for the selected options.
        • 37213
        • 25 Posts
        Using the advsearch. Now I got one issue.
        The standard minChar is required 3 character. I want change this to 2.
        Use this [[AdvSearchForm? &asId=`as3` &minChar=`2` &landing=`100` &tpl=`searchForm` &clearDefault=`1`]], but still got this result:
        Search with "ab" is invalid. Minimum number of characters allowed for a search term: 3

        Is it possible to have lesser than 3 character for advSearch?

        Thanks for your help

        Modx: 2.1.3-pl (traditional)
        advsearch: 1.0.0 (rc2)
          • 36604
          • 268 Posts
          Hi,

          I read most of this thread trying to make advsearch to give some results.
          I'm not sure about the need of &ids parameter .
          Does the search not browse all pages by default huh

          Whatever I do I got either a blank result or a no result reply in English.
          using this
          &ids=`[[!GetIds?  &ids=`c0`]]`
          (so strange)

          So .. is this the only way the serach within a revo site ?
          Thank you [ed. note: elz064 last edited this post 14 years, 8 months ago.]
            • 5811
            • 1,717 Posts
            Could you post the complete snippet calls.

            Does the search not browse all pages by default
            Yes. But until the 1.0.0 pl is not published, you need first fix an issue.
            See https://github.com/Coroico/AdvSearch/commit/6cafc52dc9789deabfccdd17bf106d78d7ba2b8f


            is this the only way the serach within a revo site ?
            No, you could also use simpleSearch. [ed. note: coroico last edited this post 14 years, 8 months ago.]
              • 36604
              • 268 Posts
              Hi Coroico,

              Thank you. simple does not do the job with TV. ModX is richly TV oriented so....

              this is one the last try I made:
              [[!-AdvSearchForm? 
              &asId=`1` 
              &ids=`[[!GetIds?  &ids=`c0,0`]]` 
              &landing=`41` 
              &addJQuery=`0`]]

              it returns a blank content. (no more 'no result found message' ).

              After I applied the patch you said, I retried using this call without any &ids. Same punishment.
              blank returns.

              thank you
                • 5811
                • 1,717 Posts
                Could you give us the snippet call of the landing page (#41)

                And don't use &asId=`1` except if you have several advsearch instances on the same page.
                By default you will have
                asId='as0' 
                for advSearchForm and advSearch snippet calls.

                So for the advSearchForm try:
                [[!AdvSearchForm?
                &landing=`41`
                &addJQuery=`0`]]


                And set on the landing page:
                [[!AdvSearch? &addJQuery=`0`]]
                  • 36604
                  • 268 Posts
                  Done.
                  Thank a lot

                  Houla!
                  Ok results are coming up BUT , well how to say:
                  The results text are doubled :
                  a bunch of results right in their expected location into my content area of the template and the same (badly styled of course) AT THE TOP of the document huh

                  10 results found for "
                  <span class="advsea-highlight advsea-highlight-1">menuiseries</span>
                  " - Elapsed time: 1.3548s
                  <p></p>
                  <div class="advsea-paging1">
                  <div class="advsea-results-list">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <div class="advsea-result">
                  <h3>
                  <div>
                  <p class="advsea-extract">
                  </div>
                  </div>
                  </div>
                  <div class="advsea-paging1">

                  this is also followed by some Meta .. and my link href to my css and so on this looks like some div are no more correctly closed or something

                  I see in page rendered code all of this put into the head section TOO !

                  	...... <meta http-equiv="imagetoolbar" content="no" />
                  
                  <!-- icons/rss/css -->
                  <!-- end MetaX output -->
                  <meta name="description" content="<p class="advsea-results">10 results found for "<span class="advsea-highlight advsea-highlight-1">menuiseries</span>" - Elapsed time: 0.2942s</p>
                  
                  <div class="advsea-paging1"><span class="advsea-current"> 1 - 10 / 10 </span></div>
                  
                  <div class="advsea-results-list">
                      <div class="advsea-result">
                      <h3>1. <a href="mentions.html" title="Mentions légales">mentions</a></h3>
                  
                      <div><p class="advsea-extract">...on2.com" target=_blank title="ROTATION II - Gammiste concepteur en profilés métalliques pour <span class="advsea-highlight advsea-highlight-1">menuiseries</span> fines... (nlle fenêtre)">www.rotation2.com</a>. (Doctype transitionnal). Merci d'em...</p></div>
                  </div><div class="advsea-result">
                      <h3>2. <a href="references-menuiseriesfines.html" title="Quelques références avec nos profilés">Références</a></h3>
                      <div></div>
                  </div><div class="advsea-result">
                  
                      <h3>3. <a href="profiles-pec55.html" title="">PEC55</a></h3>
                      <div><p class="advsea-extract">...Sorti en 1993. Première menuiserie d'une aussi grande finesse, reprenant l'aspect des <span class="advsea-highlight advsea-highlight-1">menuiseries</span> acier début du siècle. Le capot extérieur est conçu pour reprendre l'aspect des battues de...</p></div>
                  </div><div class="advsea-result">
                      <h3>4. <a href="gammes-rotation2/" title="Les gammes Rotation II">Gammes</a></h3>
                      <div><p class="advsea-extract">...Rotation II est concepteur de gammes de <span class="advsea-highlight advsea-highlight-1">menuiseries</span> métalliques les plus fines du marché. Nous sommes en recherche permanente pour améliorer le...</p></div>
                  
                  </div><div class="advsea-result">
                      <h3>5. <a href="verrieres-toit-facade/" title="Verrières (Toits ou façades)">Verrières</a></h3>
                      <div><p class="advsea-extract">...éativité respectueuse du patrimoine! Plus de détails sur nos gammes. Retrouvez l'aspect des <span class="advsea-highlight advsea-highlight-1">menuiseries</span> début du siècle !Le grand confort d'une menuiserie moderne à rupture thermique et l'entret...</p></div>
                  </div><div class="advsea-result">
                      <h3>6. <a href="facades-immeubles-menuiseriefine.html" title="Eléments en façades">Facades</a></h3>
                      <div><p class="advsea-extract">...Une créativité respectueuse du patrimoine Retrouvez l’aspect des <span class="advsea-highlight advsea-highlight-1">menuiseries</span> début du siècle !Le grand confort d’une menuiserie moderne à rupture thermique et l’en...</p></div>
                  
                  </div><div class="advsea-result">
                      <h3>7. <a href="particuliers-menuiseries-metalliques-fines/" title="Vérandas et divers">Particuliers</a></h3>
                      <div></div>
                  </div><div class="advsea-result">
                      <h3>8. <a href="typologies-gammes-profiles-rotation2/" title="Produits en situation">Typologies</a></h3>
                      <div><p class="advsea-extract">...Rotation II est concepteur de gammes de <span class="advsea-highlight advsea-highlight-1">menuiseries</span> métalliques les plus fines du marché. Nous sommes en recherche permanente pour améliorer le...</p></div>
                  
                  </div><div class="advsea-result">
                      <h3>9. <a href="http://www.rotation2.com/" title="Bienvenue chez Rotation II">Bienvenue</a></h3>
                      <div><p class="advsea-extract">...ines à rupture de pont thermique. Depuis 1995 Rotation 2 innove en développant des gammes de <span class="advsea-highlight advsea-highlight-1">menuiseries</span> métalliques ultra-fines respectueuses des normes actuelles et particulièrement adaptées à...</p></div>
                  </div><div class="advsea-result">
                      <h3>10. <a href="a-propos.html" title="Qui sommes nous ?">A Propos</a></h3>
                      <div><p class="advsea-extract">...Rotation II est concepteur de gammes de <span class="advsea-highlight advsea-highlight-1">menuiseries</span> métalliques les plus fines du marché. Nous sommes en recherche permanente pour améliorer :...</p></div>
                  
                  </div>
                  </div>
                  
                  <div class="advsea-paging1"><span class="advsea-current"> 1 - 10 / 10 </span></div>">
                  <meta name="google-site-verification" content="fSJrltqxGcpbFSdN.........
                  [ed. note: elz064 last edited this post 14 years, 8 months ago.]
                    • 36624
                    • 535 Posts
                    Hello, very promising snippet but i have some problem with &engine="zend"!

                    if i use a tv (type fileresource) in a document, the output on the template is the ID of the ressource. If i use a snippet (getResourceField), i can output the title of the ressource from my TV.

                    If i search the value of the TV, in input text field, is AdvSearch able to find the ressources which contains the tv ? I tried the zend engine but the indexation script look strange.. is it normal that for 55 documents full of content and tvs, the file is only 18k huh if i open the file i can see some title and content but not the tvs for example.. i use modx 2.1.5pl.

                    have a nice day.
                      CTRL+SHIFT+U - Clear Cache
                      CTRL+SHIFT+H - Hiding Heft Panel
                      CTRL+SHIFT+N - Fast Create Resource
                      CTRL+ALT+P - Preview Recource (in edit resorce window)
                      CTRL+ALT+S - Save
                      • 5811
                      • 1,717 Posts
                      If i search the value of the TV, in input text field, is AdvSearch able to find the ressources which contains the tv ?
                      Yes, you should specify the TV name with withTVs parameter.
                      For instance:
                      [[!AdvSearch?  &withFields=`` &withTVs=`yourTvNames` ]]

                      By doing this you exclude a search inside content, description, pagetitle, ... And only ask a search inside TVs.
                      Except if the content of the TV is a dynamic content, you d'on't need the zend engine. mysql engine is enought.

                      Regarding of the size of the index files, It's not easy to know if your size files are correct or not.
                      Have you get any error messages during the indexation process ?
                      Did you change the list of documents to index inside the script ?