Displaying 20 results from an estimated 800 matches similar to: "highlighting with find_by_contents"
2006 Nov 06
4
Updating the index.
I''ve been reading through the lucene, ferret, and aaf docs, but I''m
still a bit new at full text indexing.
When I create a new instance of an indexed model, and save it, it
doesn''t show up in searches. Should I have to update the index of the
entire model (which works) before it will return in queries?
Britt
2006 Feb 21
2
Managing Database Alter Scripts
I just posed this question to #subversion, with no reply. Any thoughts
here?
I''m trying to decide how to manage database changes w/ subversion.
I''ve got a large number of production checkouts of a branch (actually,
multiple branches). Of course I have a base script to create the schema,
and this is updated of course when new fields are added to the system.
When a new field
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
I started using robotcoop''s CachedModel class in my project but have encountered problems when using it with the acts_as_ferret plugin. It seems it doesn''t index everything in my STI model, also if I do a search from my base STI class I get a result count but no results. If I run the same search from one of the children STI models I get the appropriate results (if the information
2006 Dec 28
13
Sorting/Ordering Search Results
Hello All,
I am having an issue with AAF and sorting results of a search. Right
now, I have results being split onto pages of 10. The results are being
sorted alphabetically, but not across multiple pages - it''s just sorting
the 10 it pulls down on each page. I noticed another post from April
regarding this same issue (http://www.ruby-forum.com/topic/62993#66934)
where the issue was
2007 Feb 11
2
rails cache problems
I''m having issues with page caching in Rails 1.1.6 where it''s not
always putting a .html extension at the end of the cached files (so I
end up with files like 122.21 instead of 122.21.html). Then the next
time it is served up via the web server (mongrel or apache) Firefox
treats it as a binary file. I can''t find a fix for this so I was
hoping there would be a
2006 Oct 16
8
acts_as_ferret: can i specify a search on 1 field as suppose
to the ones i defined in my model? for example if in the model i specify
acts_as_ferret to index only column 1, 2, and 3 in my table....how can i
perform a search just for column 1 if need be.
for example, id like to give the user the ability to just search on
title name vs description, etc...
thanks!
--
Posted via http://www.ruby-forum.com/.
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 Nov 21
5
acts_as_ferret with STI models
Can acts_as_ferret search only one of the inherit models in the
hierarchy of STI models? Say you have Contents, with types articles and
comments. I know that you do Contents.find_by_contents, but can you
also create indexed for Comment and Articles?
Thanks for you help
Miguel
--
Posted via http://www.ruby-forum.com/.
2006 Nov 30
2
non-searchable columns, normalization
Hello. I am new to Ferret. I am using it through Acts as Ferret.
Let''s say I have such a table, and all columns are indexed using the
default behavior provided by acts_as_ferret:
ARTICLES
-id
-year
-body
[1] A typical request will be "select id from articles where KEYWORDS
% body". Will id be indexed for fulltext searching? clearly the
fulltext index on id will never be
2005 Oct 21
3
Windows interacting with SAMBA share
Hi,
My company has a Samba [3.0] share on a Debian Linux 3.0 [Kernel 2.6]
machine and we are trying to copy a large file [>2GB] from a Windows
machine to the Samba share. When we try to do this, it only copies 2GB
of the information. We were previously having a similar issue when
transfering a large file [>2GB] from Linux to a Windows share [mounted
as smbfs], but fixed that with the
2002 Apr 04
4
[Bug 204] Authentication fails when username contains an at-sign
http://bugzilla.mindrot.org/show_bug.cgi?id=204
------- Additional Comments From britt at yenne.net 2002-04-04 18:49 -------
Okay, commenting out those lines definitely solved the problem. The pty issue
happened because I didn't configure with PAM, and evidently Ensim has done
something sneaky there.
So, definitely a problem.
-britt
------- You are receiving this mail because:
2007 May 18
1
find_by_contents + ''conditions'' returning incorrect results
I''ve read the other threads like this one
(http://www.ruby-forum.com/topic/78841) but I''m not sure what I''m doing
wrong.
Scenario: I need a full text search on financial institutions and to
constrain that list by state (=) or states (IN). My lenders model
includes a name and a state, among other fields. In my lenders model:
acts_as_ferret :fields => [:name]
Running
2006 Nov 27
2
find_conditions in acts_as_ferret find_by_contents
Hi all,
Every time I try to add options for the find_conditions argument of
find_by_contents I get the following:
a = AnnotatedLink.find_by_contents(''test'', {}, {:conditions =>
''category_id IS NOT NULL''})
>> NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while
2006 Nov 28
1
find_by_contents never finds anything on my model
Hi,
Let me preface by saying I am very new to ferret and aaf.
Anyhow, I''m using the aaf plugin on a model named Book. This model isnt
a typical rails model in the fact that it doesnt have an "id" column as
its primary key but instead has a string column named ISBN that is used
as the primary key. When I try to search for anything in the model
using find_by_contents it never
2007 Aug 23
3
AAF: find_by_contents on AR Association Total Hits
I seem to be getting some behaviour thats unexpected (for me anyway)
when using find_by_contents on an ActiveRecord has_many association. The
results that are returned are only the records that belong to the model
returned, but the total_hits that are being returned appear to be for
the whole table.
e.g.
class Book < AR::Base
has_many :pages
end
class Page < AR::Base
belongs_to :book
2006 Aug 29
7
uninitialized constant UNTOKENIZED
I''m getting "uninitialized constant UNTOKENIZED" when I try to do
something like the following:
class Url < ActiveRecord::Base
acts_as_ferret :fields => {''name'' => {},
''description'' => {},
''url'' => {:index =>
Ferret::Document::Field::Index::UNTOKENIZED},
2007 Oct 15
0
Inconsistent results between multi_search and find_by_contents (is "other" a reserved word?)
I have a Computer type and I''m trying to query agianst it. When I do
the query with find_by_contents, I get correct results. However, when
I query using multi_search, I get incorrect results.
I''m using the most recent version of Acts As Ferret and Ferret
This returns the correct results:
Computer.find_by_contents( "device_type:laptop AND os_type:other" )
This
2006 Aug 17
1
find_by_contents fails with :include option
find_by_contents will fail if you specify :include in the find_options
parameter. The problem is on line 313:
313: conditions = [ "id in (?)", id_array ]
314: # combine our conditions with those given by user, if any
315: if find_options[:conditions]
316: cust_opts = find_options[:conditions].dup
317: conditions.first << " and " << cust_opts.shift
318:
2007 Mar 18
3
"ö" causes find_by_contents not to return
I''ve installed ferret 0.10.9 together with the latest acts_as_ferret
using Windows XP and indexed a location database (geonames.org) with
Location.rebuild_index. The data is in utf-8.
Now calling Location.find_by_contents "?" does not return a result,
causes a lot of CPU load, and finally exits with an error "index.rb:702:
in ''parse'': failed to allocate
2008 Jun 28
19
Stopping example execution?
Hello, I''m wondering If I am missing something here when creating an example that sets an expecation at the top or beginning of an action but requires you to stub / mock everything that follows.
Example:
I want to test that a certain controller is running a before_filter...thats easy:
- controller.should_receive(:require_user)
- do_get
But now i''ve got to mock / stub