[ic] simple search question :)

Andreas Lindenblatt interchange-users@lists.akopia.com
Tue Jun 5 05:38:00 2001


Hi John,

> > > > never works (returns nothing) for:
> > > > 3er-Reihe, Typ 3B,3C,3/CG (E36)
> > > > 5er-Reihe , Typ 5/D (E39)
> 
> Have you verified that these values are actually in the scratch variable?
Yes. They are in the scratch variable.

> You are correct. It will find ALL cases of Audi 80, even if it is part pf a
> larger sentence... This is why I take it you were trying to use the su
> parameter... My understanding of the su parameter is it is for substring matches
> in words, not sentences.. So se=Au would find Audi or Aunt... Not the first 2
> words of a sentence...
Which tag could I use to match a whole 'sentence'?

> > have to have the spaces in it, don't I? Shall I escape them?
> 
> Escaping them would possibly help... The way you are formatting the loop command
> is just not the best way to do it.
ok, I'm trying this next. 


> Well I am not going to dibate this point with you. Your parameter is WRONG. Your
> search only works sometimes. Part of that is the way you have written you loop
> command. It is not the best way to do it.

I'm eager to learn - and I know I'm doing something wrong :). What would
be a better way to write the loop command?

> You can try adding the op=eq back to my original code... It may or may not help.
> But run my code the way I typed it and not the way you format it.
Yep, I tried the op=eq already, it doesn't change the result. 
See, I don't insist on using 'my code', obviously it doesn't do what I
want it to do - I already use your code, it 'feels' better :).

> DO you run the results through a [more] tag or not? If not and it is just one
> big list, do you search and then durring the display list just don't display the
> items that arn't a perfect match with a simple if statement.
This (filtering with if) would indeed solve part of the problem. 
But it doesn't solve the issue of getting no result at all - or answer
the question why I do get a result with '3er-Reihe,346L/C/R, (E46)' and
none with '5er-Reihe , Typ 5/D (E39)' while both values are definitely
in the MySQL-Table.


-- 
----
BYE Andreas