On Tue, Oct 14, 2003 at 10:48:32AM +0200, Biot Olivier wrote: > I'd like to enable case-insensitive filtering for header fields. Basically, > I have a header field which is either encoded in textual or in binary form. > I would like to allow the user to filter based on the presence of a given > header by typing something like: > wsp.header.name == 'vary' > where the expression should match 'Vary', 'vary' and 'vArY'. Defining the > header as a FT_STRING[Z] only allows for case-sensitive filtering. > > Is this possible already,
No. > or should we define new FT_STRING[Z] type(s)? --> FT_STRING[Z]_I? That would be one possiblity, but that'd prevent people from doing case-sensitive filtering on those strings (which they might want to do for some reason), and it wouldn't allow people to do case-*in*sensitive filtering on FT_STRING[Z] fields. The right thing to do there might be to have a new operator for doing case-insensitive string comparison.