Displaying 12 results from an estimated 12 matches for "untokenized_omit_norm".
Did you mean:
untokenized_omit_norms
2007 Mar 31
3
Sorting issues, can anyone help me?
...s Post < ActiveRecord::Base
acts_as_ferret :fields => { :title => {:boost => 2},
:description => {},
:url => {},
:rank_sort => {:index =>
:untokenized_omit_norms, :term_vector => :no},
:posted_at_sort => {:index =>
:untokenized_omit_norms, :term_vector => :no}
}, :remote => true
belongs_to :blog
def rank_sort
begin
return self.blog.rank_links.to_i
rescue...
2007 Mar 06
9
bug or "feature"?
...oblem or like a
"feature"?
another little problem i''ve found is that i''ve written this for the
search:
acts_as_ferret :fields => {:title => {},
:category_id => {},
:bought_at_int => {:index =>
:untokenized_omit_norms, :term_vector => :no},
:gift => {:index =>
:untokenized_omit_norms, :term_vector => :no}}
def self.full_text_search(query, category_id)
return nil if query.nil? or (query == '''')
query += " +category_id:{category_id}
+bo...
2006 Nov 01
8
aaf and stop words; query parser
I''ve been trying to implement acts_as_ferret in my latest project and ran into a snag. If I do a search for ''auditor state'' then the search works perfectly. If I include a stop word, as in ''auditor of state'', then I get no results. I''d prefer not to set stop words to nil and index everything.
The solution, that I have yet to attempt, is to use
2007 Jul 25
17
DRb not starting
...t;{},
:product_id=>{:index => :untokenized},
:product_description=>{},
:product_label_description=>{},
:product_label_free=>{},
:product_product_id_supplier=>{},
:product_description_supplier=>{},
:supplier_description=>{},
:pub_date_sort => {:index => :untokenized_omit_norms, :term_vector =>
:no},
:location_id => {:index => :untokenized},
:tab => {:index => :untokenized}},:remote => false})
THis will do the ferret locally without the DRB server. Works ok.
If I change this to:
class Mutation < ActiveRecord::Base
acts_as_ferret ({:fields =&...
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
...I get a result count but no results. If I run the same search from one of the children STI models I get the appropriate results (if the information was indexed).
Here''s my setup:
class Record < CachedModel
acts_as_nested_set
acts_as_ferret( :fields => {
:lft { :index => :untokenized_omit_norms },
:name => {},
:desc => {},
:body => {:strore => :yes},
:role => {},
})
def self.inheritance_column
''role''
end
# methods below .....
end
class FirstRecord < Record
end
class SecondRecord < Record
end
class ApplicationControll...
2007 Sep 20
5
Ferret DRB, UTF-8, Mongrel
...e, which I handle using a fuzzy search)
So then call an analyzer in my acts_as_ferret declaration:
acts_as_ferret({ :fields => {:first_name => {:store => :no},
:last_name => {:store => :no},
:db_state => {:index =>
:untokenized_omit_norms, :term_vector => :no}},
:remote => true}, {:analyzer => UtfAnalyzer.new})
Here''s the analyzer I''m using... pretty much taken from from here:
http://ferret.davebalmain.com/api/classes/Ferret/Analysis/MappingFilter.html
-----
class UtfAnalyzer < Fer...
2007 Aug 18
0
Problem with multi-search
Hi all,
I have indexes on 2 models
e.g Message model
acts_as_ferret(:store_class_name => true,
:fields =>{:message => {:store => :compressed},
:felix_user_id => {:index
=>:untokenized_omit_norms,:store => :no})
and the chat model acts_as_ferret(:store_class_name => true,
:fields => {:name => {:store => :no},)
where mesage belongs to chat.
When i search a keyword,it could be present in message or it could be
present in chat name.
So im doing a multi-sear...
2007 Jul 05
1
how to search date with ferret and acts_as_ferret?
Hey all,
How can I search date with ferret? Do I need to submit them in a special format?
Right now I have in my Item model:
acts_as_ferret :fields => [:created_on]
with eg created_on = Thu May 11 17:00:00 -0500 2006
now when I do Item.find_by_content("created_on:<#{Time.now}")
I get nil, I''m probably doing something wrong.
Any idea how to fix it?
thanx in advance
2007 Mar 28
1
Questions on tokenized x untokenized and date sorting
...:store => :yes},
:sub_title => {:store => :yes},
:url => {:store => :yes},
:rank_sort => {:index => :untokenized},
:last_updated_at_sort => {:index =>
:untokenized_omit_norms, :term_vector => :no}},
:remote => true
def rank_sort
begin
return self.rank_links.to_i
rescue
return nil
end
end
def last_updated_at_sort
begin
self.last_updated_at.to_i
rescue
return nil
end
end
--
Posted via htt...
2006 Oct 16
1
Setting the boost field after indexing
I was wondering about the potential impact of setting the boost field for an
index after the index has been created and optimized.
I know that some field_info settings can''t really be modified, such as
:store or :tokenize, as they really apply when you are indexing, but is
boost? If boost is only used for searching, can it be modified dynamically
when searching?
Thanks for any
2007 Jun 08
13
Errror on update after Model.rebuild_index
Hi
I use Ferret 0.11.4 and the latest stabel version of the acts_as_ferret
plugin.
To the issue. if I do Model.rebuild_index and after that try to update
one of my objects of that Model I get:
File Not Found Error occured at <except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
tried to open
2006 Sep 18
16
Dynamic fields and AAF
Hi,
I have a model which has properties, these are your standard name/value
pairs, but also have attributes that affect how I want to store them in
ferret. I was using 0.9.5 with 0.2 of aaf, which seemed fine, I just
copied and pasted (yes, I know, ick) the to_doc method and added code to
iterate though the properties that that model had, and add relavent
fields to the document.
It seems