Gravatar for

Question by Hussain Shaik, Mar 28, 2017 4:11 PM

language filter query is not working for two sources

i am using the below query to filter "en" language results.

args.queryBuilder.advancedExpression.addFieldExpression('@@language', '==', ['en']);

This is working for one data source and not working for another data source. I am using JS framework with coveo cloud.

i run the query without langauge filter and found that the below 2 difference.

"language": [ "en" ], ---> datasource 1

"language": [ "English" ], --> datasource 2

Is there any reason why i am getting the different language code here? Do i need to change the Query here?

Gravatar for

Comment by Dominic Berube, Mar 28, 2017 4:16 PM

Have you tried using ['en','English']?

What is the type of your datasource 2

0 Reply
Ask a question