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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...