We have content with localized fields and we’d like to be able to search our content for specific locales.
By default, it seems the search use the default fallback value.
Is there a way to add the locale in the search in the webapp ?
@jerome.hautecoeur
Ok. Can you please share the full scenario, i.e. how would you like to search for specific locales and what is the condition?
I’m not sure we can do it, but probably we can consider it for future.
To give you the whole picture:
We have some contents (articles) that are localized but for one content, all locales can’t be published at the same time (each country works on its side, independantly)
So, to be able to manage a publish-by-local status, we have added a localized field containing the status for the selected locale. We use this status and the Contentful status to determine if a content can be publish on the website.
We would have liked to search on this localized field to be able to set some view for each locales (so people can retrieve easily the status of their content).
Makes sense ?
Got it. Thank you for the details.
I think you can also create several Boolean fields, i.e. bool field per locale. In each entry you’ll have, for example:
bool field name: English, values: Yes/No
bool field name: Spanish, values: Yes/No
bool field name: German values: Yes/No
In this case, you don’t need to search for content for specific locale, but instead you could search for content by these bool fields: English: No Spanish: Yes