Copied to clipboard

Flag this post as spam?

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


  • manwood 87 posts 109 karma points
    Mar 02, 2011 @ 23:45
    manwood
    0

    XSLTSearch not returning results for @nodeName

    I am using version 2.8 of XSLTSearch and it's working fine when pulling out results with matching terms in the bodyText data element, but not returning anything for terms in the @nodeName attribute. Anyone seen this before?

     

    thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 03, 2011 @ 00:17
    Jan Skovgaard
    0

    Hi manwood

    Are you sure you have setup the fields correctly in the macro parameters?

    Could you perhaps post what the inserted macro parameters look like?

    /Jan

  • manwood 87 posts 109 karma points
    Mar 03, 2011 @ 00:26
    manwood
    0

    Sure, I'm using the defaults, this is the macro defintion:

     

                  <umbraco:Macro ID="Macro1" runat="server" Alias="XSLTsearch"
                 macroAlias="XSLTsearch"
                 source="-1"
                 searchFields="@nodeName,metaKeywords,metaDescription,bodyText"
                 previewFields="bodyText,metaDescription"
                 previewType="beginning"
                 searchBoxLocation="top"
                 resultsPerPage="10"
                 previewChars="200"
                 showPageRange="0"
                 showOrdinals="0"
                 showScores="0"
                 showStats="1">
             </umbraco:Macro>

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 03, 2011 @ 00:56
    Jan Skovgaard
    0

    Hi again

    Isn't that because you have not added the @nodeName to the previewFields?

    Or am I missing something?

    /Jan

  • manwood 87 posts 109 karma points
    Mar 03, 2011 @ 21:34
    manwood
    0

    Yeah, the preview fields just determine the text that's included in the search results. And actually @nodeName is shown in the results anyway, whether you choose it or not!

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 03, 2011 @ 21:46
    Dirk De Grave
    0

    time for some debugging me thinks, as you're syntax IS correct... try writing out some of the variables that get created by xslt search (not sure if you're a dev'er).

     

    Let us know how it goes..

    Cheers,

    /Dirk

  • manwood 87 posts 109 karma points
    Mar 04, 2011 @ 01:05
    manwood
    0

    Yeah I can do that no problem - are there any fields in particular that might give us a hint?

Please Sign in or register to post replies

Write your reply to:

Draft