Include always english results in the final result even for user selected language is non english
we are having some content in different languages.if any query matches , then final result should include current user language and English results as well.
i am using JS framework only . Any references ?
JS with Sitecore if I remember properly.
Using JS UI only: Your advanced query should include an expression with the field "syslanguage" (if you use CES 7) or the field "language" (Coveo Cloud V2). Ex; @language=="en". To detect the language of your user, you could use your browser functionalities (navigator.language) and simply inject it in your advanced expression.
C4SC: There is a property on the Coveo Search component to display only results in the user's language. You will need to uncheck that and code your own filter using the same method as above. The Sitecore context can provide the user language and help you fallback on another when you don't have any content in that language.
Different language code formats: en, en-US, fr-CA, fr-fr etc. is something that you need to care about, so the "==" operator might not be optimal. Refer to the query syntax to find something optimal that suits your needs. I would use something like: @language=(en,fr).