I'm running Umbraco 4.8. I tried setting up packages to run site search, but they break the xslt macros.
Next, I wanted to set up Examine for site search from scratch. I even subscribed to Umbraco.tv and followed the video closely on setting up ExamineIndex.config and ExamineSettings.config. Here is the link to the video: http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/building-the-cws-site/search/TVPlayer. I set up the simple macro that came with the lesson, and plugged it into my template that I created to display the results.
When I try to run a search I get the following error: Error loading MacroEngine script (file: SearchResults.cshtml) The line that seems to break everything is:
@* Get the search term from query string *@ @{var searchTerm = Request.QueryString["search"];} @{var results = ExamineManager.Instance.Search(searchTerm, true); }
Umbraco 4.8 Search Setup with Examine Won't Work
I'm running Umbraco 4.8. I tried setting up packages to run site search, but they break the xslt macros.
Next, I wanted to set up Examine for site search from scratch. I even subscribed to Umbraco.tv and followed the video closely on setting up ExamineIndex.config and ExamineSettings.config. Here is the link to the video: http://umbraco.com/help-and-support/video-tutorials/umbraco-fundamentals/building-the-cws-site/search/TVPlayer. I set up the simple macro that came with the lesson, and plugged it into my template that I created to display the results.
When I try to run a search I get the following error: Error loading MacroEngine script (file: SearchResults.cshtml) The line that seems to break everything is:
@{var results = ExamineManager.Instance.Search(searchTerm, true); }
The whole snipet for the macro looks like this:
@using Examine;
@* Get the search term from query string *@
@{var searchTerm = Request.QueryString["search"];}
@{var results = ExamineManager.Instance.Search(searchTerm, true); }
@{if (results.TotalItemCount == 0)
{
<p>No results found</p>
}
else
{
<ul class="search-results">
@foreach (var result in results)
{
<li>
<a href="@umbraco.library.NiceUrl(result.Id)">
@result.Fields["nodeName"]
</a>
</li>
}
</ul>
}
}
I'm starting to think that the reason why neither packages nor this simple setup won't work is Umbraco 4.8. Any ideas how to get around this?
is working on a reply...