Displaying 8 results from an estimated 8 matches similar to: "Set Term Frequency for a Query"
2011 Apr 19
0
Merge databases
Dear all,
I try to use the xapian-compact tool to merge several databases. I need to
keep the document ID.
The problem is that xapian-compact is not able to merge databases because of
overlapping "doc ID range". Nevertheless, in my case, a doc ID is always
used for one and only one database.
Is there a (other) clever way to simply and quickly merge databases ?
Regards
2011/3/7
2008 Apr 30
8
Playing with NtQueryInformationFile
Hi all,
I''m trying to get the allocation size of a file via a file handle
(rather than its name). The example below works for FileNameInformation
but I can''t get it to work as expected for FileStandardInformation.
Here''s some sample code:
# query_test.rb
require ''windows/handle''
require ''windows/error''
include Windows::Handle
2020 Aug 30
0
Xapian on Android?
On Thu, Aug 27, 2020 at 03:55:07PM +0000, Cliff Missen wrote:
> We can create the index on more powerful machines with any OS in our
> development lab, but need to provide the end users with tools to
> search that index on their devices.
Not specific to Android, but for this sort of use case you may find the
"single-file database" feature useful (the feature was sponsored by
2010 Jan 16
1
PHP XapianTermIterator/XapianPositionIterator usage
Hello again,
/thanks to Peter for previous response.
I've been digging around trying to find sample usage of
XapianTermIterator/XapianPositionIterator in PHP. The idea is to code up a
test case in PHP to perform snippet extraction (with a possible view to
coding a pecl extension in C). I found a C++ sample, but that wasn't much
help.
I must be dense this morning though, since I
2009 Feb 12
1
problem when using xapian's static libs in windows
I have download source ?1.10? from the internet
and build it into lib
Then I create a project as the helpdoc said
I using vc2005(vc8)
The source in my test project is as follow??copy from the helpdoc?
#include <xapian.h>
#include <iostream>
using namespace std;
int main(int argc, char **argv)
{
// Simplest possible options parsing: we just require three or more
2013 Jan 17
1
FASTER Search
I am suffering for slow searching performance on Xapian.
I am using Xapian for indexing about 150,000,000 documents.
It was implemented in C++;
The performance of searching was not that fast.
e.g. Searching a query, which includes about 20 terms, needs 2 secs avg.
For searching, I followed such steps:
1. construct a QueryParser for certain string
2. parse the query to get a Xapian::Query
2020 Aug 27
4
Xapian on Android?
Friends,
I would like to hear from anyone who has experience deploying Xapian on Android. I'm new to Xapian, but I know it is used by a couple partners for offline projects on Linux and Windows.
Our small nonprofit, WiderNet, provides off-line access to thousands of Web sites for people who lack Internet connectivity (www.widernet.org). Over 2,000 universities, schools, health care sites,
2005 Feb 24
2
mutable Query objects
There's a bit of an API glitch with Query objects at present. This code
shows it off:
Xapian::Database("/path/to/db");
Xapian::Enquire enquire(db);
// make a simple query
Xapian::Query myquery(Xapian::Query::OP_NEAR, phrase, phrase + 2);
enquire.set_query(myquery);
// Now change the query - this shouldn't affect the query enquire
// will run, but it does.