Ordwildseek and ADS

This forum is for general support of Xbase++
Message
Author
Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Ordwildseek and ADS

#1 Post by Wolfgang Ciriack »

Is there an replacement for Ordwildseek, when using the ADS Server ?
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Ordwildseek and ADS

#2 Post by rdonnay »

Ads supports fast text search indexes. This may be what you want. Are you using ads now?
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Ordwildseek and ADS

#3 Post by Wolfgang Ciriack »

I have now converted my app to DBF/FTP/CDX and try to ged rid of some problems with the ADS.
My first test at a customer looks good - speed in network is better then without ADS.
But as always there are some hints like the crypt() function (already resolved) and ordwildseek().
Do you have an example for fast text search with ADS ?
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Ordwildseek and ADS

#4 Post by rdonnay »

I don't have a sample. Remind me in about 1 week after I get back home from vacation.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Ordwildseek and ADS

#5 Post by rdonnay »

I looked into this.

I have absolutely no experience with ADS fast text search indexes. I know they exist but I don't know anyone who uses them. I had planned to experiment with them but now I have too much work on my plate. I know no more about this than you do. What I have read in the documentation is that "full text search" indexes are designed to be used only in SQL queries because to use them you need to use scalar functions in your SQL SELECT statements.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 481
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: Ordwildseek and ADS

#6 Post by Wolfgang Ciriack »

Hi Roger,
i found a fast and nice solution with the help of the german forum.

Code: Select all

         cfilter:="{|| contains(tele1,'*"+cSuch+"*')}"
         bfilter:=&cfilter
         kota->(dbSetFilter(bfilter))
         kota->(dbgotop())
         if cSuch $ kota->tele1
....
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Ordwildseek and ADS

#7 Post by rdonnay »

Great. Thanks for posting it.
The eXpress train is coming - and it has more cars.

User avatar
Tim K
Posts: 51
Joined: Thu Jun 03, 2010 3:55 pm

Re: Ordwildseek and ADS

#8 Post by Tim K »

I'm using the dbsetfilter( with the contains( ) function above and it works well on most searches. However, I'm getting "internal data corruption" errors for certain words, consistently. Search on "WOOD", no problem, "COOPER" it errors out. Any ideas?

User avatar
rdonnay
Site Admin
Posts: 4774
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Ordwildseek and ADS

#9 Post by rdonnay »

Where did you get the Contains() function?
The eXpress train is coming - and it has more cars.

User avatar
Tim K
Posts: 51
Joined: Thu Jun 03, 2010 3:55 pm

Re: Ordwildseek and ADS

#10 Post by Tim K »

Wolfgang had it in his post.

> cfilter:="{|| contains(tele1,'*"+cSuch+"*')}"
> bfilter:=&cfilter
> kota->(dbSetFilter(bfilter))
> kota->(dbgotop())
> if cSuch $ kota->tele1

It's an ADS function.

Post Reply