Eric Bus
2006-Mar-09 22:28 UTC
[Xapian-discuss] Current status of reverse sorting and unstemmed searching on stemmed database
Hi, I remember a conversation from about a year ago about reverse sorting with Omega. Is this feature still on the TODO list? I would like to reverse sort on 2 fields. Sorting on them works, but the code for reverse sorting seems to be missing. Second question. Is it possible to disable stemming at query time when the database has been indexed with a certain stemming algorithm? Some of our users don't like the stemming feature, others do. So I would like to disable the stemming for certain queries. Adding $set{stemming,none} to the Omega template resulted in no results, but maybe it's not possible at all? Best Regards, Eric Bus
Olly Betts
2006-Mar-10 00:12 UTC
[Xapian-discuss] Current status of reverse sorting and unstemmed searching on stemmed database
On Thu, Mar 09, 2006 at 11:27:31PM +0100, Eric Bus wrote:> I remember a conversation from about a year ago about reverse sorting > with Omega. Is this feature still on the TODO list?It was implemented some time ago, and released in 0.9.3. See the SORTREVERSE cgi parameter.> Second question. Is it possible to disable stemming at query time when > the database has been indexed with a certain stemming algorithm? Some of > our users don't like the stemming feature, others do. So I would like to > disable the stemming for certain queries. Adding $set{stemming,none} to > the Omega template resulted in no results, but maybe it's not possible > at all?Currently Omega stores the terms in stemmed form, so they aren't there to search for unstemmed. Capitalised terms are also stored unstemmed with an R prefix, but that doesn't allow a general "unstemmed search". The R-prefix approach isn't ideal, and I have some thoughts on a better strategy, but I need to try them out and see how they actually perform. Anyway, right now your simplest solution is probably to build a second index without stemming to provide the "unstemmed search". Cheers, Olly
Olly Betts
2006-Mar-10 16:21 UTC
[Xapian-discuss] Current status of reverse sorting and unstemmed searching on stemmed database
On Fri, Mar 10, 2006 at 04:10:26PM +0100, Eric Bus wrote:> I just installed Xapian and Omega 0.9.4 but now I seem to have a problem > with my existing template. The $field{} values aren't included in the > output. When I run a simplesearch I get the following information: > > Performing query `Xapian::Query(test)' > 76 results found > ID 12780 100% [artikelid=947577 > omschrijving=blablablalba > ] > ID 873961 99% [artikelid=5177608 > omschrijving=blablablalba > ] > > This looks ok and I haven't changed anything in both my templates and > indexer. Still, $field{artikelid} isn't resulting in the requested values. > > Any idea what could be wrong? Both simplesearch and omega are linked to > libxapian.so.10...I suspect you're hitting this bug: http://xapian.org/cgi-bin/bugzilla/show_bug.cgi?id=72 Can you try the patch in that bug report? Cheers, Olly