This function was typically used to enable partial string search functions on a portal before we had portal filters. A portal filter using the patternsearch function is much simpler to implement and produces the same result.
Is this why you want this text? Do you have a reason not to use a portal filter with patterncount?
Thank PhilModJunk, i didnt know that its the same with patterncount, will check it out.
Take a look at the filtered search portal examples found in:
One uses the Left function to get results the same as a relationship based match using GetString (starts with this text....). The other uses PatternCount (Field contains the search text...)