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:
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.
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.
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
is working on a reply...