similar to: PHP MatchDecider in 1.2.0

Displaying 20 results from an estimated 100 matches similar to: "PHP MatchDecider in 1.2.0"

2011 May 23
1
More relevance for recent documents
Good afternoon I would like to ask if is possible somehow give more relevance to the recent documents in search results. I dont want to sort results according to the date, I still prefer relevance, but I would like to see recent documents with better scoring. I was trying to add search query using AND_MAYBE, which should use relevance from both subqueries, but it didnt add any benefit to the
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 #define?_INC_MYDECIDER_H #include <xapian/enquire.h>
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
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 breaking existing user code which defines
2018 Jan 11
0
use xapian.Query.OP_VALUE_RANGE or use xapian.MatchDecider?
HI, We have an index database of products, about 20 million. We had constructed the title and description of products into posting list, and also stored some values of properties into slot, such as the price, comment count, production date, click number of the products. Now we want select some products which satisties specific condition, such as contain the term of "shirt" and
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
2017 Mar 09
3
Inconsistent query results
"Kirill A. Shutemov" <kirill at shutemov.name> writes: > Hello, > > I found that on particular queries notmuch return different results if run > the query few times. Re-initialing the query or db doesn't help. > > I've attached test case along with corpus of messages. > > Unpack the archive and run `make' there. It will initialize the notmuch
2014 Apr 13
2
Adding an external library to Xapian
We are using the --enable-maintainer-mode and will move to git soon. The diff file is attached. *Siddhant Mutha* Undergraduate Student Department of Computer Science and Engineering IIT Madras Chennai http://www.siddhantmutha.com/ <http:/www.siddhantmutha.com/> On Sun, Apr 13, 2014 at 8:26 PM, James Aylett <james-xapian at tartarus.org>wrote: > On 13 Apr 2014, at 15:48, Pallavi
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
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 ??
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 SWIG was not supporting Directors for PHP, but now, it seems to
2016 Sep 22
0
issues compiling omega
On Thu, Sep 22, 2016 at 05:10:32PM -0400, John Bankert wrote: > That was exactly the issue. libmagic.dll.a was in /lib under cygwin. Adding > a -L/lib took care of this. The "share" vs "lib" distinction is that "share" is for files which are architecture independent. So executable machine code will (well, should) never be there, only data files, scripts,
2006 May 10
1
Documentation for the PHP OO wrapper
I finally had a chance to spend some time on Olly's idea about generating documentation for the object-oriented PHP wrapper http://www.oligarchy.co.uk/xapian/patches/xapian9.phps >Another way to approach it might be to postprocess Doxygen's XML output >(which would allow mechanical changes to match PHP syntax). > > I wrote an xslt script to test the idea (It is one of the
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
2016 Apr 22
2
Weighting recent results
I did some digging and found a thread from 2011 talking about how to subclass Xapian::PostingSource in order to incorporate the date or recency of a document in its weighting: http://thread.gmane.org/gmane.comp.search.xapian.general/8849/focus=8856 As in that thread, I want to be clear that I don't want to sort by date, but rather incorporate date information into the score by which I
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
2011 Mar 11
2
int to string TypeError annoyance
Hi All, In Perl, $db->set_metadata( "foo", 10 ); Results in, TypeError in method 'WritableDatabase_set_metadata', argument 3 of type 'std::string const &' It looks like this is thrown by the SWIG std::string typemap. Does someone with better SWIG skills than me know how to fix SWIG such that it converts the int to a string rather than croaking? (And
2005 Nov 27
1
[PHP5] Xapian not compiling
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1522" name=GENERATOR></HEAD> <BODY> <DIV>&nbsp;</DIV></BODY></HTML>