Indexing poco object

Vote:
 

Hi Team,

We are indexing the POCO object on our site. We need a language-based find the index.so we inherited the EPiServer.Core.ILocalizable class in our index class.

 public partial class SearchResultItem : EPiServer.Core.ILocalizable
    {
}

After indexing, we didn't see any language-based index in find backend UI. Refer image in below link

https://ibb.co/C2wpQ7C

#208989
Edited, Nov 05, 2019 15:42
Karyan - Nov 05, 2019 15:46
How to index POCO objects as language-based?
Vote:
 

Have you enabled/selected language while creating service in https://find.episerver.com/ ?

#208997
Nov 05, 2019 18:30
Vote:
 

Hi Praful,

I am using epi find demo index only and enabled English and Spanish languages.

https://es-eu-dev-api01.episerver.net/xxxxxxxxxxxxxxx

#209014
Nov 06, 2019 8:34
Vote:
 

It may be relative, like you need to listen for events on changing any data and trigger reindex your POCO object. Please see below link if you get any direction (I know it is related to catalog but might be helpful)

https://world.episerver.com/documentation/developer-guides/commerce/search/find-integration/indexing-poco-objects-instead-of-catalogcontentbase/

#209016
Nov 06, 2019 9:05
Karyan - Nov 06, 2019 10:19
Thanks for your input Praful.
Vote:
 

Refering to your image, «CMS Content» is a h1-heading and «Language branches» is a h2-heading. I think only CMS-content is divided into language branches. You have no CMS content indexed, so you have no language branches indexed. Makes sense?

Also, I think the languages you specify in the image in Praful's image only affect stemming etc in language-specific queries:
https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/searching/language-specific-queries/
You may index content created in other languages.

When implementing ILocalizable, you have added implementations for Language, MasterLanguage and ExistingLanguages?

#209020
Nov 06, 2019 10:04
Vote:
 

Thanks Tomas,

Yes, it makes sense. Just checked with CMS content now I can able to see language branches.

I am just doing POC with language-based indexing for POCO objects.

ILocalizable - Yes I implemented that 3 properties.

So When we index POCO objects with different language then the language branch will not be shown. Is this right?

#209027
Nov 06, 2019 11:36
* 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.