Xbasic

KEYWORDSX Function

Syntax

Sorted_List as C = KEYWORDSX(C string)

Arguments

string

A string expression containing words separated by spaces.

Description

Returns a sorted list of all unique soundex words in a string.

Discussion

KEYWORDSX() returns a sorted list of the Soundex values of all of the unique words in string. This function is typically used to build an index for full text searching. When you build full text indexes on memo fields and other long character fields, Alpha Anywhere can find a word anywhere within long memos and character fields very quickly, using Lightning Query Optimization. KEYWORDSX() is case insensitive.

Example

? keywordsx("now is the time for all good men")
= "A400 F600 G300 I200 M500 N000 T000 T500"
' because only unique words are returned.
? keywordsx("now is the time for for for all good men")
="A400 F600 G300 I200 M500 N000 T000 T500"

See Also