Hi Louis

On 20 Jul 2009, at 06:19, Louis wrote:

>
> Ahoy there,
>
> While reading the comments on the "Thinking Sphinx" Railscast #120,
> I've come across many search engine names. I wonder if someone knows
> about some place where the quality of the engines are discussed; maybe
> some comparative tables.
>
> Thank you very much :)

I moved to sphinx from acts_as_solr.

I hit a bug in Solr where range requests didn't work as expected,  
apparently due to a bug in the rails code where the data type was set  
incorrectly.

This meant that queries such as "field_name:[1 TO 999]" would return  
(say) 10 results, but a query such as "field_name:[1 TO 1000]" would  
return zero matches. Not exactly useful.

Someone on twitter indicated that the data type in the solr index was  
being used incorrectly, and that changing that would solve it. However  
- I trusted the acts_as_solr code to manage that for me, and it didn't  
work, unfortunately. Given the additional hassle of the below bug, I  
decided it was time to change away from acts_as_solr.

Date range searches in acts_as_solr didn't work either, when the  
ranges had times in them. The default code searched for "fieldname:"  
in the string and did some "magic" on it, splitting out the field name  
before the ": (if I remember correctly). That meant that I couldn't do  
searches with date&time strings properly - the search would pick up  
the ":" in "13:23" and try look for a field called 13...

Basically, passing in strings and then parsing them with regexes is a  
horrible way to do it, imho, unless you force a quoting syntax onto  
the string. I think there are some other versions that have a slightly  
different query structure (hash based, rather than string-based), but  
I'd given up and moved to thinking sphinx by then.

Unless there's a properly working branch or set of patches I don't  
know about, I'd prefer to stay away from acts_as_solr..

Thinking Sphinx works perfectly for me so far - THANK YOU PAT ALLAN  
and all other contributors.

Oskar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to