Displaying 20 results from an estimated 33 matches for "find_id_by_cont".
2007 Jul 02
8
Strange intermittent no search results problem
Hello,
First the specs:
ruby 1.8.6, rails 1.2.3, ferret 0.11.4, mongrel 1.0.1, mongrel_cluster 0.2.1
And the model''s aaf config:
# Ferret search engine
acts_as_ferret({:fields => {:name => {:boost => 10},
:summary => {:boost => 2},
:body => {:boost => 1, :store =>
:no},
2007 Apr 08
10
[ActsAsFerret] Fatal failed to allocate memory in DRb
I''m using DRb with edge [AAF] and my server is really fast reaching 3GB+
of memory and soon it will crash with this message:
[FATAL] failed to allocate memory
Now its like this:
10542 bbs 2 59 0 3649M 3647M sleep 1:27 0.10% runner
Anybody has any ideas on this?
--
Posted via http://www.ruby-forum.com/.
2007 Mar 14
5
aaf batch_size limits indexing on mssql to 1000 records
hi!
after wondering why i can''t find alot of records i eventually found the
problem in the sqlserver_adapters implementation of "add_limit_offset!".
the problem is when using MSSQL with the sqlserver_adapter paging will
only work when at least one column is defined in ":order".
for example i was indexing a table with 2912 records, the generated sql
for the batches
2006 Dec 07
5
Search Multiple Models
...have individual searches within each section of the site working just
fine, but I want to have a gloabl search that searches across all of
them at the same time and returns the results ordered by score.
Here''s how far I am now...
def search
query = params[:query]
articles = Article.find_id_by_contents(query)
blogs = Blog.find_id_by_contents(query)
tracks = MusicTrack.find_id_by_contents(query)
files = MediaFile.find_id_by_contents(query)
matches = (articles + blogs + tracks + files).sort_by {|match|
match[:score] }
results = matches.collect {|match| :score => match[:score],...
2007 Apr 18
1
stack level too deep for method missing when using drb
...fine normally. Now I want to hook up
the backgroundrb server. However whenever I try to do a search, I get
this error:
(druby://localhost:9010) /usr/local/lib/ruby/1.8/drb/drb.rb:1075:in
`method_missing''
(druby://localhost:9010)
./vendor/plugins/acts_as_ferret/lib/remote_index.rb:20:in
`find_id_by_contents''
(druby://localhost:9010)
./vendor/plugins/acts_as_ferret/lib/ferret_server.rb:68:in
`method_missing''
(druby://localhost:9010) /usr/local/lib/ruby/1.8/drb/drb.rb:1078:in
`method_missing''
(druby://localhost:9010)
./vendor/plugins/acts_as_ferret/lib/remote_index.rb:20:i...
2007 Jul 31
5
Group by clause
Hi
Does acts_as_ferret support a :group clause?
For e.g any rails options like :select or :group etc? or is it that it
supports only few of such options?Like it supports :include
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/ferret-talk/attachments/20070731/a74fb666/attachment.html
2006 Oct 25
1
problem with TermQuery
This might be more of a Lucene question, but I can''t figure it out. How
come this works:
Item.find_id_by_contents("name:Bob")
but this returns no results:
Item.find_id_by_contents(Ferret::Search::TermQuery.new(:name, "Bob"))
Thanks in advance!
-Jon
--
Posted via http://www.ruby-forum.com/.
2007 Feb 22
5
Combine ferret with database
Hello list,
I wonder if someone has some tips on joining a ferret search with a
database.
I have a rails project using a postgresql backend and I would like to
utilize the superb performance of ferret for fulltext searching.
The problem is that I have to joined the result with the database as
I have some user access rights to different documents to take into
account.
Does anyone have
2006 Apr 05
5
duplicate search results
i''m using Ferret 0.9.0 with acts_as_ferret (the one from svn.jkraemer.net), and
i''m getting duplicate results, as described in this thread:
http://rubyforge.org/pipermail/ferret-talk/2005-December/000048.html
is there a way to configure the indexes created by acts_as_ferret to use :key =>
:id, as described in that thread? i''ve poked around in the code, and had
2008 Jan 09
5
Parallel indexing doesn''t work?
Hi,
I''m trying to get parallelized ferret indexing working for my AAF
indices, based on the example in the O''Reilly Ferret shortcut.
However, the resulting indices after merging seem to have no actual
documents.
I went and made minimal changes to the example in the Ferret shortcut
pdf, and indeed can''t get that to work either. I''d appreciate any help
2007 Sep 11
2
How to search with range when I am using AAF
...=> {}
}
def start_date
self.start_datetime.strftime("%Y%m%d")
end
Now that I am strong start_date in YYYYMMDD format, I want to search for
all event in between 20070506 and 20070809
What will my query look like when I am using aaf. This one doesn''t work
Event.find_id_by_contents("start_date:[20070506 20070809])
I know how it works with native Ferret but can''t seem to integrate with
aaf.
--
Posted via http://www.ruby-forum.com/.
2007 Aug 08
1
Filtering out low scoring matches with acts_as_ferret (fwd)
Hi all,
I''m using fuzzy~ queries which can return very poor matches. What is the
most elegant way to filter out scores below some threshold? I know that I
can do my own thing with find_id_by_contents but I''d like to filter out
less relevant results at a lower level so that I can use :limit/:offset
for pagination and all that.
What am I missing?
Thanks,
Casey
2007 Jun 25
1
hello, is there a way to exclude duplicates of a field?
hi,
this is what i am trying to accomplish
Post.find_by_contents("artist:#{session[:srchstring]}*")
this returns to me all artist with the first letter of say ''n'' is there
a way to not repeat valuse of the same artist?
thank you so much for the help./
--
Posted via http://www.ruby-forum.com/.
2006 Oct 10
2
Ferret returning too many results
...oth the source and the forums, and having trouble
finding what could be causing this. any help greatly apreciated.
relevant code from our rails app:
# search_array hold an array of the model we want to search
search_array.each do |asset|
a = Object.const_get(asset)
assets << (a.find_id_by_contents q, :limit => num_docs, :offset =>
first_doc)
end
assets.flatten!
return assets
--
Posted via http://www.ruby-forum.com/.
2007 Jan 11
1
Ferret Locking issues
...39;'
/home/user/.gems/gems/ferret-0.10.13/lib/ferret/index.rb:383:in `[]''
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize''
/home/user/.gems/gems/ferret-0.10.13/lib/ferret/index.rb:382:in `[]''
[RAILS_ROOT]/vendor/plugins/acts_as_ferret/lib/class_methods.rb:413:in
`find_id_by_contents''
/home/user/.gems/gems/ferret-0.10.13/lib/ferret/index.rb:371:in
`search_each''
/home/user/.gems/gems/ferret-0.10.13/lib/ferret/index.rb:370:in
`search_each''
/usr/lib/ruby/1.8/monitor.rb:238:in `synchronize''
/home/user/.gems/gems/ferret-0.10.13/lib/ferret/...
2007 Jul 24
4
Act as Ferret supports Conditional search?
Hi all,
Im a newbie to ferret.I have installed the act_as_ferret gem and i
actually want to search for some content in the model,but per user.
My model has data,user_id.So within the data column i have to serach for a
word if it exists for a given user.
So can i achieve that ? presently i know that it just searches the "data"
column irrespective of the user given.
Can someone help me
2006 Aug 10
1
Indexing weirdness
...t
unfortunately any search then resulted in:
: Error occured at <fs_store.c>:318
Error: exception 2 not handled: Couldn''t open the file to read
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:284:in `search''
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:284:in
`find_id_by_contents''
vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:246:in
`find_by_contents''
#{RAILS_ROOT}/app/controllers/search_controller.rb:55:in `search''
I noticed that the index/development/[ModelName] folder was being
recreated, but empty.
Luckily I managed to get the re...
2007 Apr 01
2
strange behavior after switching to DRb server
...r.rb:45:in `start''
(druby://localhost:9010) (eval):55
(druby://localhost:9010) script/runner:3:in `eval''
(druby://localhost:9010) ./vendor/rails/railties/lib/commands/
runner.rb:45
(druby://localhost:9010) script/runner:3
vendor/plugins/acts_as_ferret/lib/remote_index.rb:20:in
`find_id_by_contents''
vendor/plugins/acts_as_ferret/lib/class_methods.rb:82:in
`find_id_by_contents''
vendor/plugins/acts_as_ferret/lib/class_methods.rb:134:in
`ar_find_by_contents''
vendor/plugins/acts_as_ferret/lib/class_methods.rb:128:in
`find_records_lazy_or_not''
vendor/p...
2006 Dec 01
2
Ferret on Apache Installation
.../usr/lib/ruby/gems/1.8/gems/ferret-0.10.13/lib/ferret/index.rb:383:in
`[]''
/usr/lib/ruby/1.8/monitor.rb:229:in `synchronize''
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.13/lib/ferret/index.rb:382:in
`[]''
#{RAILS_ROOT}/vendor/plugins/acts_as_ferret/lib/class_methods.rb:386:in
`find_id_by_contents''
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.13/lib/ferret/index.rb:371:in
`search_each''
/usr/lib/ruby/gems/1.8/gems/ferret-0.10.13/lib/ferret/index.rb:370:in
`search_each''
/usr/lib/ruby/1.8/monitor.rb:229:in `synchronize''
/usr/lib/ruby/gems/1.8/gems/ferret-0.10....
2007 Mar 28
7
Newbie problem on production server
...ferret-0.11.3/lib/ferret/index.rb:658:in
`process_query''
/usr/local/lib/ruby/1.8/monitor.rb:238:in `synchronize''
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.11.3/lib/ferret/index.rb:657:in
`process_query''
/vendor/plugins/acts_as_ferret/lib/local_index.rb:87:in
`find_id_by_contents''
/vendor/plugins/acts_as_ferret/lib/class_methods.rb:82:in
`find_id_by_contents''
/vendor/plugins/acts_as_ferret/lib/class_methods.rb:134:in
`ar_find_by_contents''
/vendor/plugins/acts_as_ferret/lib/class_methods.rb:128:in
`find_records_lazy_or_not''...