AI OnAI Off
Hi,
Using the fluent Find-API you can only search strongly typed properties/methods using Find and not properties in the property data collection (as those added in admin mode). Please use PageTypeBuilder http://pagetypebuilder.codeplex.com/ to model your pages as it will give you strongly typed access to your property data. It will also enable you to use Find in that lovely fluent way.
/Henrik
I'm working on implementing Find.EPiServer product in my project. I face an issue in implementing the "Free text search" function mentioned in http://find.episerver.com/Documentation/dotnet-api-free-text-search. I'm trying to implement the below code, which is specified in the above mentioned page:
var searchResult = client.Search<BlogPost>()
.For(q)
.InField(x => x.Title)
.GetResult();
I did a similar query as follows:
var searchResult = client.Search<NewsList>()
.For(q)
.InField(x => x.PageTitle)
.GetResult();
wherein NewsList is the page type and PageTitle is the property, that I created through admin mode. However the "x." intelligence doesn't give me the PageTitle property as suggestion and shows an error - 'EPiServer.Pages.Content does' not contain a definition for 'Page Title' and no extension method 'PageTitle' accepting a first argument of type 'EPiServer.Pages.Content does' could be found (are you missing a using directive or assembly reference?).
I have downloaded the related Find.EPiServer dlls - EPiServer.Find, EPiServer.Find.CMS, EPiServer.Find.Framework and Newtonsoft.Json from "http://world.episerver.com/Download/Items/EPiServer-Find/EPiServer-Find-1-R2/" and referenced the same. Also I have added the namespaces - EPiServer.Find, EPiServer.Find.CMS, EPiServer.Find.Framework in my page.