search for: invalidargumenterror

Displaying 11 results from an estimated 11 matches for "invalidargumenterror".

2009 Sep 09
2
InvalidArgumentError throw using Turkish stemmer and posting text "'leri"
...ctual offending bit of the string is: 'leri It throws the message I have shown below. The real annoyance is that I can't seem to catch it because it is thrown from the XS (is there any kind of signal trap that might catch this?) terminate called after throwing an instance of 'Xapian::InvalidArgumentError' Aborted tom
2011 Jul 28
0
xapian.InvalidArgumentError: Term too long (> 245)?
xapian.InvalidArgumentError: Term too long (> 245): XTEXT... What is 245 here. 245 characters or 245 bytes or 245 words or 245 unique words or 245 characters in one word? Does it include spaces? Ashish
2011 Jun 21
3
Error after upgrading to latest xapian distro
I upgraded to latest xapian version and I have started getting xapian.InvalidArgumentError: Term too long (> 245): XTEXT... This issue was not there in 1.0.16 but it is in the latest version. Any solutions. thanks
2007 Mar 29
1
"Bad serialised query" error
...a demo that fails using Python: import xapian db = xapian.remote_open('localhost', 8100) qp = xapian.QueryParser() qp.set_database(db) query = qp.parse_query('test') enq = xapian.Enquire(db) enq.set_query(query) enq.get_mset(0, 10) This script fails with: xapian.InvalidArgumentError: REMOTE:Bad serialised query I've tracked it down to api/omqueryinternal.cc, in QUnserial::readquery(), and is the 2nd occurance of that error message in that function (ie, inside the "case '['" block). It appears that the check for: if (p == end) throw Xapian::Inval...
2016 Jul 12
3
Xapian 1.4.0 released
On Mon, Jul 11, 2016 at 02:02:56PM -0700, Kevin Duraj wrote: > You are saying that when I search for "delve Xapian 1.4" on Google, a > company worth of 491 Billion of Dollars and you saying that their top > of the search result has nothing to do with Xapian. > > https://www.google.com/search?q=xapian+delve&ie=utf-8&oe=utf-8#q=delve+xapian+1.4 Well, I'm not
2017 Oct 16
2
Current master unit test errors
...is just me or is there something broken in the master branch? Running test './apitest' under valgrind Running tests with backend "none"... Running test: defaultctor1... SIGSEGV at (nil) 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. Runn...
2010 Jun 07
2
Is there a 64 character term size limit? In Ruby bindings?
I've just found some items in my Xapian database which aren't being indexed, when the terms are quite long. Example term: Frotherham_doncaster_and_south_humber_mental_health_nhs_foundation_trust It represents that the Freedom of Information request was made to a particular public body. It results in pages like this not correctly showing results:
2011 Jul 28
0
Is it changed in 1.2.6
xapian 1.0.16 threw xapian.InvalidArgumentError: Term too long (> 245) but in our testing xapian 1.26 is not throwing this exception. Did it change? Ashish
2016 Jul 23
0
Xapian 1.4.0 released
...I would like to propose to change the following code while indexing a term that is larger than 245 characters and then crashing and aborting the entire index, we could rather truncate the term to 245 characters and continue with indexing. if (tname.size() > MAX_SAFE_TERM_LENGTH) throw Xapian::InvalidArgumentError("Term too long (> " STRINGIZE(MAX_SAFE_TERM_LENGTH) "): " + tname); Reference: https://github.com/xapian/xapian/blob/e3692bff7b7c25c8e09536889d5884d033199f36/xapian-core/backends/glass/glass_database.cc#L1083-L1084 On Tue, Jul 12, 2016 at 10:13 AM, James Aylett <james-xa...
2011 Apr 21
1
Installing Search::xapian
...arch::Xapian::BM25Weight.3pm Manifying blib/man3/Search::Xapian::WritableDatabase.3pm Manifying blib/man3/Search::Xapian::SerialisationError.3pm Manifying blib/man3/Search::Xapian::DatabaseCreateError.3pm Manifying blib/man3/Search::Xapian::UnimplementedError.3pm Manifying blib/man3/Search::Xapian::InvalidArgumentError.3pm Manifying blib/man3/Search::Xapian::DatabaseModifiedError.3pm Manifying blib/man3/Search::Xapian::ValueIterator.3pm Manifying blib/man3/Search::Xapian::Error.3pm Manifying blib/man3/Search::Xapian::DatabaseLockError.3pm Manifying blib/man3/Search::Xapian::RuntimeError.3pm Manifying blib/man3/Se...
2006 Dec 06
1
Bug and patch for +terms with wildcards
...elite_set_size); } + case '!': { + return new Xapian::Query::Internal(Xapian::Query::OP_MATCH_NOTHING, 0); + } default: DEBUGLINE(UNKNOWN, "Can't parse remainder `" << p - 1 << "'"); throw Xapian::InvalidArgumentError("Invalid query string"); @@ -554,6 +566,68 @@ } } +void +Xapian::Query::Internal::simplify_matchnothing() +{ + subquery_list::iterator sq; + switch (op) { + case OP_PHRASE: + case OP_NEAR: + case OP_AND: + case OP_FILTER: + // Doing an...