Copied to clipboard

Flag this post as spam?

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


  • Chris 11 posts 30 karma points
    Nov 28, 2011 @ 22:45
    Chris
    0

    Search Results and newly added properties

    I'm following the instuctions on umbracco tv for setting up search and it works. However I've justed add a field to the textpage template which will be a summary of the page. I want to display in the list of search results like so:

     

    <ItemTemplate>
    <%# ((Examine.SearchResult)Container.DataItem).Fields["nodeName"] %><br/>
    <%# ((Examine.SearchResult)Container.DataItem).Fields["summary"]%><br/>
    </ItemTemplate>

    But it just throws an error that the key isn't present in the dictionary. Is there something I need to do to the index configs? I can access "bodyText" not my new field.

    Cheers, Chris.

  • Nigel Wilson 945 posts 2077 karma points
    Nov 29, 2011 @ 00:45
    Nigel Wilson
    0

    Hi Chris

    "Touch" your web.config file (ie open it add an extra line somewhere and save the file).

    This should get your index "reindexing".

    Cheers

    Nigel

     

Please Sign in or register to post replies

Write your reply to:

Draft