Hi,

I have the following kind of data to index in a multilingual context: is_man, 
is_single, has_job, etc.

Logically, the underlying fields have a value of "yes" or "no." That's why the 
boolean type would be appropriate. But my problem is, in addition to be able to 
filter on these fields, I would like to give my users the possibility to search 
against these fields using free text. i.e., a query might be "single man having 
job." Therefore, I think that the boolean type is not appropriate anymore. 
Instead, I'm thinking of using the string type, and each field will be either 
empty (the "no" case), or populated by its own tag. e.g., if we deal about a 
man, the field is_man will contain the string "man." Then, I copy all these 
fields into a text field that I ca user for free text search.

Does that make sense?

Does that make sense in a multilingual context, i.e., field tags can be 
different in each language (EN => man, single, jog, FR => homme, célibataire, 
emploi, etc.)

Thanks!

-Saïd

Reply via email to