Sharjeel Ahmed Qureshi
2006-Dec-18 11:50 UTC
[Xapian-discuss] Case sensitivity in QueryParser
Hi, I am trying to use the query parser but somehow I can't find any option which enables case sensitivity. Currently, the query parser automatically converts all the terms to lower case in the returned Query object. In my case I don't want my terms converted to lower case. I've tried a lot but I couldn't find any such option. Can someone please help me out? Cheers, Sharjeel
On Mon, Dec 18, 2006 at 04:49:49PM +0500, Sharjeel Ahmed Qureshi wrote:> I am trying to use the query parser but somehow I can't find any option > which enables case sensitivity. Currently, the query parser > automatically converts all the terms to lower case in the returned Query > object. In my case I don't want my terms converted to lower case. I've > tried a lot but I couldn't find any such option. Can someone please help > me out?Sorry, there is no such option currently. You'll either have to modify the QueryParser to allow this (which should be fairly easy), or parse queries yourself. Cheers, Olly