Vishnu Kumar
2013-Mar-02 05:11 UTC
[Xapian-devel] How to add an custom weight to the relevancy value and sort it.
Hello guys, I have an weight value which is calculated by some factor and i need to add the weight with the relevancy value of a result and sort it with that value is that possible in xapian. Thanks, VishnuKumar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20130302/9831e287/attachment-0001.html>
Parth Gupta
2013-Mar-02 05:55 UTC
[Xapian-devel] How to add an custom weight to the relevancy value and sort it.
Hi Vishnu, You need to use quest.cc like program and perform your operations on the mset. See lines 165-172 of http://trac.xapian.org/browser/branches/gsoc2011-parth/xapian-core/examples/quest.cc And you can add your weights to the i.get_weight()->store in a map with docid and sort it. To sort it you can use something like lines 235-244 of http://trac.xapian.org/browser/branches/gsoc2011-parth/xapian-letor/examples/questletor.ccwhich basically calculates new weights for the documents, add it in a sorted map and reprint it. Parth. On Sat, Mar 2, 2013 at 1:11 PM, Vishnu Kumar <vishnu at searchlabs.org> wrote:> Hello guys, > > I have an weight value which is calculated by some factor and i need to > add the weight with the relevancy value of a result and sort it with that > value is that possible in xapian. > > Thanks, > VishnuKumar > > _______________________________________________ > Xapian-devel mailing list > Xapian-devel at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-devel > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20130302/7bc7a649/attachment-0001.html>
James Aylett
2013-Mar-02 14:18 UTC
[Xapian-devel] How to add an custom weight to the relevancy value and sort it.
On 2 Mar 2013, at 05:11, Vishnu Kumar <vishnu at searchlabs.org> wrote:> I have an weight value which is calculated by some factor and i need to add the weight with the relevancy value of a result and sort it with that value is that possible in xapian.One way of doing this is using a PostingSource. Docs at <http://xapian.org/docs/postingsource.html> and <http://getting-started-with-xapian.readthedocs.org/en/latest/xapian-core-rst/postingsource.html>. J -- James Aylett, occasional trouble-maker xapian.org
aarsh shah
2013-Mar-02 19:06 UTC
[Xapian-devel] How to add an custom weight to the relevancy value and sort it.
Hi Vishnu :) I think this what you are looking for :- http://xapian.org/docs/postingsource.html The documentation and code for the API can be found here :- http://xapian.org/docs/sourcedoc/html/classXapian_1_1PostingSource.html -Regards -Aarsh. On Sat, Mar 2, 2013 at 5:30 PM, <xapian-devel-request at lists.xapian.org>wrote:> Send Xapian-devel mailing list submissions to > xapian-devel at lists.xapian.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.xapian.org/mailman/listinfo/xapian-devel > or, via email, send a message with subject or body 'help' to > xapian-devel-request at lists.xapian.org > > You can reach the person managing the list at > xapian-devel-owner at lists.xapian.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Xapian-devel digest..." > > > Today's Topics: > > 1. How to add an custom weight to the relevancy value and sort > it. (Vishnu Kumar) > 2. Getting Started (Mohd Azeem) > 3. Re: Reading a password-protected PDF (Mohd Azeem) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 2 Mar 2013 10:41:49 +0530 > From: Vishnu Kumar <vishnu at searchlabs.org> > Subject: [Xapian-devel] How to add an custom weight to the relevancy > value and sort it. > To: xapian-devel at lists.xapian.org > Message-ID: > < > CADwY5FX9QMuaXW0b59FWbhkRoE_RBP_m8HDtmopoUXuqa9T6PA at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello guys, > > I have an weight value which is calculated by some factor and i need to add > the weight with the relevancy value of a result and sort it with that value > is that possible in xapian. > > Thanks, > VishnuKumar > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.xapian.org/pipermail/xapian-devel/attachments/20130302/9831e287/attachment.html > > > > ------------------------------ > > Message: 2 > Date: Sat, 2 Mar 2013 19:48:11 +0800 (SGT) > From: Mohd Azeem <azeem201001 at yahoo.in> > Subject: [Xapian-devel] Getting Started > To: xapian <xapian-devel at lists.xapian.org> > Message-ID: > <1362224891.33603.YahooMailNeo at web190103.mail.sg3.yahoo.com> > Content-Type: text/plain; charset="utf-8" > > Hello all, > I am Mohd Azeem. I want to contribute in Xapian but I am a newbie here. I > wonder if anyone could help me in getting started with Xapian. I have some > basic knowledge of IR and implemented TF*IDF and PageRank schemes, and also > implemented Inverted Index and Web-Crawler. > > > regards, > Azeem > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.xapian.org/pipermail/xapian-devel/attachments/20130302/7165c2c5/attachment-0001.htm > > > > ------------------------------ > > Message: 3 > Date: Sat, 2 Mar 2013 19:58:34 +0800 (SGT) > From: Mohd Azeem <azeem201001 at yahoo.in> > Subject: Re: [Xapian-devel] Reading a password-protected PDF > To: Zaim Zuhuri <mzaimz at gmail.com>, "xapian-devel at lists.xapian.org" > <xapian-devel at lists.xapian.org> > Message-ID: > <1362225514.15504.YahooMailNeo at web190103.mail.sg3.yahoo.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > Because the content is encrypted thus the crawler may not see the content. > But it may provide the search for the document on the basis of metadata > (name or other metadata info). > > > regards, > Azeem > > > ________________________________ > From: Zaim Zuhuri <mzaimz at gmail.com> > To: xapian-devel at lists.xapian.org > Sent: Wednesday, 27 February 2013 12:36 PM > Subject: [Xapian-devel] Reading a password-protected PDF > > > Hello respected developers, > > I was wondering if it is possible for xapian to read a password-protected > PDF. Searches in the archives and google had yield 0 results. I also tried > looking at the source code but I could not find the specific one related to > this issue. The characteristic of the set of PDF is as: > > 1. a set of password protected PDF documents > 2. all PDF is set with the same password. > 3. only the content of the PDF is encrypted, not the metadata.? > > If it is possible could you guys point me in the right direction. > > Thanks and warm regards, > > Zaim Zuhuri > _______________________________________________ > Xapian-devel mailing list > Xapian-devel at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-devel > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.xapian.org/pipermail/xapian-devel/attachments/20130302/c5225c3d/attachment-0001.htm > > > > ------------------------------ > > _______________________________________________ > Xapian-devel mailing list > Xapian-devel at lists.xapian.org > http://lists.xapian.org/mailman/listinfo/xapian-devel > > > End of Xapian-devel Digest, Vol 95, Issue 2 > ******************************************* >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20130303/cacc8f65/attachment.html>