How do I best store and retrieve ISO country codes?

2007-08-24 Thread Simon Peter Nicholls
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): The thing that sprang to my mind was that BE and IT a

Re: How do I best store and retrieve ISO country codes?

2007-08-24 Thread Simon Peter Nicholls
Thanks Yonik! Cheers for the extra advice too. On 24 Aug 2007, at 17:14, Yonik Seeley wrote: On 8/24/07, Simon Peter Nicholls <[EMAIL PROTECTED]> wrote: I've just noticed that for ISO 2 character country codes such as "BE" and "IT", my queries are not working a

Re: acts_as_solr

2006-09-17 Thread Simon Peter Nicholls
I had a play around with acts_as_solr today (thanks Yonik for the pointer). Had to fiddle around for a while to set up the schema.xml, (I'm totally new to Solr), but it worked well. Well, I'm far from RoR savvy (new to Ruby/Rails also), but concerning the commit question, probably using an

Re: acts_as_solr

2006-09-18 Thread Simon Peter Nicholls
Procs, to using Solr (or even Ferret) as a local test engine if query *absolutely* needs testing. Solr interface seems simple enough that mocking return values is fine though. Any thoughts? Simon On 17 Sep 2006, at 17:29, Simon Peter Nicholls wrote: I had a play around with acts_as_solr tod