How to find words and phrases as well

Wilhelm Sanke sanke at hrz.uni-kassel.de
Fri Jan 27 16:40:42 EST 2006


On Fri Jan 27, André.Bisseret Andre.Bisseret at inria.fr wrote:

 

>   Every card in my app are including a fld « theText » which displays  
> texts.
> In a special fld « keyWords » the user can write one or several words
> separated by spaces, say, theKeyWordsList.
> A button « search » executes « find words theKeyWordsList in fld «
> theText » such as the list of cards whose text includes all the words
> of theKeyWordsList is displayed to the user in a specific results field.
>
> I would like to be able to find not only words but also phrases. For
> example, the users should be able to enter « user interface » as a
> whole, while now they only can enter the two words « user » and «
> interface ». (not sure I am clear enough ?!).
> How to distinguish, for a find command, « user interface » as a phrase
> from « user interface » as two words.
>
> André
> from Grenoble


Try the offset function.

One of the many examples where this is implemented are my stacks for 
searching the Rev documentation "searchDocs XML".

See page "Tools and Samples for Development" of my website 
"http://www.sanke.org/MetaMedia".

Regards,

Wilhelm Sanke





More information about the use-livecode mailing list