I am using the XSLT Search Module in Umbraco 4.7. I have set the module to search a bodyText RTF field, which it seems to be doign well. However, I have a macro that renders content from XSLT and the search module seems to be ignoring this content.
Should it be searching the macro content? Am I doing something wrong or can I adjust something?
XSLTSearch won't search content of rendered macros - it only searches the values of the fields (properties) that you tell it to (via the searchFields parameter).
So if your macro is accessing specific fields, you could try adding those to the fields that XSLTSearch searches.
Otherwise if you are wanting to search the entire "output" of a page, you may need to look into another solution. There was a package posted recently that should handle this, although I haven't used it yet: Full Text Search
xslt search macro in body text
Hello,
I am using the XSLT Search Module in Umbraco 4.7. I have set the module to search a bodyText RTF field, which it seems to be doign well. However, I have a macro that renders content from XSLT and the search module seems to be ignoring this content.
Should it be searching the macro content? Am I doing something wrong or can I adjust something?
Thanks,
Jim
XSLTSearch won't search content of rendered macros - it only searches the values of the fields (properties) that you tell it to (via the searchFields parameter).
So if your macro is accessing specific fields, you could try adding those to the fields that XSLTSearch searches.
Otherwise if you are wanting to search the entire "output" of a page, you may need to look into another solution. There was a package posted recently that should handle this, although I haven't used it yet: Full Text Search
Hope this helps,
Tom
is working on a reply...