Change catalog indexing behaviour

Vote:
 

Hi all

 

We are planning on using Solr for our search provider, since we need the facetting mechanism provided by Solr.

 

Our customer have a consistency issue with their catalog texts and descriptions. Some product text is translated into different languages and other texts are not. And also in thier specific line of work, it is normal to use both english and local words for some of the products. Because of this, they would like the search engine to search in all languages at the same time when looking for a match.

The displayed search result should always be in the local langugage, but this shouldn't be a problem to handle in our presentation logic.

We are extending the provided SolrSearchProvider, so I have been looking at the indexing methods to see if we can include all languages in the same Solr document.

Indexing is started from this method:

public override void Index(string applicationName, string scope, ISearchDocument document) method.

The ISearchDocument attribute contans the data to index. However, this document seems to be in a single language, and the Index method will be called multiple times for the same Commerce product. Once for each language.

Is it possible to change this behaviour, so that the Index method is called once for each product including texts of all languages?

Thank you for your help.

Regards

Anders

#79418
Dec 17, 2013 7:21
* 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.