Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 15 of 15 total
Thread Different results using TextIndex
Sun, Sep 1 2013 12:12 PMPermanent Link

Uli Becker

I did some further tests on that and it seems that there is a problem
with the combination of "like" and "contains".

I changed all indexes to TextIndex.

This query using "contains" works fine:

select  Caption, Search, Text from Folders where
(
Caption contains '*steuer*'
or Search contains '*steuer*'
or text contains '*steuer*'
)
AND
(
Caption contains '*ident*'
or Search contains '*ident*'
or text contains '*ident*'
)

while this one mixing "like" and "contains" fails:

select  Caption, Search, Text from Folders where
(
Caption like '%steuer%'
or Search contains '*steuer*'
or text contains '*steuer*'
)
AND
(
Caption like '%ident%'
or Search contains '*ident*'
or text contains '*ident*'
)

The latter doesn't find the record with 'steuer' and 'ident' in the
field "Caption".

Uli




Sun, Sep 1 2013 11:10 PMPermanent Link

Michael Riley

ZilchWorks

Avatar

Uli Becker wrote:

> I did some further tests on that and it seems that there is a problem
> with the combination of "like" and "contains".
>
> I changed all indexes to TextIndex.
>
> This query using "contains" works fine:
>
> select  Caption, Search, Text from Folders where
> (
> Caption contains '*steuer*'
> or Search contains '*steuer*'
> or text contains '*steuer*'
> )
> AND
> (
> Caption contains '*ident*'
> or Search contains '*ident*'
> or text contains '*ident*'
> )
>
> while this one mixing "like" and "contains" fails:
>
> select  Caption, Search, Text from Folders where
> (
> Caption like '%steuer%'
> or Search contains '*steuer*'
> or text contains '*steuer*'
> )
> AND
> (
> Caption like '%ident%'
> or Search contains '*ident*'
> or text contains '*ident*'
> )
>
> The latter doesn't find the record with 'steuer' and 'ident' in the
> field "Caption".
>
> Uli

Uli,

Thanks for following up.

--
Michael Riley
GySgt USMC (Ret)
www.zilchworks.com
Mon, Sep 2 2013 3:50 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Uli


Have you sent a test case to Tim so he can fix it?

Roy Lambert
Mon, Sep 2 2013 4:02 AMPermanent Link

Uli Becker

Roy,

<<Have you sent a test case to Tim so he can fix it?>>

not yet, but I'll do that soon.

Uli
Tue, Sep 3 2013 2:18 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< not yet, but I'll do that soon. >>

Please do - I'm getting ready to do a new build in the next week, and I'm
only averaging about a new build every month.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image