similar to: How to ensure thread-safety

Displaying 20 results from an estimated 300 matches similar to: "How to ensure thread-safety"

2018 Jun 09
1
output debug information of LOGCALL_CTOR/LOGCALL_VOID/...
On 9 Jun 2018, at 07:37, 张少华 <xiangqianzsh at 163.com> wrote: > Many functions in xapian can be traced when they are called using LOGCALL_CTOR/LOGCALL_VOID/... and I want to output the debug information. In xapian-core/HACKING in the source code there's a section on this. As well as pass --enable-log to configure, you also need to: * set XAPIAN_DEBUG_LOG to be the path to a file
2018 Apr 08
0
core dumped when using MatchAll in multi-threads
Hi, We have a search service based on xapian, when receving a request, we create several threads to create xapian-query and search in the corresponding databases, and then merge all results together. In some case, we use Xapian::Query::MatchAll to create the query, but it always has Segmentation fault (core dumped). It looks like some pointers are double freed. This is the function that we use
2015 Feb 23
2
Perl bindings and MatchAll / MatchNone
I've just had a quick look at the XS, but I can't see quite how to make these (or just MatchAll, really) available through the Perl binding ... where should I start please?
2008 Sep 27
3
Query::MatchAll
Why there still been rank when using Query::MatchAll() ?
2018 Jun 09
0
output debug information of LOGCALL_CTOR/LOGCALL_VOID/...
HI, Many functions in xapian can be traced when they are called using LOGCALL_CTOR/LOGCALL_VOID/... and I want to output the debug information. So, I first install xapian and enable log, using commands as follow ``` cd xapian-core-1.4.5 # xapian source code downloaded ./configure --enable-log=yes --enable-assertions=yes make sudo make install ``` But there isn't any debug information when I
2010 Dec 28
1
Printing all records when search is not present
Hi, I want to print all the records from the passed database when the search string is not present. I quickly skimmed through the API but I couldn't find a way to do it. Can someone show some pointers. Thanks, Shri
2018 Feb 13
2
How to set environment variable XAPIAN_CJK_NGRAM?
Olly, Thanks a lot! I installed Xapian 1.2.25 on Ubuntu 14.04. How to set environment variable XAPIAN_CJK_NGRAM? I'm a newbie to Xapian. Best wishes, Peter At 2018-02-12 20:00:02, xapian-discuss-request at lists.xapian.org wrote: >Send Xapian-discuss mailing list submissions to > xapian-discuss at lists.xapian.org > >To subscribe or unsubscribe via the World Wide Web,
2018 Jul 25
2
Search requests should ignore accents (C++ API)?
Hi, I am using libxapian in a C++ project (hence I am using Xapian's C++ API) and some user has requested that search requests should ignore accents. E.g. when the user searches for "Herr Müller" he expects that "Herr Muller" is also a search hit. Is this possible in Xapian? Do you have any links to the documentation of that feature? Thanks for your help, Kim
2006 Feb 08
1
xapian-tcpsrv very slow
Hi, I have been looking at xapian for a project and have so far been very impressed. I have hit one major problem the final architecture requires that the web server be a deferent machine from the server that xapian is installed on. With my test code using local database ($db_path = "/var/xapain_db/default"; $db = new_database($db_path);) a query takes around 0.012 seconds on
2018 Feb 09
0
How to ensure thread-safety
On 8 Feb 2018, at 15:18, Kim Walisch <kim.walisch at gmail.com> wrote: > I have read the concurrency webpage from the Xapian documentation: > > http://getting-started-with-xapian.readthedocs.io/en/latest/concepts/concurrency.html > > But it is still not clear to me how to ensure thread-safety when using > libxapian (C++ API). > > 1) Can many thread search the >
2003 Jun 03
15
[Bug 585] sshd core dumping on IRIX 6.5.18 with VerifyReverseMapping enabled
http://bugzilla.mindrot.org/show_bug.cgi?id=585 Summary: sshd core dumping on IRIX 6.5.18 with VerifyReverseMapping enabled Product: Portable OpenSSH Version: -current Platform: MIPS OS/Version: IRIX Status: NEW Severity: major Priority: P2 Component: sshd AssignedTo:
2019 Jul 26
4
Re: [PATCH] Rust bindings: Add Rust bindings
Hi Hiroyuki, sorry for the late reply. Most of the work is definitely nice! There are few notes below, although they are not big issues. I will check this patch once more on monday, especially the rust parts. Otherwise, I'd say that we are close to merging this :) On Tuesday, 23 July 2019 10:37:17 CEST Hiroyuki Katsura wrote: > From: Hiroyuki_Katsura
2024 Apr 26
1
queries for a set of values
I probably should've used boolean terms in addition to numeric values when indexing, but currently I have a set of numeric values[1] and trying to avoid having to reindex ~250GB DBs (and asking numerous users to do the same). Say I have a bunch of values which I want to filter a query against. If I had boolean terms, it could just OP_OR against the whole set. IOW, this is what notmuch does
2006 Dec 06
1
Bug and patch for +terms with wildcards
In current Xapian SVN HEAD, there is a bug in the query parser concerned with the handling of wildcard terms with a "+" prefix. Specifically, a query such as "+foo* bar" will be parsed by the query parser into Xapian::Query("bar") if there are no terms in the database which start "foo". Instead, since the "+" term cannot be matched, I believe
2018 Jan 22
2
How to get the serialise score returned in Xapian::KeyMaker->operator().
>A possible workaround (and perhaps a better approach) would be to >set BoolWeight as the weighting scheme, then feed in your score as >a weight using a PostingSource. Then it's available via get_weight() >on the MSetIterator object: > >https://getting-started-with-xapian.readthedocs.io/en/latest/advanced/postingsource.html > >You may find that's faster because
2013 Jun 19
2
Compact databases and removing stale records at the same time
I'm trying to compact (or at least merge) multiple databases, while stripping search records which are no longer required. Backstory: I've inherited the Cyrus IMAPd xapian-based search code from Greg Banks when he left Opera. One of the unfinished parts was removing expunged emails from the search database. We moved from having a single search database to supporting multiple
2019 Jul 17
2
[PATCH] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> Rust bindings: Add create / close functions Rust bindings: Add 4 bindings tests Rust bindings: Add generator of structs Rust bindings: Add generator of structs for optional arguments Rust bindings: Add generator of function signatures Rust bindings: Complete actions Rust bindings: Fix memory management Rust bindings: Add
2019 Jul 23
2
Re: [PATCH] Rust bindings: Add Rust bindings
I found a bug in the bindings, so I fixed it. I'm sorry about sending you the patch many times. Regards, Hiroyuki 2019年7月20日(土) 16:23 Hiroyuki Katsura <hiroyuki.katsura.0513@gmail.com>: > From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> > > Rust bindings: Add create / close functions > > Rust bindings: Add 4 bindings tests > > Rust bindings: Add
2019 Jul 29
0
Re: [PATCH] Rust bindings: Add Rust bindings
Dear Pino, Thank you for your helpful review. I fixed the patch based on your comments. I’ll send it later. > The same also for the various .gitkeep files, as they need to be in the > distribution tarball to ensure the directories exist. Is ’src/bin/.gitkeep’ required in EXTRA_DIST? I think because src/bin/ bindtests.rs is included in EXTRA_DIST, ’src/bin/.gitkeep’ is not required to
2019 Jun 27
0
[PATCH 5/9] Rust bindings: Add generator of structs for optional arguments
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> --- generator/rust.ml | 71 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/generator/rust.ml b/generator/rust.ml index 174f6ded3..a229d5eac 100644 --- a/generator/rust.ml +++ b/generator/rust.ml @@ -29,10 +29,32 @@ open Structs open C open Events +(* Utilities for Rust *) +(* Are