search for: get_field_names

Displaying 9 results from an estimated 9 matches for "get_field_names".

2006 Jun 30
4
Substantial problems with write locking (and other flux)
I am having some great trouble keeping my Ferret indexer for ActiveRecord working. First the get_field_names disappears (now back), then I am collectig some major trouble with locking. Same thing here: exception 6 not handled: Could not obtain write lock when trying to write index A snippet like this just deadlocks retrying endlessly: begin @ferret_index << doc @ferret_index.flush()...
2006 May 05
1
Is there any working way to search multiple indexes?
...t to search across multiple indexes. I tried a MultiSearcher, but I can''t pass a string for the search query ms.search "iraq" TypeError: wrong argument type String (expected Data) So I tried creating a QueryParser to pass, but I can''t get the fields from the reader r.get_field_names NoMethodError: undefined method `get_field_names'' for #<Ferret::Index::IndexReader:0x406059dc> and even if I could, I cant pass any fields to the QueryParser qp.fields = ["title"] NoMethodError: undefined method `fields='' for #<Ferret::QueryParser:0x407db070&gt...
2005 Nov 17
6
lock problems from concurrent processes.
Hi! First, thanks a LOT for ferret. The API and documentation is great. I''m trying to integrate ferret into a RoR app (DamageControl) and have run into a problem with locks. DamageControl consists of two processes that start up and run in parallel. The first one is the webapp (which is just a plain RoR app). The second is a daemon process that runs in the background. The daemon process
2004 Sep 10
3
reading vorbis comments with FLAC++?
Well, I'm quite frankly stumped. I'm writing a program that recurses into directories and reads (among others) FLAC files and should be able to read the vorbis comments ARTIST and TITLE from the file. A while back, I was popen()ing to metaflac, because I didn't want to mess with libFLAC. But now, it's the weekend, so I can mess around with this. Here's the code in question:
2005 Dec 02
43
ANN: acts_as_ferret
...def self.reloadable?; false end # Finds instances by file contents. def find_by_contents(query, options = {}) index_searcher ||= Search::IndexSearcher.new(INDEX_DIR) query_parser ||= QueryParser.new(index_searcher.reader.get_field_names.to_a) query = query_parser.parse(query) result = [] index_searcher.search_each(query) do |doc, score| id = index_searcher.reader.get_document(doc)["id"] res = self.find(id)...
2005 Dec 02
43
ANN: acts_as_ferret
...def self.reloadable?; false end # Finds instances by file contents. def find_by_contents(query, options = {}) index_searcher ||= Search::IndexSearcher.new(INDEX_DIR) query_parser ||= QueryParser.new(index_searcher.reader.get_field_names.to_a) query = query_parser.parse(query) result = [] index_searcher.search_each(query) do |doc, score| id = index_searcher.reader.get_document(doc)["id"] res = self.find(id)...
2004 Sep 10
4
reading vorbis comments with FLAC++?
Hi me (2x - Haberman and Coalson), On Tue, Nov 11, 2003 at 03:51:42PM -0800, Josh Coalson wrote: > The C++ interface is a little simpler: [code follows] OK. Well, I found the C interface a little bit easier to understand, so I ended up using that instead of continuing to try to figure out the C++ interface. The one problem I have is that the values in block->data. vorbis_comment.comments
2019 Feb 03
2
Crash when using dict quotas with sqlite database
Hello John, I tried (until now) to get a valuable backtrace, but it seems that GDB can't resolve all symbols. This is what systemd-coredump is giving me: Stack trace of thread 22359: #0? 0x0000638167eaf062 event_unref (libdovecot.so.0) #1? 0x000004a58a212151 n/a (dict) #2? 0x000004a58a211333 n/a (dict) #3? 0x000004a58a20514d n/a (dict) #4? 0x0000638167e556f2 dict_transaction_begin
2019 Feb 03
2
Crash when using dict quotas with sqlite database
Hello Aki, Arch Linux doesn't have install-able debug symbols for Dovecot. That's why I just compiled the package for myself with enabled debug symbols (by editing the makepkg.conf). I've attached the output from gdb's bt full. - Marcel Am 03.02.2019 um 14:45 schrieb Aki Tuomi: > You need to install debug symbols. Not sure how this is done in arch > linux though. >