Displaying 20 results from an estimated 100000 matches similar to: "Advanced search"
2006 Nov 24
2
advanced search with ferret?
Hello,
I''m a novice to ferret, so far only used it via acts_as_ferret. My
question is about a recommended pattern for an ''advanced search'', which
would be searching by all fields of a model and some fields from related
models, with range search, expression search and wildcards. The kind of
search in which a user is presented with a huge form that allows them to
set
2005 Dec 14
2
undefined method `add'' for Ferret::Search::BooleanQuery
Up to now in my ferret development I have been using simple
single-word strings as my search queries. I just now am trying to
increase the complexity of my queries. When I was passing a single
word with no spaces in my index searches, like so:
count = index.search_each(''testing'') do |d, s|
...
end
everything worked fine. But now when I do something like this:
count =
2006 Jul 05
1
search speed eclipsed by retrieval speed
Hi all,
I''ve recently started working with Ferret and I''m getting what seems to
be slow searches. I have about 10000 documents in the index, with
several fields per document, with some fields having an array of several
values that are indexed.
I am using a RAMDirectory to store the index for searching. When doing
testing, I find that searches are reasonable at around .2 to
2007 Apr 06
1
fuzzy-ness to searches
Hi. I didn''t notice if topic has already been discussed, but I was
wondering if there was a way to make ferret match only part of a search
term. My initial thought was some sort of filter, but I''m unsure of
where to begin.
An example in the comments of the acts_as_ferret tutorial at RailsEnvy
(http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial) suggests:
To return the
2007 Jan 05
3
Confused about Search Results
Hi everyone,
I''m pretty new to Lucene and Ferret, so I feel that this is most likely
myself not completely understanding the correct way to do this. I haved
indexed ~2200 text files (of various sizes), and I am now running
searches on the index to get a feel for Lucene and Ferret.
In my first program, which is using Lucene I search for ''influenza'' and
get the
2007 May 24
1
Search scoping in acts_as_ferret
Hello,
I am exploring acts_as_ferret, and the first question that pops to mind
is scoping, i.e. how to restrict searches in various ways.
For example, I have a Post model with title, content, and user_id as
attributes, and I want users to be able to search through their own
posts only.
Normally, of course, I would do
Post.find(:all, :conditions=>["user_id=?", current_user],
2006 Jul 07
4
How to add Asia token analyzer to ferret simply?
Hi,David
Can you give me an example of how to add analyzer to ferret to Asian
languages?
My web application will have to support multi language search,which
means,for example,both Chinese and English will be searched through the
form.
Currently,I have decided to use the simple token principles,which means
that every Chinese character will be a token,although this is not so
well in some
2005 Dec 14
4
Fuzzy search on a phrase
I''m trying to use Ferret to do fuzzy searches. If I use fuzzy search for
just one word, it works fine:
index.search(''name:gogle~0.4'')
However, if I try to use a phrase, it doesn''t work:
index.search(''name:"gogle search engine"~0.4'')
On the other hand, I could do:
index.search(''name:gogle~0.4 AND
2007 Feb 19
2
Ferret seg-faulting during search
Hi,
I''m using ferret and running into troubles with it seg faulting during
searches. The index I''m searching is static and is only updated in an
offline way once every couple weeks.
The segfault isn''t deterministically reproducible, but if I hammer
ferret hard enough I can reliably get it to crash. The problem seems to
have something to do with how memory is shared
2006 Nov 13
1
Stemming, stop words, acts_as_ferret
I''d like to get the following behavior:
1. Stemming. The search is on a database of summaries of California legal
cases. Things like a search for "thermal image" needs to hit "thermal
imaging."
2. Stop words. Searches for "failing to instruct the jury" should come up
with hits on a search for "fail to instruct."
3. Case-insensitive.
What I
2007 Sep 07
4
Ferret DRB - can add/edit index, but can''t search
I''m trying to use the Ferret DRB server to avoid concurrency issues when
using multiple mongrels. I can successfully add and edit data on my
index via the DRB server, however, when I search the index, I get the
following error:
DRb::DRbConnError (DRb::DRbServerNotFound):
/usr/lib/ruby/1.8/drb/drb.rb:1647:in `current_server''
/usr/lib/ruby/1.8/drb/drb.rb:1709:in
2006 Dec 01
1
Effective search when knowing ID
Hi list,
I''m new to ferret and I wonder what is the best way to search if I
know one fields id and want to search on its content.
I have experimented with FilteredQuery but I don''t know if this is
the best way.
Eg.
index = Index::Index.new(:path => ''/tmp/all'')
@dbh = Database.instance.connect
result = @dbh.exec("SELECT pk_fulltext_id, fulltext_text
2008 Mar 04
0
Search memory usage
Hello,
I''m a new user of Ferret, so this might be a silly question. I was
wondering, where can I find details about search memory usage? I read
the O''Reilly booklet + googled but couldn''t find much info. There is
a good explanation of how memory is used at indexing time [bound by,
amongst other things, :max_buffer_memory and :max_buffered_docs]. But
how does it work
2007 Apr 13
5
undefined method `ferret_index'' for xxx:Class
Hi I am trying to use ferret; the regular search works; but when I use
the find_storage_by_contents to highlight the results, I am getting the
above error. Please help
thanks
--
Posted via http://www.ruby-forum.com/.
2007 Apr 17
1
undefined method `each'' for nil:NilClass with Ferret search
Hi All:
For certain key terms I always get this error; I had to rebuild the
indexes then it works for a while then again it is gone.
here is the message
ActionView::TemplateError (undefined method `each'' for nil:NilClass) on
line #4
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_view/base.rb:316:in
`compile_and_render_template''
2006 Oct 24
2
Problem with stop words
I am seeing trouble with searches for ''you'' not returning anything. It
appears that ''you'' is a stop word to the standard analyzer:
require ''rubygems''
require ''ferret''
index = Ferret::I.new(:or_default => false)
index << ''you''
puts index.search(''you'')
returns
2007 May 08
1
acts as ferret javascript.back fails after a search result
hi,
i use ferret in my application and when the user uses the search, i
return some records. the user then clicks on a result to view details.
on the details page, i have a javascript.history.back to return to the
search result. however, i get the expired results page and the user has
to refresh the browser. is there a simple way to solve this?
thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 09
1
Missing fields in search result
Hello ferret users,
I have a problem with ferret dropping stored fields in the index.
Not all fields I want to store get stored, so they can be searched, but
can''t be retrieved in a search.
Index creation:
INDEX = Index::Index.new(:path => ''/home/gregor/wisa/index'',
:analyzer => Analysis::WhiteSpaceAnalyzer.new)
SR =
2007 Feb 15
3
Proximity searching in rdig ferret
Lucene has a syntax "foo bar"~10 for finding foo within 10 words of bar.
Does ferret support this feature? (the ~ is used for fuzzy queries) Does
rdig?
This could be a deal breaker for me ''cos I really need proximity
searches
--
Posted via http://www.ruby-forum.com/.
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