Andreas Korth wrote:
> Ferret::Analysis::FULL_ENGLISH_STOP_WORDS.include?('or')
> => true
>
> Index the state field untokenized:
>
> field_infos.add_field(:state, :index => :untokenized, ...)
Hi, I am a novice in rails. I too ran in to the same issue.
I did follow your method but am a bit confused..
My model has
acts_as_ferret :fields => {
:description => {:store => :yes},
:state => {:index => :untokenized}},
#:store_class_name => :true,
:remote => false
and in my controller I search with this
condition = "state:(#{params[:state]})"
query = condition + "some_text"
I do not understand where should I use the line code
Ferret::Analysis::FULL_ENGLISH_STOP_WORDS.include?('or')=> true
I am unable to get the desired result when 'OR' is passed as a state.
Can you kindly be patient and explain me what am I missing?
Any help would be highly appreciated.
Cheers,
Vinay
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk