search for: untoken

Displaying 20 results from an estimated 70 matches for "untoken".

Did you mean: untaken
2006 Mar 09
1
Missing fields in search result
...# our central INDEX index = FerretConfig::INDEX # get all Companies, iterate over and index them companies = Company.find(:all) for company in companies doc = Document.new doc << Field.new("id", company.id, Field::Store::YES, Field::Index::UNTOKENIZED) doc << Field.new("country", company.company_group.address.country.name, Field::Store::YES, Field::Index::UNTOKENIZED) doc << Field.new("name", company.name, Field::Store::YES, Field::Index::UNTOKENIZED) doc << Field.new("z...
2007 Sep 07
5
Custom Analyser .. where to put it ??
Hi, I m trying to use a custom analyser to add my french stop words... i m reading the tutorial at : http://projects.jkraemer.net/acts_as_ferret/wiki/AdvancedUsage My problem is that i ve no idea where to put my custom Analyser class like : class GermanStemmingAnalyzer < Ferret::Analysis::Analyzer include Ferret::Analysis def initialize(stop_words = FULL_GERMAN_STOP_WORDS)
2006 Sep 22
2
Searching untokenized fields
Hi .. I tried to exclude certain objects from my search, by adding appropriate term queries .. i = Ferret::Index::Index.new i.field_infos.add_field(:type, :index => :untokenized, :term_vector => :no) i << {:type => "Movie", :name => "Indiana" } i << {:type => "Movie", :name => "Forrest" } i << {:type => "People", :name => "Forrest" } now searching for forrest should give...
2006 Aug 29
7
uninitialized constant UNTOKENIZED
I''m getting "uninitialized constant UNTOKENIZED" when I try to do something like the following: class Url < ActiveRecord::Base acts_as_ferret :fields => {''name'' => {}, ''description'' => {}, ''url'' => {:index => Ferret::Document::Field::Index::...
2006 Aug 30
7
AAF Sorting by date - what am I doing wrong?
I''m trying to sort my search results by Date, in descending order. I''ve done quite a bit of reading through the forums here, and I''ve tried two different suggestions. This just returns results in the same order as a search without a sort: sort_fields = [] sort_fields << Ferret::Search::SortField.new("ferret_created_at",:reverse => :true)
2006 Aug 30
7
Hyphens
Hi there, I''m working with some legacy data where customer phone numbers are stored with hyphens between the area code, exchange, and number (e.g. 555-555-5555). Is this the best way to store a phone number? Perhaps not, but it''s the way they were being stored, so I have to work with this format. Right, so when I save a record the log tells me acts_as_ferret indexed the
2007 Jul 13
8
More sorting problems with untokenized index
I''m having problems sorting on untokenized fields. I have one field that sorts fine, but there are others that seem to sort on a different field. Here''s the index description: acts_as_ferret :remote=>true,:fields=>{:name=>{:boost=>2},:name_for_sort=>{:index => :untokenized}, :city=>{:boost=>2}, :...
2006 Jan 20
4
Questions about Searching
Hi, I have some questions about searching with Ferret. I have a user index with first_name, last_name and full_name (which is just first plus last with a space). Here are a couple of questions: 1) If I store the fields tokenized, it appears as though queries are case-insensitive. However, for untokenized, the query is case-sensitive. How can I make the untokenized searches case-insensitive? 2) If I have a field with whitespace in it, how can I search for the whitespace using wildcard searches. For instance, if the full_name I am searching for is "John Doe", how can I build a query...
2007 May 08
0
case sensitivity for untokenized fields
Hi, I have a address model. I make the city and the state field untokenized. It looks like Ferret doesn''t perform downcasing for these fields in the index. so the search can''t be done case-insensitively. how do I solve this problem? Downcase the indexed terms as well as the search value? Is there a simpler solution? Thanks. Yaxm -- Posted via...
2007 Mar 28
1
Questions on tokenized x untokenized and date sorting
...last_updated_at_sort ? acts_as_ferret :fields => { :title => {:boost => 2, :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...
2005 Dec 14
5
Query question
I have an index in which I want different records to be accessible to different users. I think I can do this by adding a "users" field to each record in the index and narrow down my queries to only those records matching the current user''s userid. I have the userids separated by commas. What would be the right way to query for a certain user? I have to make sure that I
2007 Jul 25
17
DRb not starting
Hi, I have my Model as follows: class Mutation < ActiveRecord::Base acts_as_ferret ({:fields => {:description=>{}, :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...
2007 Aug 03
2
can''t search for OR (as in the state)
I''m trying to search a Model by the state field using Acts As Ferret. The query for this is ''+state:NY'' (substitute state abbreviation for NY). This works find however ''+state:OR'' returns nothing, though just ''portland'' will pull up matches within that state. I''m pretty sure it''s reading OR as an or conditional
2006 Dec 28
13
Sorting/Ordering Search Results
Hello All, I am having an issue with AAF and sorting results of a search. Right now, I have results being split onto pages of 10. The results are being sorted alphabetically, but not across multiple pages - it''s just sorting the 10 it pulls down on each page. I noticed another post from April regarding this same issue (http://www.ruby-forum.com/topic/62993#66934) where the issue was
2006 Oct 02
4
Another web app using Ferret
...from the beginning, and recently added acts_as_ferret and sorting to the system. As you can see if you try the search, sorting is not working as expected. I am using this code (w/ find_by_content): :sort => Ferret::Search::SortField.new(:school_sort, :reverse => false) :school_sort is an untokenized field with otherwise default settings. Any ideas? - Winton -- Posted via http://www.ruby-forum.com/.
2006 Dec 11
1
exact searches
Is there a way to search a ferret index and have it only display exact matches? I read in other posts that you should have an untokenized field for the exact matches, but I also use the same field for doing unexact matches too (with the stemming analyzer). Would I need a copy of this field in the index untokenized to do an exact match or is there any sort of flag or something I could pass to make it only match exactly when i wan...
2006 Jul 12
5
Reverse sorting
I am getting strange results when I reverse sort a query. I am sorting by date, but it doesn''t seem to be related to dates (I have tried just integers). I also paginate the results. Items in the result set are sometimes duplicated and the not ordered at all. When I try a non-reverse sort I don''t see duplicates and the ordering is correct. Any ideas what is going on? Thanks
2006 Jul 15
2
FieldQuery not returning anything
...=> 0 Searching for this will return my doc >> i.search_each(''object_id:3'') do |doc, score| puts "found #{doc}" end found 0 => 1 If I tokenize the ''type'' field, my query is working, but I thought i can store the value as-it by leaving it untokenized and am still able to search for it with a FieldQuery. Am I wrong? Thanks, Ben -- Posted via http://www.ruby-forum.com/.
2006 Jul 31
16
Sorting performance
I''m using acts_as_ferret to index one of my rails models. Right after I start the app the first request that orders by some ferret field will take very long. Subsequent ones seem to be fast. I guess some caching is going on. Any tips on solving this? Pedro.
2006 Mar 08
1
indexing a document object fails
Hi, I''m trying out the example (more or less) straight from the tutorial: doc = Document.new doc << Field.new("id", "a", Field::Store::NO, Field::Index::UNTOKENIZED) doc << Field.new("title", "b", Field::Store::YES, Field::Index::UNTOKENIZED) doc << Field.new("data", "c", Field::Store::YES, Field::Index::TOKENIZED) doc << Field.new("image", "d", Field::Store::YES, F...