How to find words and phrases as well
André.Bisseret
Andre.Bisseret at inria.fr
Sat Jan 28 09:26:58 EST 2006
Thanks a lot Wilhelm for your answer and your website I am discovering
; it is including very useful tools and I am learning a lot from it.
However, I am worrying about using the offset function for several
reasons :
- actually, I have several fields to search in (what I should have
mention in my question, sorry);
- the user should be allowed to write several words or phrases that
should be search in this several fields;
- I would like to find each occurrence of each word and phrases in the
fields (I am highlighting each of them when the user arrives on one of
the found card, starting from the results list).
- In order to be retain, a card should include alls the words or
phrases written by the user (in other words, I would like an implied
"AND", not an "OR".
With the "find" function it is rather easy and fast, and currently, my
app works well but with the restriction that the user can ask only for
single-word keywords, not phrases.
I keep feeling that I can't easily use the offset function to obtain
what I want to ; Likely, I am missing something ?
best regards
from Grenoble
André
Le Friday, 27 Jan 2006, à 22:40 Europe/Paris, Wilhelm Sanke a écrit :
> 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