search for: matchdecider

Displaying 20 results from an estimated 24 matches for "matchdecider".

2010 Jun 08
1
PHP MatchDecider in 1.2.0
Good afternoon I would like to ask if is possible in new version of Xapian some kind of subclasing MatchDecider in PHP. I am developing application where is very complex permission management. so it cannot be stored in fultext database. MatchDeciders are perfect for this purpose. But I dont know if is possible to use them in PHP even if SWIG now supports directors. Now Iam using ValueSetMatchDecider whic...
2012 Mar 20
2
Writing a MatchDecider and exposing it to PHP
I would like to write a MatchDecider in C++ and expose it to PHP. I'm able to compile a simple extension and use SWIG to expose a simple function to PHP, but I can't seem to hit upon the right incantation to expose my MatchDecider class. I have a header file declaring my decider, MyDecider.h #ifndef _INC_MYDECIDER_H #def...
2007 Apr 20
1
ExpandDecider and MatchDecider operator() return type
Currently ExpandDecider::operator() and MatchDecider::operator() return `int' for no very good reason that I can see. It would be more natural to return `bool', since these classes are making a "yes/no" decision about whether to include a term in an ESet or a document in an MSet. The problem is that this can't be done without...
2010 Dec 16
1
Enquire::get_mset() "first" and MatchDecider
...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 Xapian::MatchDecider * mdecider = 0) const I had assumed that the "first" parameter referred to an index in the result set as filtered by the MatchDecider, but then it seems strange that you can change the latter from call to call. Under what conditions can you change the mdecider used and keep a consisten...
2018 Jan 11
0
use xapian.Query.OP_VALUE_RANGE or use xapian.MatchDecider?
...ot;, and "price <= 500" and "comment count >= 100", "1000 <= click_number <= 2000". And we have two methods: 1, use xapian.Query for terms and xapian.Query.OP_VALUE_RANGE to filter the value. 2, use xapian.Query for terms to get candidates, then use xapian.MatchDecider to filter the value. Which method get a better performance?
2017 Dec 05
1
How to enhance the query performance for large boolean attribute
Hi all, I am a new user to Xapian, and now we met such problem. In our case, a document has many attributes which is boolean value, for example( A, B, C ) , and our search query will use certain filter logic ( A == true and B == false ..) to combine with other search logic. We use MatchDecider to implement the filter logic, and now we met some performance problem, because our self-defined scoring method is very complicated and cost many time. We do some analyzer, and actually the boolean attribute filter ( A == true and B == false ..) can filter lots of docs, but we found seems the Match...
2006 Jul 25
2
weight scheme with document values
Hi guys, I resently used xapian to sort some documents by distance between 2 points. I implemented a MatchDecider which work well. I now tried to implement a Weight scheme to put my document in ascending order depending on the distance... My information to calcul distance is in values in the document. How I can access document values from Weight to be able to add some sum_extra weight ?? I just tried to c...
2017 Mar 09
3
Inconsistent query results
...=11180== by 0x5F4E317: MultiAndPostList::next(double) (multiandpostlist.cc:238) ==11180== by 0x5F4FACC: next_handling_prune (branchpostlist.h:85) ==11180== by 0x5F4FACC: MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal&, Xapian::MatchDecider const*, Xapian::KeyMaker const*) (multimatch.cc:570) ==11180== by 0x5E485CE: Xapian::Enquire::Internal::get_mset(unsigned int, unsigned int, unsigned int, Xapian::RSet const*, Xapian::MatchDecider const*) const (omenquire.cc:581) ==11180== by 0x5E48913: Xapian::Enquire::get_mset(unsigned int,...
2014 Apr 13
2
Adding an external library to Xapian
...n-core-1.2.17-o/api/Makefile.mk xapian-core-1.2.17/api/Makefile.mk --- xapian-core-1.2.17-o/api/Makefile.mk 2014-01-29 08:28:01.000000000 +0530 +++ xapian-core-1.2.17/api/Makefile.mk 2014-04-13 20:20:53.000000000 +0530 @@ -36,4 +36,5 @@ api/valueiterator.cc\ api/valuerangeproc.cc\ api/valuesetmatchdecider.cc\ - api/version.cc + api/version.cc\ + api/trie.cc diff -ur xapian-core-1.2.17-o/api/omdatabase.cc xapian-core-1.2.17/api/omdatabase.cc --- xapian-core-1.2.17-o/api/omdatabase.cc 2014-01-29 08:28:01.000000000 +0530 +++ xapian-core-1.2.17/api/omdatabase.cc 2014-04-13 17:56:04.000000000 +0530 @@ -4...
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
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
2009 Dec 01
1
Does xapian support attribute search & faceted search?
Can I use xapian for a search like: 'title' has the phrase "dinner jacket" AND 'color' == BLACK AND 'state' == MA AND 'size' == XL What about faceted search? Thanks
2011 Feb 11
2
PHP Binding and SWIG Director for XapianMatchDecider
Hi, I try to use XapianMatchDecider to filtering results, but the code : $Decider = new MatchDecider_Search($XapianDatabase->_cPtr); $mset = $XapEnquire->get_mset(0, 3000, null, $Decider); Always return : PHP Fatal error: No matching function for overloaded 'Enquire_get_mset' in xapian.php on line 1082 I saw that SW...
2013 Jan 17
1
FASTER Search
...) const 4065 1.5067 ChertPostList::at_end() const 3988 1.4782 AndMaybePostList::at_end() const 3899 1.4452 OrPostList::get_docid() const 3655 1.3548 MultiMatch::get_mset(unsigned int, unsigned int, unsigned int, Xapian::MSet&, Xapian::Weight::Internal const&, Xapian::MatchDecider const*, Xapian::MatchDecider const*, Xapian::KeyMaker const*) 3172 1.1757 OrPostList::at_end() const 3061 1.1346 ChertPostList::get_wdf() const most of the time cost were about chert post list; Could I use some separate database for getting faster searching? Compacting database will...
2016 Sep 22
2
issues compiling omega
James, That was exactly the issue. libmagic.dll.a was in /lib under cygwin. Adding a -L/lib took care of this. This was also an issue with -lpcre, which adding -L/lib fixed as well. Of course, I'm now running up against something else. from make libtool: link: g++ -fshow-column -Wall -W -Wredundant-decls -Wpointer-arith -Wca st-qual -Wcast-align -Wno-long-long -Wformat-security
2006 May 10
1
Documentation for the PHP OO wrapper
...ion still have many problems that I was not able to resolve : - some methods are documented but do not exist in the wrapper (e.g. empty(), max_size(), swap(), create()...) - some forms of methods use arguments types which are not in the wrapper and should not be documented (e.g : get_mset with a MatchDecider, get_eset with an ExpandDecider, SimpleStopper::__construct() with iterators...) - some methods exist in the wrapper but are not documented. This is everything which is specific to the bindings : http://svn.xapian.org/trunk/xapian-bindings/php/docs/bindings.html?view=co and some which are not do...
2006 Apr 05
1
Comparing against values (e.g. date ranges)
Hi all, I'm once again looking for search with date ranges. e.g. All entries before a certain date. I understand that Omega does this by adding keywords for each year, month and day number separately and construcing a big OR query year = 1980 or year = 1981 or year = 1982 .... or (year = 1983 and (month =1 or month = 2 ...)) I think Olly said he was considering adding something to Xapian,
2006 May 03
1
[Omega] Filtering on time instead of date
Hi, Currently Omega/scriptindex supports filtering by date. For example, all dates between START and END. Would it be possible to extend this behaviour to include the time? We have documents which expire. In order to filter out 'old' articles, we would like to check if the document date is between START=NOW and END=MAXINT. Best regards, Eric
2010 Jul 07
1
Status of the java-swig bindings?
I just get the latest version of Xapian 1.2.2 and see that the Java bindings still aren't in a package. Do these work? I am trying to hack them into a package but I can't find where the actual swig -java command is being executed from to add the -package command. Any ideas? -- Jarrod Roberson www.vertigrated.com/blog
2016 Sep 22
0
issues compiling omega
...have been added when omega started to use timegm() in the 1.3.x series: commit 8482749f9c45de3b0d1b827fde7f807ac83b2e8c Author: Olly Betts <olly at survex.com> Date: Fri Nov 27 10:36:45 2015 +1300 Use value ranges for date range filtering by value Should be more efficient than a MatchDecider, and will automatically take advantage of any future value range optimisations in xapian-core. Many platforms (including at least Linux, BSD platforms, and OS X) provide timegm(), in which case our definition of timegm() in timegm.cc is suppressed, and timegm.o doesn't actually supply any...