Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Google-like queries in FoxPro apps
Message
 
To
02/05/2002 18:52:09
Rick Graves
Advanced Approach Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00624182
Message ID:
00652445
Views:
23
I will think on putting only one word in the keyword table. My original reasoning for doing multiple-word keywords (is that an oxymoron?) was to pick up a phrase, so if you are searching for
"telephone system"
and in my keyword table I have
iKey cData
1 joe telephone system
1 telephone system joe
1 system joe telephone
2 keyboard telephone
2 telephone keyboard
3 bill telephone system
3 telephone system bill
3 system bill telephone
then you would get back iKey values of 1 and 3, but not 2. If I only had "telephone" in the keyword list, then the user would get back 1,2,3. But I will think on this some more.....

And the rank/priority thing is a good idea as well.

Thanks!



>Steve,
>
>I think you are on the right track.
>
>I was surprised that my inquiry did not get any right-on responses at first. Perhaps we FoxPro programmers have been thinking "in the box" of traditional database application searches FOR ALL THESE YEARS! Something new has come along -- Google searches are better!
>
>I have a suggestion: In your key word table, only put one key word in cText field. This will allow the field to be shorter, making the table and index files much smaller. (As a result, including the memo fields is not such a big burden.) If I understand your approach, this should work. You can also do several separate SQL queries and join the results. There is a good FAQ in the UT archives on this, See FAQ#8109. The title is something like Rushmore - not always optimal.
>
>Also, consider a rank/priority field for the key word file. Words from important character fields get a higher rank than words from less important character fields, and these get a higher rank than words from memo fields. This will allow you to prioritize the results and put the best on top, like Google does.
>
>I hope this effort will make applications better. It should.
>
>Rick
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform