7.4 Full-text index

 

SQL

SELECT *
FROM Customers
WHERE CustomerID like '%ANA%'

SPL

A
1 =file(“Customers.ctx”).open()
2 =A1.index@w(IDW;CustomerID)
3 =A1.icursor(like(CustomerID,“ANA”)).fetch()

A2 Create full-text index on CustomerID column.
A3 Perform like match query according to index field. Note: If the value being matched is an English word or a number, the match string should contain at least three characters; if the value under match is a Chinese character, there isn’t restriction on the number of characters in the match string.