Hi all,I've just noticed that for ISO 2 character country codes such as "BE" and "IT", my queries are not working as expected.
The field is being stored as country_t, dynamically from acts_as_solr v0.9, as follows (from schema.xml):
<dynamicField name="*_t" type="text" indexed="true" stored="false"/>The thing that sprang to my mind was that BE and IT are also valid words, and perhaps Solr is doing something I'm not expecting (ignoring them, which would make sense mid-text). With this in mind, perhaps an _s type of field is needed, since it is indeed a single important string rather than text composed of many strings.
Am I on the right track here? Can anyone give me some quick advice about how best to store and query enumeration values and ISO codes in Solr? I hope to try these string field changes when I get back to my dev environment, but that will be next week, and it's preying on my mind. Any help would be gratefully received!
Thanks, Si
smime.p7s
Description: S/MIME cryptographic signature