Displaying 20 results from an estimated 2000 matches similar to: "Balancing relevancy and recentness"
2006 Jan 14
1
Adjusting scores
One other mod to Ferret I''ve found useful is to add
the following line at the top of the each_hit() block
in Search::IndexSearcher.search:
score = yield( doc, score ) if block_given?
This allows a block attached to a search call to adjust
document scores before documents are sorted, based on
some (possibly dynamic) numerical factors associated
with the document, e.g. the number
2006 Jul 04
3
Recalculating the score
Hey ..
I''m using ferret to index various objects and i''m create a
Ferret::Document for each of these objects. Indexing and searching is
working fine.
Each of these Ferret::Documents has a ''relevance'' field, storing an
integer, how relevant this object is for the search. The ''relevance'' is
in the range of 1..10
Now i would like to
2006 Oct 11
6
Indexing problem 10.9/10.10
Sorry if this is a repost- I wasn''t sure if the www.ruby-forum.com
list works for postings.
I''ve been having trouble with indexing a large amount of documents(2.4M).
Essentially, I have one process that is following the tutorial
dumping documents to an index stored on the file system. If I open the
index with another process, and run the size() method it is stuck at
a number
2005 Nov 17
6
lock problems from concurrent processes.
Hi!
First, thanks a LOT for ferret. The API and documentation is great.
I''m trying to integrate ferret into a RoR app (DamageControl) and have
run into a problem with locks.
DamageControl consists of two processes that start up and run in
parallel. The first one is the webapp (which
is just a plain RoR app). The second is a daemon process that runs in
the background.
The daemon process
2007 Sep 04
5
Xml templates...
I was looking in using an xml_builder template to do something like:
blee.xerb
xml.blees do
<% for blee in @blees %>
xml.blee = blee.name
<% end %>
end
It looks like the xml_builder template can''t expand the erb tag.
It this not the correct way to expand and xml template ?
Thanks !
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Aug 21
6
multiple-index searching with merged results
Hey..
i am just browsing through the lucene features and i''m wondering if this
feature is available in ferret as well ..
# multiple-index searching with merged results
this would be nice, as i''m thinking about several indexes, as i am using a
lot of wildcard queries for livesearches like google suggest. i think the
performance would increase, if i split my rather big index in
2006 Jan 02
11
aligning Ferret''s IndexSearcher.search API with Lucene''s
Recently I''ve been revisiting some of my search code. With a greater
understanding of how Java Lucene implements its search methods, I
realized that one level of abstraction is not present in the Ferret
classes/methods. Here are the relevant method signatures:
Ferret''s search methods:
in Ferret::Index::Index:
search(query, options = {}) -> returns a TopDocs
2006 Aug 30
1
Are the results in the order of relevancy
I am using aaf and things are working fine.
I''m just curious to find out if the results are returned in the order
of relevancy of the search term.
I am thinking of getting the ids and further processing those ids and
returning the result in a different order. Then it struck me what if the
results are in the order of relevancy. Based on the answer to the
question I''ll
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
2006 Jan 30
1
Example on how to boost a field?
I am wondering whether one could boost certain fields (e.g., title and
keywords) to make them ''weigh'' more against searches across all fields.
I know that Document::Field has a boost attribute and that it accepts a
boost argument in the constructor (although I''ve had not much luck with
it, I am just getting back exceptions upon init w/ boost), but I was
wondering
2005 Dec 02
2
RIALTO announced on theserverside.com
Hi,
just saw the announcement of yet another ajax library on
theserverside.com. The server seems to be under heavy load already but
if you can cope with longer load times
http://rialto.application-servers.com/demoRialto.jsp shows some neat stuff.
regards
Jan
2006 May 04
11
Interesting ActiveRecord vs Hibernate article
For those haven''t seen it yet, Patrick Peak has an interesting
article at the Server Side (www.theserverside.com)
discussing the differences between the Hibernate (www.hibernate.org) peristence
framework and ActiveRecord. The article can be found here: http://www.theserverside.com/articles/article.tss?l=RailsHibernate .
Patrick Peak is the author of _Hibernate Quickly_ (Manning), which
2006 Nov 02
3
Safe to read index while it is being written to?
Is it safe to open the index to do searches on while another process is
writing to the index?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 14
6
cFerret nearing completion
Hey folks,
Some good news. I''ve finished cFerret and it''s ruby bindings to the
point where I can run all of the unit tests. I still have to work out
how I''m going to package and release it but it shouldn''t be long now.
If you can''t wait you might like to try it from the subversion
repository. It''ll probably only work on linux at the moment and
2007 Jan 03
2
Using helpers...
All,
I am getting an undefined method exception while trying to use a helper
method
in a xerb file.
I am running version 0.0.8
module Merb
module FredHelper
def blee( args )
....
end
end
end
In the xerb template I have
xml.bobo blee( args )
At runtime I am getting undefined method ''blee''
I tryied
2006 Jan 03
1
find_by datetime question
Hi,
I was wondering if any of you Rails/SQL ninjas knew of an elegant way
to grab from activerecord all the rows that are within an interval of the
current time (say in the last week). For instance, if there''s the
created_on datetime column, is there a zippy way to use find() without SQL?
It seems like the Ruby
DateTime object doesn''t really do intervals for numerous
2013 Mar 02
3
How to add an custom weight to the relevancy value and sort it.
Hello guys,
I have an weight value which is calculated by some factor and i need to add
the weight with the relevancy value of a result and sort it with that value
is that possible in xapian.
Thanks,
VishnuKumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20130302/9831e287/attachment-0001.html>
2007 Jan 02
4
Inconsistant Search Results
Hi,
I have this maddening strange bug using acts_as_ferret. If I search for
a given phrase (let''s say "xyz") I get one set of results (lets call
them set A). I search for xyz again and I get set A again. I search for
xyz a third time and I get a different set (set B).
I can keep executing the search query and my result sets continue to
cycle a-a-b-a-a-b-a-a-b.
It''s
2007 Jan 12
5
Rails session parasite...
All,
I see this item on the merb-0.0.8 release notes
Added rails session parasite mode.
I am assuming merbs can piggy back off the rails current session.
How does one achieve that ?
Thanks
Fernand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070112/0803f46e/attachment.html
2004 Dec 17
2
Custom weight factors - pushing the relevancy ranking how we want it
Hi guys (and gals?),
We're using Xapian/Omega for indexing and searching forums.
As forums are, the content that is relevant to a search is not just
determined by the frequency or location of the terms; the date the topic
has been last modified is important as well.
Another issue we find is that the amount of results is so overwhelming,
the user is unable to find the correct topic for his