Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I'm having trouble creating a search facility on my website using razor. Here is what I have so far:In the ExamineIndex.config file:
<IndexSet SetName="WebsiteIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/WebsiteIndexSet/"> <IndexAttributeFields> <add Name="id" Type="Number" /> <add Name="nodeName" EnableSorting="true" /> <add Name="createDate" EnableSorting="true" Type="DateTime" /> <add Name="updateDate" EnableSorting="true" Type="DateTime" /> <add Name="writerName" /> <add Name="path" /> <add Name="nodeTypeAlias" /> <add Name="parentID" /> </IndexAttributeFields>
<IndexUserFields> <add Name="pageTitle" /> <add Name="pageShort" /> <add Name="pageIntroduction" /> <add Name="pageContent" /> <add Name="uBlogsyContentTitle" /> <add Name="uBlogsyContentSummary" /> <add Name="uBlogsyContentBody" /> </IndexUserFields>
<IncludeNodeTypes> <add Name="uBlogsyPost" /> <add Name="Page" /> <add Name="Event" /> <add Name="Home" /> <add Name="Level1" /> <add Name="Dashboard" /> <add Name="Events" /> </IncludeNodeTypes>
<ExcludeNodeTypes> <add Name="File" /> </ExcludeNodeTypes>
</IndexSet>
hi Michael
is your split on var t only taking first entry? Do you need to add string params for the second, third etc?
Only had a quick glance, but that came to mind so thought it may help.
apologies if not useful
gary
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Razor Search Example
I'm having trouble creating a search facility on my website using razor. Here is what I have so far:
In the ExamineIndex.config file:
<IndexSet SetName="WebsiteIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/WebsiteIndexSet/">
<IndexAttributeFields>
<add Name="id" Type="Number" />
<add Name="nodeName" EnableSorting="true" />
<add Name="createDate" EnableSorting="true" Type="DateTime" />
<add Name="updateDate" EnableSorting="true" Type="DateTime" />
<add Name="writerName" />
<add Name="path" />
<add Name="nodeTypeAlias" />
<add Name="parentID" />
</IndexAttributeFields>
<IndexUserFields>
<add Name="pageTitle" />
<add Name="pageShort" />
<add Name="pageIntroduction" />
<add Name="pageContent" />
<add Name="uBlogsyContentTitle" />
<add Name="uBlogsyContentSummary" />
<add Name="uBlogsyContentBody" />
</IndexUserFields>
<IncludeNodeTypes>
<add Name="uBlogsyPost" />
<add Name="Page" />
<add Name="Event" />
<add Name="Home" />
<add Name="Level1" />
<add Name="Dashboard" />
<add Name="Events" />
</IncludeNodeTypes>
<ExcludeNodeTypes>
<add Name="File" />
</ExcludeNodeTypes>
</IndexSet>
hi Michael
is your split on var t only taking first entry? Do you need to add string params for the second, third etc?
Only had a quick glance, but that came to mind so thought it may help.
apologies if not useful
gary
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.