Oops, my patch isn't case insensitive the line:

if(memcmp(buf+curr, str, (size_t)slen) == 0)

should look like this:

if(memcmp(buf+curr, pat.data(), (size_t)slen) == 0)


sorry

> Hi,
>
> i'm using table::select to fetch values out of a text column.
>
> Its working fine with strings up to a length of 7 bytes but when
> querying a string
> greater than 7 bytes the returned resultset inludes too much values.
>
> I checked the source code of category.cpp and found in
> ibis::text::stringSearch(const char* str, ibis::bitvector&  hits)
> that strings are matched up to 7 bytes only.
>
> I fixed it for normal strings (the patch is attached to this mail) cause
> it works in my use-case.
> I'm not sure if other code blocks within this method are also limited to
> 7 bytes.
>
> Is it possible to extend the complete functionality of text searching to
> match strings greater than 7 bytes?
>
> Kind regards,
>
> Bernd Jaenichen
>
>    


-- 
-- 
Bernd Jaenichen
Senior Software Developer | [email protected]
Phone +49 2233 7933 795 | Fax +49 2233 7933 788

Globalpark AG | Kalscheurener Str. 19a | 50354 Huerth | Germany
Vorstand/Chief Executive Officer (CEO) | Dr. Lorenz Graef
Vorsitzender d. Aufsichtsrats/Chairperson of the Supervisory Board |
Dr. Richard C. Geibel | HRG Amtsgericht Koeln/Entered on Cologne
Local Court Commercial Register | HRB 64032

GLOBALPARK - manage what matters | http://www.globalpark.de

_______________________________________________
FastBit-users mailing list
[email protected]
https://hpcrdm.lbl.gov/cgi-bin/mailman/listinfo/fastbit-users

Reply via email to