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?
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!
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).
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
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
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>
Hi again
Isn't that because you have not added the @nodeName to the previewFields?
Or am I missing something?
/Jan
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!
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
Yeah I can do that no problem - are there any fields in particular that might give us a hint?
is working on a reply...