dougal / acts_as_indexed

Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app
http://douglasfshearer.com/blog/rails-plugin-acts_as_indexed
MIT License
211 stars 49 forks source link

Using "-" in query #31

Closed januszm closed 11 years ago

januszm commented 12 years ago

If I use "-" in a query it's treated as a NOT operator. Is there a way to escape this behavior and treat "-" character as regular character.?

Fot example when I want to search for string like "BLABLA-XX".

dougal commented 12 years ago

Hi Janus.

This is actually a bug. - should only be treated as NOT if it is the first character or has whitespace in front of it.

I'll look into fixing this today.

dougal commented 11 years ago

Fixed in development branch, thanks for the bug report.