Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael Brydebøl 12 posts 32 karma points
    Apr 12, 2012 @ 18:17
    Michael Brydebøl
    0

    XSLTsearch - no results

    Hi

    I have an Umbraco v. 4.7.1.1 running with XSLTsearch v. 3.0.4.

    In my template I have inserted this macro with <form>-tags around it:

    <form action="?">
                  <umbraco:Macro
                    source="1221"
                    searchFields="bodyText,@nodeName,metaKeywords,metaDescription,topHeadline,colorVariants,sizes,price,name,description,productNo"
                    previewFields="topHeadline"
                    searchBoxLocation="none"
                    previewType="Beginning"
                    resultsPerPage="10"
                    previewChars="255"
                    showPageRange="1"
                    showOrdinals="1"
                    showScores="0"
                    showStats="0"
                    Alias="XSLTsearch"
                runat="server" />
            </form>

    It only returns "No matches were found for..." when I try to search something.

    Can anyone tell me why that?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Apr 13, 2012 @ 10:53
    Douglas Robar
    0

    What's your content tree look like? Are the content pages all below a common 'homepage'? Is the search page also below that homepage? Or is the search page sitting outside (or alongside, but not under) the homepage? Which of the pages in the site corresponds with the source= parameter in the macro (that is, that has the ID of) 1221?

    Thanks!

    cheers,
    doug. 

  • Michael Brydebøl 12 posts 32 karma points
    Apr 13, 2012 @ 22:42
    Michael Brydebøl
    0

    Hi Douglas

    My content tree look like this:

    As you can see all the content pages are below the common "homepage". As well is the search page.

    Yes, it's the source page with the ID = 1221.

    Thanks in advance.

    Michael

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Apr 14, 2012 @ 13:23
    Douglas Robar
    0

    Thanks!

    That sure looks totally normal.

    When the search returns, does it echo the search term? That is, when is says, "no matches were found for ...", does it say what was being searched for? If not, then the search form isn't sending the term properly.

    If the search term is echoed back properly then what happens if you search for a single character, such as 'o'? that appears all over your site in the @nodeName's so should be easily found.

    If it isn't found, I wonder what would happen if you temporarily changed the macro parameters to all be empty (that will use all the default values). Any difference?

    If nothing works, have there been any changes to the xsltsearch.xslt file, or the /app_data/xsltsearch.cs file? 

    Worst case.. any chance I could share a url to the site? Or (better), allow me to log in and cast an eye over things? Should be very straightforward. You can contact me through my website with a url and/or login credentials at http://www.percipientstudios.com/about/contact.aspx

     

    cheers,
    doug. 

  • Michael Brydebøl 12 posts 32 karma points
    Apr 14, 2012 @ 16:01
    Michael Brydebøl
    0

    Now it works!

    I forgot to add this to the macro:
    macroAlias="XSLTsearch"

    When you add the macro via the "Insert Macro" button in the editor macroAlias wasn't added.

    Then I have to make the source="-1" and it works :)

    Thank you very much Douglas for your help.

Please Sign in or register to post replies

Write your reply to:

Draft