Can't get results.

Vote:
 

Hi,

I'm using EpiServer 8.11. and the project has Find installed.

When I got to the Overview tab it tells me there are 20 documents indexed. This is "For All Websites" in "All languages" but when I set the tab to my specific website name this drops to 0.

Needless to say but when I try and do a basic search in my code I get no results back.

How do I fix this so that find indexes the results for my site?

thanks,

Stephen.

#139287
Sep 29, 2015 11:27
Vote:
 

I assume you have triggered a Reindex job from the Admin panel?  What do you have in your index? You can use the Explore view in the Find interface to explore the contents of your index.

#139315
Sep 29, 2015 17:46
Vote:
 

hi,

yes, I've tried reindexing from the Admin panel still no joy.

It seems I can add a catalog item programmatically and the admin reindex does my standard web pages.

thanks,
S.

#139330
Sep 30, 2015 10:33
Vote:
 

Oh, Okay. I was not aware you were running Commerce in your setup. Are you? (You mention 'catalog item') It's still fine, it works the same. However, make sure your ShouldIndex conventions are correctly set up. In your codebase somewhere, you probably have some lines similar to:

ContentIndexer.Instance.Conventions.ForInstancesOf<T>().ShouldIndex(x => false);
ContentIndexer.Instance.Conventions.ForInstancesOf<U>().ShouldIndex(x => true);

Those lines configure whether these items of type T or U should be indexed or not.

How does 'add a catalog item programmatically' affect the state of the issue?  Does programmatically added catalog items show up in the index?

#139334
Sep 30, 2015 10:39
Vote:
 

Yes, I'm using Commerce. The standard EPiServer pages are going in the index but not the catalog stuff.

I've just tried adding that code in Application_Start and it didn't fix it.

thanks,
S.

#139336
Sep 30, 2015 11:05
Vote:
 

How about

PM> Install-Package EPiServer.Find.Commerce
#139352
Sep 30, 2015 14:52
Vote:
 

Hi,

I managed to get something working by using  "ContentIndexer.Instance.Conventions.ForInstancesOf<CatalogContentBase>().ShouldIndex(x => true);" in combination with the code detailed here : http://world.episerver.com/blogs/Jonas-Bergqvist/Dates/2014/1/Indexing-catalog-content-using-EPiServer-Find-Content-Indexing-Job/

If I had used the EPiServer.Find.Commerce would it have avoided the use of this extra code?

Is there any relevant documentation for what that package provides?

thanks,
S.

#139355
Sep 30, 2015 15:11
Vote:
 

Yes, the EPiServer.Find.Commerce package packs:

  • a IReindexInformation implementation class that allows Find to traverse the Commerce catalog.
  • Extensions to the search that allows to filter results by Market (FilterOnMarket)
  • The ability to do Unified Search for catalog items.
  • Best Bet support for Commerce items.
#139357
Sep 30, 2015 15:23
Vote:
 

Sounds exactly what I need unfortunately when I tried to install it fell over

Install failed. Rolling back...
Install-Package : Updating 'EPiServer.CMS.Core 8.11.0' to 'EPiServer.CMS.Core 9.0.1' failed. Unable to find versions of 'EPiServer.CMS.UI.Co
re, EPiServer.Find.Cms' that are compatible with 'EPiServer.CMS.Core 9.0.1'.
At line:1 char:16
+ install-package <<<< EPiServer.Find.Commerce
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

I've Visual 2013 with nuget 2.8

#139358
Sep 30, 2015 16:08
Vote:
 

Hello Steve

The latest versions of the EPiServer Nuget packages all target CMS 9 including EPiServer.Find.Commerce v9.1.2. Try installing the previous version of the package by running this in the package manager console:

Install-Package EPiServer.Find.Commerce -Version 9.1.1

This should target the CMS 8.x asssemblies.

David

#139361
Sep 30, 2015 21:23
Vote:
 

Hi,

I've installed that package and removed the other code and it now automatically adds the catalog items.

Thanks!

Steve.

#139386
Oct 01, 2015 10:41
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.