Apologies if this question is answered in the docs and/or in the list archive. I checked both. I'm wondering if there is currently a feature to sort by multiple document values. For example, sort first by timestamp, then by URL. I see set_sort_by_value() works for a single value. Thanks. -- Peter Karman . http://peknet.com/ . peter@peknet.com
On Mon, Nov 14, 2005 at 10:51:35PM -0600, Peter Karman wrote:> I'm wondering if there is currently a feature to sort by multiple document > values. For example, sort first by timestamp, then by URL. I see > set_sort_by_value() works for a single value.There isn't. The plan is to allow the user to specify a custom search function by subclassing a functor (like how MatchDecider works). There are some relevant thoughts in this (closed) bug report: http://www.xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=57 Cheers, Olly
A question about stemmer. When I stem query I use the following code: pqp=new QueryParser(); Stem stem(sLang); pqp->set_stemmer(stem); pqp->set_database(*_pdatabase); pqp->set_default_op(Query::OP_AND); Query p=pqp->parse_query(_sXapian); But it does not seem to stem the words.
Hello , when I try to stem a query using the following code the phrase does not seem to be stemmed. I use Xapian version 0.9.2. pqp=new QueryParser(); Stem stem(sLang); //Language tried is Norwegian pqp->set_stemmer(stem); pqp->set_database(*_pdatabase); pqp->set_default_op(Query::OP_AND); //Set the enquire Query p=pqp->parse_query(_sXapian); When I try to stem using the stem class and stem_word is works. Does not Query Parser work properly for stemming ? Best regards, IB