November Happy Hour will be moved to Thursday December 5th.

Epsierver Find doesn't work.

Vote:
 

Hi.

I installed episerver find, set up them with my credentials (for example)

<configuration><configSections><sectionname="episerver.find"type="EPiServer.Find.Configuration, EPiServer.Find"requirePermission="false"/></configSections><episerver.findserviceUrl="http://..."defaultIndex="myindex"/></configuration>
And use IClient with init from EPiServer.Find.Client.CreateFromConfig().
So when i search something
_client.Search<ArticlePage>().For(query).GetResult();

it returns empty collections.
In What is problem?
Thanks.
#69826
Apr 07, 2013 22:48
Vote:
 

I have a few published article pages.

#69827
Edited, Apr 07, 2013 22:49
Vote:
 

You should use the singleton when making queries.  SearchClient.Instance.Search<ArticlePage>().GetResult();

 

Have you run the indexing job? You need to trigger a first indexing of the site when setting up find for the first time.

#69834
Apr 08, 2013 9:51
Vote:
 

Hi. Thanks. but why i can't use IClient and how I can create indexing job ?

 

#69842
Apr 08, 2013 11:20
Vote:
 

SearchClient.Instance provides an object that implements IClient. This specific client is preconfigured to handle CMS content objects in a better way than a standard client. Everything in the documentation where an IClient is used can also be done using SearchClient.Instance.

The indexing job is a scheduled job that ships with Find's CMS-integration so given that you have installed that (referenced EPiServer.Find.Cms.dll) you can simply go to admin mode and run it. Pages and such will be indexed when they are modified using event driven indexing but the scheduled job comes in handy when you have just installed Find on an existing site so that you can do an initial indexing of all content without having to modify it.

Also, it should be added that when you search for pages and such you should use the GetContentResult method or apply a projection using the Select method.

#69847
Apr 08, 2013 12:14
Vote:
 

Thanks

#69852
Apr 08, 2013 13:45
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.