PLEASE HELP... Adding FIELD and Contains to search

Hello,

I have the following search code behind a $$Return field. I want to search specific fields and am not sure how to add that to the query. There will be several fields that I will need to add to the query. Can someone help?

Thanks,

Here’s my code:

REM {If nothing to search for return to search form!};

@If(@Trim(Query)=“”&@Trim(SearchQuery)=“”; @Return(“[/”+@WebDbName + “/search]”);“”);

REM {Build the search};

searchfor:=@If(

QuickSearch=“1”; Query;

@If(

SearchLookFor=“1”; @ReplaceSubstring(@Trim(SearchQuery); " "; " AND ");

SearchLookFor=“2”; @ReplaceSubstring(@Trim(SearchQuery); " "; " OR ");

SearchLookFor=“3”; SearchQuery;

SearchQuery

)

);

options:=@If(QuickSearch=“1”; “”;

+@If(SearchWV=“1”; “&SearchWV=TRUE”; “&SearchWV=FALSE”)

+@If(SearchFuzzy=“1”; “&SearchFuzzy=TRUE”; “&SearchFuzzy=FALSE”)

);

“[/” + @WebDbName + “/srch?SearchView&Query=” + searchfor + “&count=25&SearchMax=0&SearchOrder=3” + options + “]”

Subject: PLEASE HELP… Adding FIELD and Contains to search

An example for you:

http://www-10.lotus.com/ldd/nd6forum.nsf/search/?SearchView&query=FIELD%20from%20CONTAINS%20robledo&SearchOrder=1&SearchMax=0&Start=1&Count=100

Subject: RE: PLEASE HELP… Adding FIELD and Contains to search

Thanks Wayne… would you be able to tell me how I would build it in to my query? That’s the part I’m stuck on.