Copied to clipboard

Flag this post as spam?

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


  • Mario 8 posts 58 karma points
    May 13, 2015 @ 16:39
    Mario
    0

    Search in nodename / @Name

    I have a umbraco version 7.2.4, the search works fine least one thing. Whe i try to search enter nodename, no results found, but when i try to search text in bodytext search works fine.

    ¿How I can search by @Name?

    Another question:

    Is it possible search in two root content node?

    Thanks!

     

     

     

     

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 13, 2015 @ 21:29
    Dennis Aaen
    0

    Hi Mario,

    I think I answers one of your questions. You need to specify, which fields it should look at when you're doing your search and, which it should use to display the search results.

    In the code blow you can see that I see in fields header, header1, header2 and so on, the last field I search in is nodeName, and this is the name of the page

    <div class="container_12 main">
        @Model.Umbraco.RenderMacro("ezSearch", new { rootContentNodeId = "", rootMediaNodeId = "null", indexType = "BOTH", searchFields =   "header,header1,header2,teaser,bodyText,fishName,contactName,contactDetails,pageTitle,metaDescription,nodeName", previewFields = "bodyText,teaser,header",  previewLength = "255", pageSize = "10", hideFromSearchField = "umbracoNaviHide", searchFormLocation = "NONE" })         
    </div>
    

    The ezSeach documentation can you find here https://our.umbraco.org/FileDownload?id=7816, I am not sure that you can search in two root content nodes, but maybe you can find something about this in the documentation that I linked to above.

    Hope this helps,

    /Dennis

  • Mario 8 posts 58 karma points
    May 14, 2015 @ 09:52
    Mario
    100

    Thanks Dennis. I've fixed the problem, do not know why I was not looking for nodename, the macro was fine. I restarted the application and it works properly.

     

Please Sign in or register to post replies

Write your reply to:

Draft