similar to: Ferret and Rails transaction

Displaying 20 results from an estimated 1000 matches similar to: "Ferret and Rails transaction"

2005 Nov 26
3
Several questions about Ferret.
Hi. First of all I would like to say "thank you" to David for its really valuable work. Ferret is a great project and it have great future. Well now is my questions as beginner in Ferret. How to remove ALL documents from index. Remove files is not a solution. I am interesting in something like index.remove_index or something like this. What is a usual way of doing it?? What is the
2006 Sep 24
0
Ferret 0.10.7 released
Hey guys, I''ve just released Ferret 0.10.7. It is still in beta but we are getting closer and closer to a 1.0 release. The main changes in this release are better handling of fields by the QueryParser. You can now give the QueryParser a list of fields that are tokenized so that only those fields will be analyzed in the QueryParser. This means that you can search untokenized fields for
2006 Oct 02
4
Another web app using Ferret
I am apart of a team that runs a student site called Studicious (http://stu.dicio.us). We have been 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)
2006 Mar 09
1
Missing fields in search result
Hello ferret users, I have a problem with ferret dropping stored fields in the index. Not all fields I want to store get stored, so they can be searched, but can''t be retrieved in a search. Index creation: INDEX = Index::Index.new(:path => ''/home/gregor/wisa/index'', :analyzer => Analysis::WhiteSpaceAnalyzer.new) SR =
2006 May 10
1
acts_as_ferret choking
Hi all, I''ve ran into a problem with Ferret on my rails app, and I don''t really have a clue about why. When running the unit tests, I get the following error output: > Exception raised: > Class: <NoMethodError> > Message: <"You have a nil object when you didn''t expect it!\nThe > error occured while evaluating nil.version"> >
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?
2006 Jan 05
2
ActiveRecord callbacks not happening
Hi, I have a model class like so: class Candidate < ActiveRecord::Base validates_presence_of :name @@index = FerretConfig::INDEX def self.after_destroy puts "Ferret: after_destroy called" @@index.query_delete("+id:#{self.id} +ferret_class:#{self.class.name}") optimize_index end end But when I delete a record, the after_destroy is never called.
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 =>
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}, :city_for_sort=>{:index=>:untokenized},
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
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
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::UNTOKENIZED},
2007 Jan 01
2
Possible Bug when Creating Indexes
I''m running: ferret (0.10.9) ruby 1.8.5 (2006-08-25) [i386-mswin32] on Windows XP(SP2) When I create an index as follows: field_infos = FieldInfos.new(:store => :yes, :term_vector => :no, :index => :yes) field_infos.add_field(:id, :index => :untokenized) field_infos.add_field(:subject) field_infos.add_field(:author) field_infos.add_field(:tags, :store => :no) index =
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",
2000 Jan 06
1
Help Files
Hi, I've just downloaded rwinst.exe and ran the installer. Afterwhich I double-clicked the Rgui icon. However, when I clicked on any of the help options, for example, I clicked 'Help' then 'R Language (html)', there's a message saying: Error in help.start() : I can't find the html help. Please help. Thanks! Wendy -------------- next part -------------- An HTML
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 http://www.ruby-forum.com/.
2007 Mar 28
1
Questions on tokenized x untokenized and date sorting
Gents, does this definition will allow me to search inside title, sub_title and url and sort by score, rank_sort, last_updated_at_sort ? acts_as_ferret :fields => { :title => {:boost => 2, :store => :yes}, :sub_title => {:store => :yes}, :url => {:store => :yes}, :rank_sort =>
2013 Jan 24
0
hologram
Guangzhou Lidun Hologram Co., Ltd. Home|Product|company Profile |Contacts|more DearFriends, Best Wishes For You! Wish you have a good day!We are the major manufacturer and exporter of silicone bracelets and holographic stickers with more than ten years experience in China. Also, custom bracelet and custom packing box are welcomed. Any questions or more information, please let me know.
2006 Sep 20
3
Unit and Functional Tests Bombing with Ferret
Hello, I am currently using ferret 0.9.5 and acts_as_ferret 0.2.3 on windows XP All my unit and functions test that used to work before I installed ferret are erroring out. My index is on a model name Post, and it looks like all tests that contains methods which does CRUD to the Post model bombs out. Is there anything special I need to do before running unit and functional test? Thanks
2006 Nov 14
1
transaction support in ferret
I have a model called "Business". Each object say @business can be tagged by any user. When i do ferret update for this object(on adding a new tag or editing it), there always a possibility that another user is also tagging it. I am using the std rails pluggin for tagging ''acts_as_taggable''. So is the indexing done properly. Or would there be any problem? Thanks