Displaying 20 results from an estimated 1000 matches similar to: "Ferret::StateError while using acts_as_ferret"
2007 Feb 07
0
"Illegal state of TermDocEnum" error
Hi,
I''ve upset Ferret (again). When searching for:
"us military" -bomb
I get the following exception:
State Error occured at <except.c>:79 in xraise
Error occured in index.c:2089 - stde_doc_num
Illegal state of TermDocEnum. You must call #next before you call #doc_num
If I drop the quotes around "us military", or drop "-bomb", it works
fine. I
2006 Oct 16
2
Ferret::QueryParser::QueryParseException
During our last week of Ferret / aaf usage (also our first week of
Ferret / aaf usage), I have received 8 messages stating that our app
encountered a Ferret::QueryParser::QueryParseException. For instance:
A Ferret::QueryParser::QueryParseException occurred in foo#search:
Error occurred in src/q_parser.y:279 - yyerror
couldn''t parse query "com -- 404". Error message
2006 Sep 26
3
concurrency / #search_each problem / segfault
Hello everyone,
I was stress-testing my application (running on Rails via FastCGI) by
letting two concurrent users (not human .. an app called ''siege'')
a) save an Article and b) search for all Articles.
I am searching via
Article.ferret_index.search_each( ..) do |doc_id,score|
doc = index[doc_id]
..
end
and writing via
Article.ferret_index <<
2006 Aug 25
7
disabling automatic indexing in acts_as_ferret
I''d like to be able to enable/disable the automatic indexing of
documents acts_as_ferret does. Something like MyModel.disable_indexing
MyModel.enable_indexing would be perfect. I need this because I do some
indexing that requires visiting the parents of the model objects and my
import method imports the children first, so the information isn''t there
yet. I''d like to
2006 Oct 15
12
Very small scores for search results
Hi Everyone,
I''m using Ferret 0.10.11 with acts_as_ferret from SVN (same results with
0.10.10 and 0.10.9 though).
I''m running into an odd problem where the scores of my top-ranking
search results are ridiculously small - even when the query is one that
should match at least one document with a decent score.
To give an example, I have just the names of 5 businesses indexed
2006 Oct 10
5
oddness when adding to index -
I was having some odd results when working with acts_as_ferret (current
trunk), so I decided to test with the current version of ferret to see
if I encountered the same problem. I did. Here are the details:
installed ferret 0.10.10 on debian sarge with ''sudo gem install ferret''
(btw, same results on OSX)
opened up an irb session:
irb(main):001:0> require
2007 Apr 24
6
Questions about table association while using acts_as_ferret
Hi all,
I''m quite new to ferret and acts_as_ferret and what to see if I can
implement the following requirement using them.
Suppose I have two model classes: Article and Comment. It''s obvious that
one article may have many comments, so this is a one-many relationship.
If I want to add full text search to these models, I''m supposed to use
acts_as_ferret in both of the
2006 Oct 19
2
problem with queries
Hello,
I upgraded to ferret 0.10.10 and I noticed a strange behaviour with queries.
Now the queries return strange results. For example, the two following
queries return the same results:
familynames|firstnames:andre
familynames|firstnames:andr
Another example, the first query returns a correct result + incoherent
results, the second query returns only the correct result:
2006 Aug 17
4
Unit Tests and lib/
Hi *, I have a few modules in lib/ and I use them mostly in my models.
I''d like to add a few unit tests and run them with rake with all
other tests of my app: where do I have to write them ?
TIA,
ngw
--
Nicholas Wieland
nicholas_wieland@yahoo.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 18
3
RJS templates for DOM manipulation
I want to do some DOM manipulation with JavaScript. Specifically I
want to implement zoom in/out in a picture by changing it''s
width/height attributes. Is it possible to do this using RJS or should
I write javascript by hand?
All the examples of RJS I''ve seen write the javascript in the result
of an AJAX remote call. Where are the docs for RJS? All I''ve seen are
blog
2007 Aug 06
4
acts_as_ferret cross model index not updating
Does anyone know how do you get acts_as_ferret to automagically update
non-standard fields?
I''ve followed Rails Envy''s tutorial
(http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial#nonmodel) to
get aaf working across different models. And once the index is built it
searches fine.
In my (main) model, I''ve put:
acts_as_ferret :fields => [ :name,
2006 Oct 25
3
i cant install acts_as_ferret
This is what happens when i try to get acts_as_ferret ...."nothing
much"....
Please help me and excuse me if its really dumb, i''m new to this! thanks
C:\rails\app>gem install ferret
Attempting local installation of ''ferret''
Local gem file not found: ferret*.gem
Attempting remote installation of ''ferret''
Updating Gem source index for:
2007 May 25
1
how to update index with acts_as_ferret?
Hey all,
I have movie has_many :medias and media belongs_to :media
this is how my movie class looks like:
class Movie < ActiveRecord::Base
has_many :medias
acts_as_ferret :fields => [:title,:medias_name]
def medias_name
return self.medias.inject("") {|name,m| name + " " + m.name}
end
end
when I do Movie.find_by_contents("title:bob") it does return a movie
2006 Oct 17
9
Error : End-of-File Error occured at <except.c>
Everything was working fine till last night. This morning I have many
errors.
I am using acts_as_ferret. Last updated around a month ago on linux.
There are two different type of exceptions. I have over 12 exception
emails but these are the two distince types.
First exception:
A EOFError occurred in home#event_info:
End-of-File Error occured at <except.c>:79 in xraise
Error occured in
2006 Oct 07
5
How to proceed with incorporating Ferret?
Hi,
I''ve listened in to this mail list for quite a while now but not
doing anything with Ferret until I was ready to incorporate it. I''ve
used Lucene for years, but not Ferret.
I downloaded and installed the ''bleeding edge'' version (lets call it
0.10.9.1). There appears to be a significant re-working of the API
happening. It all looks good. But there
2007 Apr 06
3
Count frequency of term in a specific document?
Is there any way to count the frequency of specific term in one
document?
I can''t find any method... Do you?
--
Posted via http://www.ruby-forum.com/.
2007 Apr 03
2
How can I count frequency of terms in a document?
Hi, there.
I need some help.
Is there a way to count frequencies of terms in a document on Ferret?
I know that Ferret has IndexReader#terms_docs_for method which counts
all documents.
I need to count frequencies of terms in a specific document.
Some way??
--
Posted via http://www.ruby-forum.com/.
2006 Oct 12
2
Patching ferret problems...
Hi dave, and everyone ;)
I''ve finished my extension to export Index.search(..) loaded results
into json.
Here''s a little benchmark of what i''ve done :
>> Benchmark.realtime { INDEX.search(query, :limit => 1000).hits.each { |x| INDEX[x.doc].load.to_json } }
=> 7.38711595535278
>> Benchmark.realtime { INDEX.search(''type:hardware'',
2007 Jun 07
5
Advise on slowness in bootstrapping?
I am looking at trying to use ferret/aaf to supplement my querying against a
medium and large table with lots of columns. Some facts first:
Ferret 0.11.4
AAF 0.4.0
Ruby 1.8.6
Rails 1.2.3
Medium table:
105,464 rows
168 columns (mostly varchar(20))
11 actual columns indexed in aaf plus
40 virtual columns indexed in aaf (virtual is concat of two physical columns.
e.g. cast_first_name_1 +
2020 Mar 06
3
DCs from 4.10.x to 4.11.x
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens
> Stefan G. Weichinger via samba
> Verzonden: vrijdag 6 maart 2020 10:41
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] DCs from 4.10.x to 4.11.x
>
> Am 06.03.20 um 10:11 schrieb L.P.H. van Belle via samba:
> > After upgrade indexing is done as far i know.