similar to: segfaulting at rebiuild_index

Displaying 20 results from an estimated 400 matches similar to: "segfaulting at rebiuild_index"

2006 Jul 06
5
acts_as_ferret Locale issue
I''ve just installed acts_as_ferret, and am trying to build my index, but I''m getting the following error: >> r = Topic.find_by_contents(''testing'') StandardError: : Error occured at <analysis.c>:704 Error: exception 2 not handled: Error decoding input string. Check that you have the locale set correctly from
2006 Aug 20
7
missing terms in index causing search errors
I am unable to find results for models when one or more of the terms are not being indexed. Lets suppose I index a User on the phrase "Ruby on Rails." If I then search using User.find_by_contents("Ruby on Rails") I get no results, since "or" is a common term and does not get indexed. Of course, User.find_by_contents("Ruby Rails") works just fine. I
2006 Apr 11
2
setting the default operator on a QueryParser
Hi all, Thanks to the authors for the amazing work on Ferret! I have a question about setting up the standard operators on a QueryParser. I would like my parser to default to AND queries rather than the default OR. In Java I would simply do: QueryParser parser = new QueryParser("contents", new StandardAnalyzer()); parser.setDefaultOperator(QueryParser.Operator.AND); But I
2006 Jul 03
3
Ferret not returning the right results
I have ferret setup in my model with multiple fields, but when I do a search on the value that might be stored in two fields, I get no results. Here''s an example: "Jim 12333" Where Jim is a name field, and 12333 is a zip code. I have this in my model: acts_as_ferret :fields => [ ''name'', ''zip'' ] I''m not sure
2006 Apr 03
4
Stop words in queries
I''ve run in to an issue that I''m not sure how to address. Basically, I''m building queries with occur_default Search::BooleanClause::Occur::MUST, and using the StandardAnalyzer which does stop filtering. The stop filtering is working beautifully on the indexing side. The problem is that when the query parser parses through a query with a stop word in it, say
2006 Jun 27
2
Using QueryParser vs building my own query
Hello all I finally caved in and decided I should build my own query instead of relying on QueryParser to do the job for me, but I''ve hit a strange problem.. Here''s how I build my query: #Main query query = Ferret::Search::BooleanQuery.new #Build query to match types typesquery = Ferret::Search::BooleanQuery.new @selected_types.each{|type| typesquery.add_query(
2006 Jul 09
3
acts_as_ferret.. what does it actually do?
Okay in this plea for help I''m going to repeat some of what i posted before but with a larger amount of background info in the hope that i can get a decent grip on ferret before it wriggles away.. Firstly, what does installing the acts_as_ferret plugin actually do? I install it and add it to my model and then the index is automatically generated and a few methods are added to it and
2006 Jan 14
7
Rails on Resin
Anyone figured out how to get rails/fastcgi to run on Resin. I assume it would be similar to PHP, which there are directions here: http://www.caucho.com/resin-3.0/thirdparty/php.xtp One thing that confuses me is that it wants a server address: <server-address>localhost:8002</server-address> Apparently you start the php process, like this: php -b 8002 And then the PHP process
2006 May 31
5
Help with sorting arrays with objects in it
I have to build an array through both activerecord and also through a ferret index. I was hoping to find a way of sorting the array as i combine the two so def advanced_search(search_text, store, format, sortby) # find items in ferret index items = Item.find_by_contents(search_text) # and now find all the items from a certain store or category items_from_sql = Item.find_by_sql("SELECT *
2006 Apr 10
3
Simple act_as template
Hello ! I posted a simple template to show how to add ''act_as_whatever'' to ActiveRecord. I think this might be useful to others as there are some trickery ruby things in this file. Here is the template : http://textsnippets.com/posts/show/384 Gaspard Bucher -- Posted via http://www.ruby-forum.com/.
2006 Mar 29
1
Problems with Ferret 0.9.0
Hi, I upgraded from 0.3.2 to 0.9.0, and now my old search code doesn''t work anymore. I get a lot of ArgumentErrors, for example: "query.add_clause(Search::BooleanClause.new(query_parser.parse(term), Search::BooleanClause::Occur::MUST))" raises: ArgumentError (wrong number of arguments (2 for 0)) "index_searcher.search_each(query)" raises: ArgumentError
2006 Apr 21
1
Using fixtures inside migrations
Hi, I want to add data from a fixture file to a table inside a migration. I''ve saved the file in db/migrate/fixtures/countries.yml I guess I could just open the file, read the entries, and add them to the database using AR, but I''m hoping I can use Rails for all that. Also, if I have a file, say, with 200,000+ records, what would be the best method (performance-wise) to go
2007 Aug 06
1
Question Possibility.
Hi everyone i am new to the rails and enjoying what this framework has to offer. And I have a job interview comming up as rails developer. I have passed the 1st stage which was theory and I was wondering if you could give me some potential coding exercise that might come in the interview. for instance loops ? related to ORM and anything else you can think of. -- Posted via
2006 Apr 03
2
HABTM migrations
Bad rails day for Matt- In a migration, for a habtm: create_table :teams_users do |t| t.column :team_id, :integer t.column :user_id, :integer end Ok, fine. In a controller (well really a migration script): @user.teams << Team.find( 3 ) And the SQL pumped at my server is: INSERT INTO teams_users (`team_id`, `id`, `user_id`) VALUES (3, 3, 34) Which
2006 Sep 04
5
uninitialized constant BooleanClause
I''ve installed the latest Win32 gem and the acts_as_ferret plugin (i checked out the files and placed them in the vendor/plugins directory). When I try to search I get the following error: uninitialized constant BooleanClause RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Dec 21
12
Ferret and Godaddy.com
Ok, first up, I''m a Rails newbie. My site is hosted on godaddy.com Godaddy has the Ferret GEM installed by default. They do not have acts_as_ferret installed so I can''t use that. I''m trying to follow the tutorial on the Ferret wiki http://ferret.davebalmain.com/trac/wiki It includes all of the code I need, but it doesn''t tell
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 Jul 14
3
Whitespace Issues
I am trying to build up a filtered search using the logic below. bq = Ferret::Search::BooleanQuery.new bq.add_query(Ferret::Search::TermQuery.new(Ferret::Index::Term.new("section",section.downcase!)), Ferret::Search::BooleanClause::Occur::MUST) filter = Ferret::Search::QueryFilter.new(bq) @vobjects = VoObject.find_by_contents(search_input,:filter => filter, :sort
2006 Aug 23
4
Ferret 0.10 and Fields
Hey ... I just tried to convert my code to 0.10 .. But i''m currently not sure how to use fields.. i really like some of the new api.. its leaner and i like the fact that these strange consts are gone (like Ferret::Search::BooleanClause::Occur::MUST) .. I see that you''re now having Ferret::Index::FieldInfo to describe the fields of the index.. thats good.. and i now see that
2006 May 23
1
acts_as_ferret: dynamic index selection
Hi What is the be practice regards setting the index path dynamically? My application needs to switch indexes based on the logged in user, I put the following before_filter into my controller (the Document.index_dir method calculates the user''s index path): before_filter { Document.ferret_configuration[:path] = Document.index_dir } It seems to work, the only rough edge is that the