|
From: Thibaut H. <thi...@to...> - 2008-07-22 16:46:51
|
Hi,
I tried to use Lucene::Search::FuzzyQuery. I look at a C++ code that
seems to work to write this perl code:
my $store = Lucene::Store::FSDirectory->getDirectory($store_dir, 0);
my $searcher = new Lucene::Search::IndexSearcher($store);
my $term = new Lucene::Index::Term("definition_content",
$local_query_string);
my $fuzz = new Lucene::Search::FuzzyQuery($term);
my $hits = $searcher->search($fuzz);
my $num_hits = $hits->length();
Link to the C++ code:
http://www.mail-archive.com/luc...@in.../msg00928.html
Unfortunately I have no results even if $local_query_string is a
well-spelled word.
Is there someone who has already used FuzzyQuery and has succeeded to
make it work? Or does anybody have any idea for what is wrong in my code?
Thibaut
|