Displaying 20 results from an estimated 50000 matches similar to: "Sorting with multi-search"
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
2007 Aug 18
0
Problem with multi-search
Hi all,
I have indexes on 2 models
e.g Message model
acts_as_ferret(:store_class_name => true,
:fields =>{:message => {:store => :compressed},
:felix_user_id => {:index
=>:untokenized_omit_norms,:store => :no})
and the chat model acts_as_ferret(:store_class_name => true,
:fields => {:name => {:store =>
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
2007 Jul 30
4
indexing only the changed values
Hi all,
i have model A which has a field indexed from model B. model A belongs
to model B.
So whenever i insert a row in model ''A'', a query is fired to the field from
model ''B'' even though the data was not changed for the field in model B.
Can i somehow avoid these extra queries,or rather query the data and index
it,only if the data has been changed>?
e.g
2007 Jul 09
2
Problems with sorting of search results
Hey ..
maybe someone got a hint for me .. I''ve got a
problem with the sorting of search results ..
strangely enough, the sorting is fine on my mac
development environment, but not okay on my
linux live system.
I got a field in my index called hierarchy. It
contains long strings like:
Living together > Family > Brother-In-Law
Living together > Family > Marriage > Wife
2006 Apr 21
3
Sorting Search results
I tried sorting the search results in Ferret::Index::Index#search and
what I found was that the sort is applied not to the whole search but to
the returned results.
Suppose I have these results:
Text - Num
foo - 2
bar - 3
far - 4
boo - 1
If I limit the search to the first two and sort by num I get:
foo - 2
bar - 3
while I think the natural behaviour would be:
boo - 1
foo - 2
Is this
2008 Apr 20
1
Picolena, a ferret+rails documents search engine
Hi everybody!
I am proud to present you a small project I have been working on for a
while:
Picolena, a documents search engine written in Rails.
( http://picolena.devjavu.com/ ).
It obviously uses Ferret for indexing and searching, and adds some plain
text extractors in order to index OOffice.org, pdf and MS Office
documents (and some others as well).
Everything is packed in a gem (gem install
2007 Dec 19
3
multi-model search best practices
Hi folks.
If I am indexing ModelA and ModelB and I want to search both of them,
I usually just pick one arbitrarily and use it for #multi_search.
Is there a slicker pattern, regarding from which model to invoke
#multi_search? Can it be invoked directly from the Ferret library?
Has anyone put together some sort of "dummy" search class?
Thanks for any ideas.
John
2007 Apr 01
0
Best Practices for Searching Multiple Indexes -- multi reader or combine?
Back in September (http://rubyforge.org/pipermail/ferret-talk/2006-
September/001210.html) Dave said:
"Another use-case might be to have multiple indexes to speed up
indexing. If for example you are scraping websites it is a very good
idea to have multiple scraping processes. The best way to do this is
to have each process indexing to its own index. You could then search
all indexes
2006 May 05
3
Sorting by score
I''m trying to sort by score but it seems like SortField::SortType::SCORE
is 0 instead of a SortType. A test case is attached. Without the C
extensions the test passes, so I guess it''s a bug in them. Should I be
using it without the extensions? Because if that''s the case I have some
other bugs to report.
Greetings,
Pedro C?rte-Real
-------------- next part
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
2006 May 05
1
Is there any working way to search multiple indexes?
I''m running from the trunk, and hitting road blocks no matter which way I
attempt
to search across multiple indexes.
I tried a MultiSearcher, but I can''t pass a string for the search query
ms.search "iraq"
TypeError: wrong argument type String (expected Data)
So I tried creating a QueryParser to pass, but I can''t get the fields from
the reader
2008 Jan 29
0
Ferret-talk Digest, Vol 27, Issue 7
Thanks for the response Jens.
Indeed I am sorting by something other than relevancy, so that would
explain it. Optimized, it''s extremely fast and handles a good load,
but new records kill it until I optimize.
I haven''t tried :merge_factor as I wasn''t aware of it. I''m not sure
it will help given the above.
Regarding the re-index locking code,
2008 Jun 06
1
Making sorting case insensitive
Hello,
I''ve been trying to make sorting in ferret case insensitive without
any luck. I''ve been searching the mailing list, the docs and nothing.
Apparently setting the type option for the sort to string should do
it, but it doesn''t.
Does anyone know how to achieve this?
Thanks.
--
Efr?n D?az
http://www.efrendiaz.com
2007 Mar 31
3
Sorting issues, can anyone help me?
I have this model:
class Post < ActiveRecord::Base
acts_as_ferret :fields => { :title => {:boost => 2},
:description => {},
:url => {},
:rank_sort => {:index =>
:untokenized_omit_norms, :term_vector => :no},
2008 Jan 03
0
Problem (with fix?) for passing :multi => [ ]
Max, seems to me that your code would help to make things more robust,
if it''s a public API then it should stand up to a little abuse in ways
not intended. maybe more of an enhancement than a bug fix, but a fix
just the same.
Max Williams wrote:
> I''m using acts_as_ferret, passing through multiple classes using :multi
> and also some conditions. The way i''m
2006 Aug 20
1
sorting with booleans
Hi i have a column in my ferret model called sponsored. It is a boolean
and i want to order the results by sponsored and date registered. At the
moment it is not managing to sort the booleans.
I tried declaring this in my model but it seems to have had no effect.
def false.<=>(o) o ? -1 : 0 end
def true.<=>(o) !o ? 1 : 0 end
I''m using the acts_as_ferret plugin.
below
2006 Oct 02
6
Strange Sorting Issues
Hi there,
I''m having some strange sorting stuff goign on. Here''s my search method:
sort_fields = []
sort_fields << Ferret::Search::SortField.new("name",
:reverse => :false)
@results = Listing.find_by_contents @search_criteria, :limit => :all,
:sort => sort_fields
page = (params[:page] ||= 1).to_i
items_per_page = 9
offset = (page - 1) *
2006 Jun 28
2
Problem searching with special characters
I''m using Ferret on a Swedish website and I get some unexpected
behaviour on searches containing the swedish charchters ???.
An exampel, if I index a string "Varf?r fungerar det inte" ("Why doesnt
it work" in swedish) and search for "f?r" I''ll get one (1) match. The
expected behaviour would be no matches since ''f?r'' is part of
2008 Mar 01
3
Possible bug when creating a Ferret::Search::Sort object?
I may have run across a bug in Ferret: if throws a segmentation fault
when I try to create a Sort object using the default fields (SCORE and
DOC_ID), but setting reverse to true.
Here''s the minimal example:
#!/usr/bin/env ruby
require ''rubygems''
require ''ferret''
Ferret::Search::Sort.new
Ferret::Search::Sort.new(
[