Difference between revisions of "SET TSLENGTH"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
Line 37: | Line 37: | ||
==Products== | ==Products== | ||
Recital Database Server, Recital Mirage Server, Recital Terminal Developer | Recital Database Server, Recital Mirage Server, Recital Terminal Developer | ||
+ | [[Category:Documentation]] | ||
+ | [[Category:Commands]] | ||
+ | [[Category:Set_Commands]] |
Revision as of 17:27, 10 March 2009
Contents
SET TSLENGTH
Class
Text Searching
Purpose
Specify size of Text Search Index key
Syntax
SET TSLENGTH TO <expN>
See Also
INDEX, KEY(), LOWER(), NDX(), TSPOS(), TSWORD(), UPPER(), SET INDEX, SET ORDER, DB_TSINDEX
Description
The SET TSLENGTH set command determines the size of Text Search Index keys. The default is 32 characters. The value to set is specified in <expN>. Smaller keys may result in inaccurate searches if the data is truncated.
The actual stored key value will be 10 bytes larger than the TSLENGTH to allow for additional text search information in the key.
The UPPER() or LOWER() functions can be used when creating indexes and when conducting index searches to make them case-insensitive.
The DB_TSINDEX environment variable / symbol must be set to "ON" when building or using Text Search Indexes.
Example
set tslength to 15 use example index on tsword(first_name,1) to shortname
Products
Recital Database Server, Recital Mirage Server, Recital Terminal Developer