Displaying 7 results from an estimated 7 matches for "flag_spelling".
2007 Dec 29
3
Term-Flags
Hi,
Is it necessary to set the down below flag to the TermGenerator,
if I want the "Did you mean ..." spelling corrections?
Xapian::TermGenerator::flags::FLAG_SPELLING
Thank you very much
Markus
2010 Oct 24
1
Cannot index with dynamic spelling data (Perl/Search::Xapian)
...t find the problem...
--- 8< ---
#!/usr/bin/perl
use Search::Xapian qw(:all);
use strict;
my $xa = new Search::Xapian::WritableDatabase ("/tmp/xapian",
DB_CREATE_OR_OVERWRITE);
my $indexer = Search::Xapian::TermGenerator->new();
$indexer->set_flags(Search::Xapian::FLAG_SPELLING);
my $doc = new Search::Xapian::Document;
$indexer->set_document($doc);
$indexer->index_text("hello 123 blah blah");
$xa->add_document($doc);
--- >8 ---
Output:
terminate called after throwing an instance of 'Xapian::InvalidOperationError'
Aborted
It works fine wi...
2014 Feb 27
2
Summer of Code help
...examples.SimpleIndex.main(SimpleIndex.java:54)
Error seems to occur in the swigToEnum method.
So I checked
http://www.swig.org/Doc2.0/SWIGDocumentation.html#Java_enum_classes
We could expect a similar class to get built in our case except that
'flags' would have only one type in it ie.'FLAG_SPELLING'. And the rest of
the values in the class would get set accordingly.
Now when
flags(0) is executed, the swigToEnum method will run with 0 as a parameter.
And this method tries to return a type whose value matches the value of the
passed parameter.
So it is unable to find a type with value 0...
2007 Nov 14
1
Problem indexing text with spelling enabled in Perl
Hi All,
I'm using the TermGenerator::index_text() on version 1.0.4 with the
FLAG_SPELLING turned on, because the new spelling suggestion stuff
seems awesome, but I'm getting a segv.
(gdb) bt
#0 0xb7ae153c in Xapian::WritableDatabase::add_spelling
(this=0xa553988, word=@0xbff97724, freqinc=1) at ./include/xapian/
base.h:154
#1 0xb7becf47 in Xapian::TermGenerator::Internal::in...
2007 Dec 17
1
Crashes with spelling enabled and perl.
...rch::Xapian;
my $db = Search::Xapian::WritableDatabase->new("test.db",
Search::Xapian::DB_CREATE_OR_OPEN);
if (!defined($db)) {
die("Failed to open xapian_database: $!");
}
my $indexer = Search::Xapian::TermGenerator->new();
$indexer->set_flags(Search::Xapian::FLAG_SPELLING);
my $document = Search::Xapian::Document->new();
$indexer->set_document($document);
$indexer->index_text(lc('test'), 1);
$db->add_document($document);
undef $db;
Here's the patch to enable spelling against Search-Xapian-1.0.4.0:
http://rusty.devel.infogears.com/xap-perl-s...
2014 Feb 24
2
Summer of Code help
Hello Olly,
I read about Xapian and SWIG and the bindings that Xapian has with other
languages.
According to what I've read, I understand that
Xapian is a search engine library written in C/C++. It can be
integrated with web applications which handle large amount of data.
But since the web applications may be written in a variety of languages a
binding is required for the web app to be able
2008 Mar 27
2
Proper noun stemming
Hi All
I was wondering if anyone had a solution for the following problem.
I user QueryParser to stem my documents before adding them to a
database. During the stemming process I would like to find a way of
keeping proper nouns that span two or more words together as a phrase.
For example "New York" or "Gordon Brown" or "Prime Minister" get spilt
up. I see