Displaying 13 results from an estimated 13 matches for "termcount".
2005 Jul 20
1
docid type redifine
...:
string
om_tostring(unsigned long long val)
{
CONVERT_TO_STRING("%llu")
}
in common/utils.{h,cc}
2) In include/enquire.h (line 438) I've found the following declaration:
ESetIterator operator[](Xapian::doccount i) const;
but I think it would be
ESetIterator operator[](Xapian::termcount i) const;
isn't it?
3)
Then I have the following errors while compiling backends:
quartz_postlist.cc: In constructor `
QuartzPostList::QuartzPostList(Xapian::Internal::RefCntPtr<const
Xapian::Database::Internal>, const Btree*, const Btree*, const std::string&)
':
quart...
2008 Sep 16
1
Some Questions From the beginner of Xapian
...::valueno valueno, const std::string &value)
What's the purpose of this method? Document will related to the terms, but what's the purpose of this?
(2) add_posting method will add term to a documents.
void add_posting (const std::string &tname, Xapian::termpos tpos, Xapian::termcount wdfinc=1)
I noticed that
Xapian::TermGenerator has follow method
void index_text (const Xapian::Utf8Iterator &itor, Xapian::termcount weight=1, const std::string &prefix="")
What's the differences and relationship between these two functions?
Thanks a lot!
Sam
---...
2018 Jan 22
2
How to get the serialise score returned in Xapian::KeyMaker->operator().
...e time oppositely.
How do you think about this?
Also, We found the BM25 algorithm is fast in xapian, so we think if we can modify our get_weight() function to adjust the BM25 algorithm. If so, the type of termfreq of document should be double. I am wondering if it works just re-typedef Xapian::termcount to double? Does it has a negative impact on other place of xapian source.
Thanks.
2018 Jan 24
0
How to get the serialise score returned in Xapian::KeyMaker->operator().
...ht for every matching document.
> Also, We found the BM25 algorithm is fast in xapian, so we think if we
> can modify our get_weight() function to adjust the BM25 algorithm. If
> so, the type of termfreq of document should be double. I am wondering
> if it works just re-typedef Xapian::termcount to double? Does it has a
> negative impact on other place of xapian source.
It'll stop it compiling, which is fairly negative. Xapian::termcount
needs to be an unsigned integer, and there are assertions to that effect
you'd hit. I'd think it would be a significant project to chang...
2005 Feb 24
2
mutable Query objects
...uot; clone for Query objects and use it in
Enquire::set_query()
(b) make Query object immutable by replacing these non-const public
methods with extra constructor parameters:
void set_window(Xapian::termpos window);
void set_cutoff(Xapian::weight cutoff);
void set_elite_set_size(Xapian::termcount size);
Xapian::termcount set_length(Xapian::termcount qlen);
The private non-const methods are only used during construction, so
they're not a problem.
I tend to favour (b). The first three are tied to particular OPs
(OP_NEAR/OP_PHRASE, OP_WEIGHT_CUTOFF, and OP_ELITE_SET respectively)
so ar...
2020 Nov 16
4
set_max_expansion in perl-bindings?
Hi,
I've just noticed that set_max_wildcard_expansion() has been removed in
favour of set_max_expansion() in Xapian.
Has the new method been added to the Perl-bindings?
We have some old Perl code that uses set_max_wildcard_expansion(), and I
have a test of too large expansion that now returns "something terrible
happened" instead of"Exception: Wildcard ... expands too much
2011 Mar 07
1
Set Term Frequency for a Query
Hello,
I have a problem when trying to define a query and setting for each term its
"term frequency" with the classical constructor
Xapian::Query<http://xapian.org/docs/apidoc/html/classXapian_1_1Query.html#f396e213df0d8bcffa473a75ebf228d6>(const
std::string &tname_,
Xapian::termcount<http://xapian.org/docs/apidoc/html/namespaceXapian.html#72b5a76dd8cfb7b251fe7986e86390cb>wqf_=1,
Xapian::termpos<http://xapian.org/docs/apidoc/html/namespaceXapian.html#e5a16f073d0c8ed54085a9de07248d45>pos_=0)
:
Xapian::Query query_test(Xapian::Query::OP_OR, Xapian::Query("Bon...
2011 Apr 19
0
Merge databases
...I have a problem when trying to define a query and setting for each term
> its "term frequency" with the classical constructor Xapian::Query<http://xapian.org/docs/apidoc/html/classXapian_1_1Query.html#f396e213df0d8bcffa473a75ebf228d6>(const std::string &tname_,
> Xapian::termcount<http://xapian.org/docs/apidoc/html/namespaceXapian.html#72b5a76dd8cfb7b251fe7986e86390cb>wqf_=1,
> Xapian::termpos<http://xapian.org/docs/apidoc/html/namespaceXapian.html#e5a16f073d0c8ed54085a9de07248d45>pos_=0) :
>
> Xapian::Query query_test(Xapian::Query::OP_OR, Xapian::Q...
2014 Apr 13
2
Adding an external library to Xapian
...<< endl;
+ logfile.close();
+ */
+ LOGCALL(API, Xapian::MSet, "Xapian::Enquire::get_mset", first | maxitems | check_at_least | rset | mdecider);
try {
RETURN(internal->get_mset(first, maxitems, check_at_least, rset,
@@ -1043,6 +1074,7 @@
Enquire::get_eset(Xapian::termcount maxitems, const RSet & rset, int flags,
double k, const ExpandDecider * edecider) const
{
+ cout << "In Enquire::Internal::get_eset : 5 args" << endl;
LOGCALL(API, Xapian::ESet, "Xapian::Enquire::get_eset", maxitems | rset | flags | k | edecider);...
2009 Jun 23
1
Indexing more than 15 billion documents
Hi,
Sorry to follow up on an old thread, but I am wondering if there has
been any work done on, or interest in, increasing the maximum document
id beyond a 32bit limit?
Daniel
On Mon, Jun 18, 2007 at 04:11:54AM +0100, Olly Betts wrote:
> > In particular, there is currently a limit of 4 billion documents in a
> > database, due to using a 32 bit type for document IDs, but I don't
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
2014 Mar 10
2
A few more question about LETOR
1.Could you explain why are these libraries included in all the
xapian-letor headers?
#include<xapian/intrusive_ptr.h>
#include<xapian/types.h>
#include<xapian/visibility.h>
Or just provide me with the documentation of these header. I looked into
these header files but couldn't anything substantial.
2.
2017 Dec 15
5
How to get the serialise score returned in Xapian::KeyMaker->operator().
HI, all,
I am a user of Xapian, and now I have a problem in using it.
After using boolean terms to get some candidates of documents (still too much), we want sorted them by self-defined function which is used in Xapian::KeyMaker->operator(). But how can I get the serialise score in Xapian::MSetIterator object.
c++ code likes this:
class SortKeyMaker : public Xapian::KeyMaker {
std::string