Displaying 20 results from an estimated 1000 matches similar to: "ruby bindings odds and ends"
2007 Oct 16
1
Matches estimate varies with sorting method
Hi all,
I found that the figure returned by MSet::get_matches_estimated() varies
depending on how results are to be sorted.
For instance, in my index, value 4 contains date and time in the format
"yyyymmddhhmmss". For the same query, the number of results will be
estimated to 20000+ when results are first sorted by date and time
with set_sort_by_value_then_relevance(4) and to only 100
2007 Apr 03
3
More weirdness with PHP bindings
Hi all,
There's been a odd bug reported to us by Daniel Menard while working on
the PHP bindings:
"I then tried to run the dotest target...All tests passed, except the
one about get_matching_terms (smoketest.php line 94).
I added this line before the exit:
for ($i=0; $i<strlen($terms); $i++) echo $c=ord($terms[$i]), ' ',
($c>31?$terms[$i]:''), "\n";
2012 Apr 27
4
GSoC xapian node binding
Posting recent offline discussion...
On Fri, Apr 27, 2012 at 10:55 AM, Marius Tibeica <mtibeica at gmail.com> wrote:
> Hi Liam,
>
> I've added the Enquire class and designed a query spec structured as a JS
> object. Hope you like it :)
> I'll probably be off a few days (there is a national holiday Tuesday which
> means i have a long weekend :D) but maybe I'll
2023 Aug 17
1
does Xapian::Enquire hold an MVCC revision?
In other words, is it possible to avoid duplicates if new
documents are inserted into the DB by another process in-between
->get_mset calls when reusing Xapian::Enquire objects?
I do some expensive processing on each mset window, so I always
limit the results to limit heap usage even if I'm planning on
going through a big chunk of the DB:
$mset = $enq->get_mset(0, 1000);
2018 Mar 30
2
sorting large msets
Hello, is there a way to optimize sorting by certain values
for queries which return a huge amount of results?
For example, I just want a simple query that gives me the 200
most recent emails out of millions. The elapsed time for
get_mset increases as the number of documents ($n * 2000)
increases.
I suppose I could store a pre-sorted set using SQLite or
similar. Thanks in advance for any
2004 Nov 05
1
RE: basic encoder help
I'm currently facing the same problem.
I added the libFLAC++ libraries to my MSVC application.
I implemented the same quality levels (0-8) as used in the FLAC frontend application.
But the resulting files are remarkable different between my application and the FLAC frontend (although using the same settings).
for example:
FLAC frontend (quality = 8)
--------------------------------
2014 Apr 13
2
Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following
it the error that occurred:
http://pastebin.com/cVJrjUZX
On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote:
> On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com>
> wrote:
>
> > A linker error is encountered even after following the above
2023 Aug 18
1
does Xapian::Enquire hold an MVCC revision?
On Thu, Aug 17, 2023 at 09:28:26PM +0000, Eric Wong wrote:
> In other words, is it possible to avoid duplicates if new
> documents are inserted into the DB by another process in-between
> ->get_mset calls when reusing Xapian::Enquire objects?
The Database object itself effectively does (it works in a snapshot of
the state of the database when you open it, or last called reopen()
which
2018 Mar 31
2
sorting large msets
Olly Betts <olly at survex.com> wrote:
> On Fri, Mar 30, 2018 at 05:21:43PM +0000, Eric Wong wrote:
> > Hello, is there a way to optimize sorting by certain values
> > for queries which return a huge amount of results?
> [...]
> > $enquire->set_sort_by_value_then_relevance(0, 1);
>
> If you're just wanting the 200 newest, it'll be faster not to
2007 Dec 20
1
More pleasant / concise API
Hi there,
Just a small suggestion :
The following apis could be a bit more concise / shorter / pleasant I thought.
This is particularly difficult, my brain stumbles on this each time
when scanning thorugh the code :)
set_no_auto_load(true)
Could it be two apis instead?
auto_load
no_auto_load
and the other one :
worker_name :important_worker (no set_ prefix)
thanks,
emil
2007 May 07
6
meta data update
The switch to the new metadata system is almost complete. All plugins in
the fdo repo except plane and ini have been converted. I'll probably go
ahead and convert those plugins as well sometime soon unless the
original authors of those plugins tells me not to.
The horrible gconf-dump plugin has been removed and replaced by a simple
xslt stylesheet. gconf schemas are now generated from the xml
2009 Jan 27
1
Segmentation fault in MSetIterator get_weight
Hi,
I'm using xapian with c# and mono and i'm having a segfault in get_weight.
When i print the index variable, the value is clearly too high.
I think something write over it. Do you have any idea on how i could
trace the beginning of the segmentation fault ?
Thanks,
--
Yann
2013 Feb 20
1
Sticky results
Hi there,
I have a xapian index whose results are being sorted by a value, with (PHP bindings):
$enquire->set_sort_by_value($sort_data_value);
This is because I want the results returned in chronological order of publication date. However, I now have a need to have certain results be 'sticky' at the top of the resultset, regardless of their publication date. Obviously there are
2006 Sep 11
15
ruby method names
Hi
Attached is a patch that adds aliases to the API for methods that look
like attribute accessors. So
a_frame.set_title(''The title'') # currently
a_frame.title = ''The title'' # now an alternative
textctrl.get_value # currently
textctrl.value # now an alternative
Also, C++ methods named ''IsXXX'' are now exposed in ruby with
2008 Sep 27
3
Query::MatchAll
Why there still been rank when using Query::MatchAll() ?
2010 Feb 18
2
xapian.DocNotFoundError: regression?
Hello,
I've installed xapian-core 1.1.3 and xapian-bindings 1.1.4 from the
tarballs announced by Olly the other day. With these versions,
Enquire.get_mset() seems to consistently be raising
xapian.DocNotFoundError.
I've attached a small test case which reproduces this. The same test
case works fine with 1.0.16 (not the latest 1.0.x, but it's what I had
installed).
Program output
2014 Aug 07
2
Global number of matches
Hi,
is there a way to get the number of all possible matches for a specific
query?
Some api call like
Xapian::doccount Xapian::Enquire::get_number_of_matches();
Best wishes
Wilm
2007 Sep 20
3
Incorrect get_matches_estimated() of Xapian::Mset
Hello, As I know, get_matches_estimated() return an estimate for the number of documents with matches the query.
But now, I found it get a disparity between the return value and real mathced number. For an example: the real matched number is 58, but the return value is 458; so when the users click the hinder page, get a blank page ... so they often complain to me.
I found that the main reason is
2006 Jun 01
1
[PATCH] Make xentrace hypercall a bit more sane
xentrace, setsize and the hypervisor don''t seem to be on the same
page. If tracing is not enabled, the hypercall will only allow
TBUF_SET_SIZE and TBUF_ENABLE. However, set_size calls TBUF_GET_INFO,
and xentrace wants to call TBUF_SET_EVT_MASK and TBUF_SET_CPU_MASK
before calling TBUF_ENABLE.
I don''t see any reason not to call SET_*_MASK and GET_INFO if tracing
is not enabled.
2010 Dec 16
1
Enquire::get_mset() "first" and MatchDecider
Hello,
This is a somewhat idle question about Enquire::get_mset(), possibly based
on wrong assumptions on how Xapian works, but I would be grateful if
someone satisfied my curiosity.
Xapian::MSet Xapian::Enquire::get_mset(Xapian::doccount first,
Xapian::doccount maxitems,
const Xapian::RSet * omrset = 0,
const