> Perhaps you are using an earlier version of Ferret. Otherwise I'm not
> sure what the problem might me.
Thanks a lot for the reply David! I believe I'm using the latest Ferret
though.
At least now I know that the query I'm using is correct so nothing wrong
with that.
Also I am not too sure about it but this can be changed:
"bob OR *bob* OR bob* OR *bob" to "bob OR *bob*"
Am I right?
As I mentioned before I'm using acts_as_ferret to implement my full text
search. Here is a piece of the code:
def self.quick_search(search_text)
return [] if search_text.blank?
q = "#{search_text} OR *#{search_text}*"
multi_search_result = []
for m in AVAILABLE_MODELS_FOR_SEARCH
size, result = m.constantize.find_id_by_contents(q)
multi_search_result += result
end
...
end
Any other insight, guys?
I must did something wrong but still no luck in finding it until now.
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk