Displaying 9 results from an estimated 9 matches for "get_field_nam".
Did you mean:
get_field_name
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&...
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++?
...STREAMINFO);
if (FLAC__metadata_get_streaminfo(path, md))
{
unsigned nc = 0, i;
FLAC::Metadata::VorbisComment vc (md);
nc = vc.get_num_comments();
for (i = 0; i <= nc; i++)
{
FLAC::Metadata::VorbisComment::Entry e;
e = vc.get_comment(i);
if (!strcmp(e.get_field_name(), "ARTIST"))
flac->artist = e.get_field_value();
else if (!strcmp(e.get_field_name(), "TITLE"))
flac->title = e.get_field_value();
}
return true;
}
else
return false;
}
When I run this code, I get a SEGV during get_comment beca...
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
...event = 0x1400
__func__ = "event_unref"
#1 0x000000ccbcdb0151 in driver_sqlite_exec (_db=0xccf6c3d438, query=0xccbcdb2fcd "BEGIN TRANSACTION") at driver-sqlite.c:186
db = 0xccf6c3d438
result = {v = {free = 0x0, next_row = 0x0, get_fields_count = 0x0, get_field_name = 0x0, find_field = 0x0, get_field_value = 0x0, get_field_value_binary = 0x0, find_field_value = 0x0, get_values = 0x0, get_error = 0x0,
more = 0x0}, refcount = 0, db = 0xccf6c3d438, fields = 0x0, map_size = 0, map = 0x0, fetch_dest = 0x0, event = 0xccf6c3e000, fetch_dest_size = 0, er...