Displaying 20 results from an estimated 2000 matches similar to: "Adjusting scores"
2006 Jan 22
3
Balancing relevancy and recentness
I was wondering if there was a good way to either balance the relevancy
score with recentness of matching documents- or include the recentness
in the score somehow?
Thanks,
Ben
--
Posted via http://www.ruby-forum.com/.
2012 Oct 11
1
R CMD SHLIB error bad value (core2) for -mtune= switch
Hi there,
I'm having trouble to compile the R + C/C++ codes for this project from
Yahoo folks on latent factor models:
https://github.com/yahoo/Latent-Factor-Models#readme
After downloading the package from the site, I could not successfully *make*
the files.
Here is the message:
======================================================================================
sh-4.1$ make
R CMD
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 Sep 29
1
yielding consecutive values
I''m not sure if someone has already addressed this issue, but if not,
here goes.
I need the following behavior:
def test_generate(documentation = ''/test_documentation/'',
destination = ''/destination/'')
yield_results = [''/'', ''filename.yaml'', ''blah.xml'']
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
2006 Sep 29
2
multiyield
I lied, I don''t actually need different responses each time I call
the method. So the last email of mine is probably worthless.
Instead, I need yield to yield 3 values when I call it once:
(behavior that mimics Find.find)
def test_generate(documentation = ''/test_documentation/'',
destination = ''/destination/'')
2006 Aug 18
10
TreeCtrl update
The previous TreeCtrl.i was very messy and just plain wrong, for
instance it had GetFirstChild as depreciated when in fact only 1
version of it was depreciated not both.
I changed GetFirstChild and GetNextChild to return an array of values
to match the wxPython and wxPerl usage.
I also noticed that wxTreeCtrl is inherited from wxControl on Windows
and wxScrolledWindow on everything else so I #if
2007 May 02
1
MultiSearcher Results Question
If searching multiple indexes with a single searcher is there anyway to
identify which index a resulting doc is stored in?
i1 = Ferret::I.new
i2 = Ferret::I.new
i1 << {:id=>1,:text=>"random stuff"}
i1.commit
reader =
Ferret::Index::IndexReader.new([i1.options[:dir],i2.options[:dir]])
searcher = Ferret::Index::IndexSearcher.new(reader)
query =
2007 May 23
2
rspec mocha and controller specs without integrated_views
The ability to choose a mocking framework is great as I prefer mocha, but I
am have problems.
On my controller specs, I am forced to ''integrate_views'' as the following
code below shows you, the mocking of views is rspec specific. See stub!
versus mocha''s stub
unless block_given?
unless integrate_views?
2010 Nov 18
1
Influence of Google PageRank of a page on other pages of same site
Hi,
I know this is the wrong forum for this kind of question and is only
ephemerally related to xapian, but maybe someone here knows and will save me
some digging.
Given a google PR of, say, .15 for page A of site x.com, does google "radiate"
any of that PR goodness onto any other pages of site x.com? Irrespective of
whether page A links to any other pages in site x.com.
In other
2006 Sep 14
2
Possiible Bug ? indexWriter#doc_count countsdeleted docs after #commit
Hi David,
> Deleted documents don''t get deleted until commit is called
Ok, but FYI, my experiments show that #commit doesn''t affect #doc_count,
even across ruby sessions.
On a different note, I''d like to request a variation of #add_document
which returns the doc_id of the document added, as opposed to self.
I''m trying to track down an issue with a large
2009 Jan 03
2
Improving the PageRank of individual wiki pages
Hi,
Let me first stress that the success of the wiki is tight to how many
users find it as a resource. And that users will only find the wiki for
their problems if it has a higher PageRank.
(I am using PageRank as an example, other search engines would do
better if we can implement some changes overall.)
If we take the HowTos/Laptops/Wireless page as an example, the page is not
part of the
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
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
My linux Ruby application is using Ferret 0.11.4. I created my own class IndexSearcher to contain
the Searcher of multiple directories. If I do not have the searcher.close called, the end of
runner/console or runner/server will pop out with system error:
*** glibc detected *** irb: double free or corruption (fasttop): 0x0a51d6c0 ***
======= Backtrace: =========
/lib/libc.so.6[0x638ac1]
2013 Mar 02
2
Getting Started
Hello all,
I am Mohd Azeem. I want to contribute in Xapian but I am a newbie here. I wonder if anyone could help me in getting started with Xapian. I have some basic knowledge of IR and implemented TF*IDF and PageRank schemes, and also implemented Inverted Index and Web-Crawler.
regards,
Azeem
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Sep 05
1
AAF and DRb with highlighting
How would I change this method in order to get highlighting working with
DRb? I''ve given up on searching on Google, I''m getting no results that
are actually helpful.
def self.find_storage_by_contents(query, options = {})
# Get the index that acts_as_ferret created for us
index = self.aaf_index.ferret_index
results = []
default_options = {:limit => 10,
2006 Apr 04
1
ActiveRecord object
I have an ActiveRecord class
class User < ActiveRecord::Base
end
and I want to define an attribute, in example "links", links will be an
array.
class User < ActiveRecord::Base
attr :links
end
and now, I want links to be an array, so I do
class User < ActiveRecord::base
attr:links
def initialize(attributes)
super(attributes)
@links =
2006 May 02
1
Converting rb_protect + ruby_stop to pure Ruby
Hi,
Within process.c, in the fork method, there''s this bit of code:
if(rb_block_given_p()){
int status;
rb_protect(rb_yield, Qundef, &status);
ruby_stop(status);
}
I translated that as this:
if block_given?
status = 0
begin
yield
rescue Exception
status = -1 # Any non-zero result is failure
end
exit(status)
end
Is there a way to get
2006 Sep 22
2
foo.expects(:blah).returns(10).then(11) syntax
I recently needed the behavior of my object to change on subsequent
method calls so I added the syntax above.
Here''s the diff of changes I made:
Index: test/mocha/expectation_test.rb
===================================================================
--- test/mocha/expectation_test.rb (revision 854)
+++ test/mocha/expectation_test.rb (working copy)
@@ -95,6 +95,12 @@
2007 Aug 07
2
stubs which yield and return
Is there any reason why a stub couldn''t both yield and return? I''m
looking for a way to mock out a class I''ve made named "AnonymousClass":
class AnonymousClass
def initialize(&blk)
@klass = Class.new
@klass.instance_eval(&blk) if block_given?
end
def new
@klass.new
end
def evaluate(&blk)