Displaying 20 results from an estimated 2000 matches similar to: "find conditions in more_like_this"
2007 May 09
6
more_like_this
Hi,
I''m using acts_as_ferret in my rails application and I''d like to use
more_like_this to retrieve some ''similar'' item suggestions. I have a
class ''items'' which has a status field and I need to retrieve items that
only have one of the two possible statuses.
Looking at the more_like_this method indicates it supports an
:append_to_query
2007 Jul 17
2
#more_like_this : strange behaviour
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I have the following Problem:
I created a fairly simple sample project to try out acts_as_ferret and
present the results.
The test set is relatively easy: I have extracts from 6
Wikipedia-Articles about several Topics, which are copied into a model
that has two fields: title and text. This works quite well, until I try
to use #more_like_this,
2006 Dec 01
2
more_like_this not working?
Hi all,
using ferret 0.10.13 and aaf trunk, i cannot get more_like_this to work.
I read other posts on this forum related to that, but that did not solve
it.
I have a model Question with a field question_text. I do:
-----------------------------------------------
>> q = Question.find(:first)
>> q.more_like_this
NoMethodError: You have a nil object when you didn''t expect
2007 Jan 11
5
ASF: cannot determine document number from primary key
I''m getting this exception from acts_as_ferret:
A RuntimeError occurred in search#similar:
cannot determine document number from primary key:
#<MyClass:0x9feba20>
[RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/instance_methods.rb:132:in
`document_number''
As a result of this call:
object.more_like_this
The relevant backtrace:
2006 Sep 09
2
acts_as_ferret 0.3.0
Hi,
just wanted to officially announce the release of acts_as_Ferret 0.3.0.
As you see, I''m trying to catch up with Ferret''s version numbers ;-)
svn://projects.jkraemer.net/acts_as_ferret/tags/0.3.0/
or
svn://projects.jkraemer.net/acts_as_ferret/tags/stable/
This release is now tagged stable, so in case anybody has used the old
stable release via an svn external, please
2006 Aug 24
2
acts_as_ferret for Ferret 0.10
Hi all,
the current acts_as_ferret trunk is now ported to Ferret 0.10.
Get it while it''s hot at
svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin
Nearly everything works, besides this:
- all queries are ORed (no way to tell the QueryParser to build AND
queries by default)
- more_like_this is broken
I''m working with Dave to fix these things soon. The last Ferret 0.9.x
2006 Oct 05
4
search results autocompletion
Dear list,
I ''m using a text input field with autocompletion . The suggestions come
from a ferret index which is created by getting all the terms belonging to
other indices. Here is the code:
class Suggestion
attr_accessor :term
def self.index(create)
[Person, Project, Orgunit].each{|kl|
terms = self.all_terms(kl)
terms.each{|term|
suggestion =
2007 Nov 05
1
Segmentation Fault in more_like_this.rb
I''ve been seeing some core dumps coming from ferret_server:
acts_as_ferret/lib/more_like_this.rb:170: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-freebsd6]
I''m running the latest build of ferret (0.11.4-rc5). Line 170 in
more_like_this.rb is:
freq = reader.doc_freq(field_name, word)
which is calling into the ferret C code (if I''m reading this
2007 Mar 06
3
aaf excluding certain db records from indexing
hi!
short question about aaf:
is there a builtin functionality in acts_as_ferret to exclude records
from being indexed when for example a column "is_deleted" /
"is_disabled" / "dont_index" has a certain value?
regards
neongrau
--
Posted via http://www.ruby-forum.com/.
2007 Oct 04
2
Offline indexing issues
If I disable ferret in my environment file and then run a cron job
every hour to index the records that have been added/changed, do I
enable Ferret just in the script that does the hourly indexing? Or do
I somehow need to tell the process that runs the Ferret DRB server
that it should start writing to the index again? Thanks in advance.
Erik
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 +
2007 Mar 06
1
in acts_as_ferret, excluding records from rebuild_index
Is there any way for the automatic ''rebuild_index'' of ''acts_as_ferret''
from exclude certain records from being included in the index?
--
Posted via http://www.ruby-forum.com/.
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
2007 Mar 13
6
Acts_as_ferret and auto-flush
Hi,
I''m using acts_as_ferret in with a mongrel and I'' m getting locking
errors that after a while result in a corrupt database.
I know about the problem with different processes writing to the
index but I haven''t been able to get the DRB server working properly
yet. I read on this list that another solution is to set :auto_flush
to true but I''m not
2007 Apr 10
1
prevent index auto update
Hi,
I have a has_many association between Book and Page.
I have acts_as_ferret running on only the Book model. However, when I
update the a page, it calls the auto update index on the Book model as
well just in case any of the ferret fields were changed.
How can I stop acts_as_ferret from auto updating the index on its own,
especially when nothing changes?
--
Posted via
2006 Jun 26
2
DRY up selects in view
Here''s what I''ve got:
<% @fields.each do |field_name| %>
<tr>
<td>
<%= field_name.humanize %>
</td>
<td>
<% unless field_name =~ /_id$/ %>
<%= form.text_field field_name, :size => 40 %>
<% else %>
<%= select(:vendor,
field_name,
State.find(:all, :order
2006 May 18
2
acts_as_ferret 0.2.1
The svn repository for acts_as_ferret has just been tagged with version
0.2.1. This is the first version of aaf to support the 0.9.x branch of
Ferret.
See http://projects.jkraemer.net/acts_as_ferret/wiki
*Features*
* High speed full text search across the contents of any Rails model
class, without any hassles. The index will be kept up to date
automagically while you work with your Rails
2007 May 03
2
Custom analyzer weirdness with 0.11.3
Hi-
I was previously using 0.11.4, and I wrote my own analyzer. Everything
worked fine.
When I took the system to production, 0.11.4 starting failing updating
the index, complaining that files were missing. The failure always
happened on the same model document, and was completely reproducible.
This failure looked a lot like the one described at
http://www.ruby-forum.com/topic/104145.
I
2006 Aug 26
7
Erratic behavior with ferret 0.95 and acts_as_ferret
I am getting this issue also... Does anyone know what this is? When will
Acts as Ferret be available for v10?
Thanks for your help in desperation!
Caspar wrote:
> Okay previous post related to me trying to fix this problem with an
> upgrade to ferret 0.10.0 but acts as ferret is obviously not compatible
> with this new version of ferret.
> My app is about to go into production and
2008 Jan 10
2
Error on manual indexing
I''m having some problems with getting the drb server to work correctly
on my production server. As a workaround I tried disabling automatic
indexing and have a cron job manually update the index every hour or so.
I disabled the automatic indexing with:
def ferret_enabled?
false
end
But whenever I try Page.rebuild_index
I get a ''wrong number of arguments''