Try our conversational search powered by Generative AI!

EPiFind indexing objects multi language support

Vote:
 

Hi, 

 

I'm using EPiFind to index custom objects in addition to CMS content, and some fields of my custom object are language-dependent. 

How should I index my objects in order to use Search<TSource>(Language language) (or .FilterOnLanguages, or non-cms analog?) in queries?

 

1) should I store lanugage as a part of the object and have 1 object per lanugage (+ probably write my own extension to filter by this field)?

2) or should I add fields with proper prefix/suffix (or any other "language mark" on the field level), and have separate field for each language? (In this case I'm not sure how to efficiently filter results by language)

3) something else (maybe I missed a simple built-in way)?

 

#73074
Jul 05, 2013 7:45
Vote:
 

Hi Vladimir,

You just stepped into the magic of EPiServer Find. Welcome :-)

What I mean with that is that you don't need to worry about that. Find will handle the language for you. Then you can search with Search<Type>(Language.YOURLANGUAGE) and get stemming on the language you are searching for.

 

Hope that help you.

/Marcus

#73092
Jul 05, 2013 12:54
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.