Displaying 6 results from an estimated 6 matches for "invalidoperationerror".
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)
...$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 without "$indexer->set_flags(Search::Xapian::FLAG_SPELLING);", but
then spelling correction does not work. The error/exception occurs at
index_text(). I've tried with/without stemmer, it makes no difference.
xapian-core version is 1.2.3, Search::Xapia...
2018 Sep 21
1
How to make database build threaded?
On 21/09/2018 at 08:03, Olly Betts wrote:
>
> You can then either just search those databases together or use
> Xapian::Database::compact() (or the xapian-compact command line tool) to
> merge the databases once built.
>
just my 2 cents tips: a commit() to the database is needed before
compact() otherwise every attempt to search fails.
This on GNU Linux Debian 9.5 Xapian:
2017 Oct 16
2
Current master unit test errors
...il)
DecreasingValueWeightPostingSource()
[...]
Running test: uninitdb1... InvalidArgumentError: Can't make an
Enquire object from an uninitialised Database object.
Running test: rset4... FAILED
Running test: valuesetmatchdecider1... FAILED
Running test: emptymset1... InvalidOperationError: Can't get
termfreq from an MSet which is not derived from a query.
Running test: nonutf8docdesc1... FAILED
Running test: orphaneddoctermitor1... Invalid read of size 8
Running test: serialise_query2... SIGSEGV at (nil)
Running test: serialise_query3... SIGSEGV at (nil)
....
2008 Sep 16
0
[PATCH] Add set_max_wildcard_expansion method to the queryparser.
...{
string root = *piter;
root += name;
@@ -342,6 +348,9 @@ Term::as_wildcarded_query(State * state_) const
while (t != db.allterms_end(root)) {
subqs.push_back(Query(*t, 1, pos));
++t;
+ if (max != 0 && ++expansion_count > max) {
+ throw Xapian::InvalidOperationError("Wildcard expands too much");
+ }
}
}
delete this;
diff --git a/xapian-core/queryparser/queryparser_internal.h b/xapian-core/queryparser/queryparser_internal.h
index 88cbb8f..87cfaf5 100644
--- a/xapian-core/queryparser/queryparser_internal.h
+++ b/xapian-core/query...
2011 Apr 21
1
Installing Search::xapian
...n::MultiValueSorter.3pm
Manifying blib/man3/Search::Xapian::FeatureUnavailableError.3pm
Manifying blib/man3/Search::Xapian::DatabaseVersionError.3pm
Manifying blib/man3/Search::Xapian::DatabaseOpeningError.3pm
Manifying blib/man3/Search::Xapian::DatabaseError.3pm
Manifying blib/man3/Search::Xapian::InvalidOperationError.3pm
Manifying blib/man3/Search::Xapian::Enquire.3pm
Manifying blib/man3/Search::Xapian::AssertionError.3pm
Manifying blib/man3/Search::Xapian::Document.3pm
Manifying blib/man3/Search::Xapian::QueryParserError.3pm
Manifying blib/man3/Search::Xapian::QueryParser.3pm
Manifying blib/man3/Search::Xapian...