I would guess you are not using the correct analyzer for you desired use
case.
The analyzer breaks the words into individual tokens to be searched.
To enable a different analyzer you can do the following;
create index desc_idx ON products ( brands bts_char_ops)
USING bts ( analyzer="whitespace") IN sbsp1;
John F. Miller III
STSM, Lead Architect
miller3@us.ibm.com
503-747-1366
IBM Informix Dynamic Server (IDS)
datablade-list-bounces@iiug.org wrote on 11/19/2014 07:48:16 AM:
> From: "MICHAEL HOFFMAN"<mrh@panix.com>
> To: datablade-list@iiug.org
> Date: 11/19/2014 07:48 AM
> Subject: BTS not searching for numbers? [336]
> Sent by: datablade-list-bounces@iiug.org
>
> Hi All,
> We are testing the BTS functionality. It seems as if the searches
> are ignoring
> strings with leading numbers.
>
> We have a name field indexed with BTS.
>
> A search for "where name LIKE '2STEP%'" returns 4 rows.
> The similar search "where bts_contains(name,'2STEP*')" returns ZERO rows.
>
> However a search for "where bts_contains(name,'STEP*')" returns multiple
rows
> beginning with STEP, **including the 4 rows beginning with 2STEP***!
>
> Is this how BTS searches are supposed to work? Is there a setting
> somewhere to
> tell BTS to include the leading numbers of a string?
>
> Thanks,
> Michael
>
>
>
>
>
*******************************************************************************
To post a response via email (IIUG members only):
1. Address it to datablade-list@iiug.org
2. Include the bracketed message number in the subject line: [337]
*******************************************************************************
case.
The analyzer breaks the words into individual tokens to be searched.
To enable a different analyzer you can do the following;
create index desc_idx ON products ( brands bts_char_ops)
USING bts ( analyzer="whitespace") IN sbsp1;
John F. Miller III
STSM, Lead Architect
miller3@us.ibm.com
503-747-1366
IBM Informix Dynamic Server (IDS)
datablade-list-bounces@iiug.org wrote on 11/19/2014 07:48:16 AM:
> From: "MICHAEL HOFFMAN"<mrh@panix.com>
> To: datablade-list@iiug.org
> Date: 11/19/2014 07:48 AM
> Subject: BTS not searching for numbers? [336]
> Sent by: datablade-list-bounces@iiug.org
>
> Hi All,
> We are testing the BTS functionality. It seems as if the searches
> are ignoring
> strings with leading numbers.
>
> We have a name field indexed with BTS.
>
> A search for "where name LIKE '2STEP%'" returns 4 rows.
> The similar search "where bts_contains(name,'2STEP*')" returns ZERO rows.
>
> However a search for "where bts_contains(name,'STEP*')" returns multiple
rows
> beginning with STEP, **including the 4 rows beginning with 2STEP***!
>
> Is this how BTS searches are supposed to work? Is there a setting
> somewhere to
> tell BTS to include the leading numbers of a string?
>
> Thanks,
> Michael
>
>
>
>
>
*******************************************************************************
To post a response via email (IIUG members only):
1. Address it to datablade-list@iiug.org
2. Include the bracketed message number in the subject line: [337]
*******************************************************************************