Why not have the link built into the collection? So why you do the indexing
from the db instead of the title being 'xxx' the title is '<a
href="mylinkto.htm">xxx</a>'?

Then when you're outputting the results when the user has selected all
collections you don;t need to worry about which individual collection the
result came from.

Alex

> -----Original Message-----
> From: Ian Vaughan [mailto:[EMAIL PROTECTED]]
> Sent: 29 January 2003 09:09
> To: CF-Talk
> Subject: Re: Coldfusion and Verity Results ???
> 
> 
> Ryan
> 
> When I set up my collections I am already using the custom1 
> and 2 fields in
> my collections.
> 
> I have the search working when just searching individual 
> collections as you
> can see from my code in the previous mail, I just need the 
> search to return
> all search results when the user selects search all collections
> 
> So could I use another approach ?? for example use cfif
> isDefined(collectionname) ????
> 
> For example
> 
> <cfelse>
>    <!---Start output for all results--->
>             <p>&nbsp;
>             <CFOUTPUT query="GetResults" maxRows="#Form.MaxRows#">
> 
>     <cfif isDefined "downloads
>      <cfoutput query="GetResults" maxRows="#Form.MaxRows#">
> 
>       <B><a
> href="http://intranet.neath-porttalbot.gov.uk/itintranet/itdow
> nloads/downloa
> ds/#custom1#">#title#</a></B>
>       <p>#summary#<br>
>       Search Relevance :#NumberFormat ( Round ( Score * 100) )# %</p>
> 
>      </CFOUTPUT>
> </cfif>
> 
>     <cfif isDefined "itlinks
>      <cfoutput query="GetResults" maxRows="#Form.MaxRows#">
> 
>       <B><a href="linkurl#">#linktitle#</a></B>
>       <p>#summary#<br>
>       Search Relevance :#NumberFormat ( Round ( Score * 100) )# %</p>
> 
>      </CFOUTPUT>
> </cfif>
> 
> etc.............
> 
> ----- Original Message -----
> From: "Ryan Kime" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, January 28, 2003 4:56 PM
> Subject: RE: Coldfusion and Verity Results ???
> 
> 
> > Ian,
> >
> > I am doing the same thing you are trying to get at. My 
> results can be any
> > number of collections including text-based and db-based, 
> just supply cfif
> > statements if the custom parameters are supplied for this particular
> record.
> > If you have set up the "return url" correctly in the 
> collections, you will
> > be able to use the #url# parameter instead of static links such as
> > "/itdownloads/downloads/"
> >
> >
> > <tr>
> > <td>&nbsp;</td>
> > <td colspan="2">url: <a href="#url#<cfif
> > isDefined("custom1")>#custom1#</cfif>">#url#
> > <cfif isDefined("custom1")>#custom1#</cfif></a>
> > </td>
> > </tr>
> >
> > -----Original Message-----
> > From: Ian Vaughan [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 28, 2003 5:59 AM
> > To: CF-Talk
> > Subject: Coldfusion and Verity Results ???
> >
> >
> > Hi
> >
> > I would be grateful if somebody with an in depth experience 
> of coldfusion
> > and verity can help moe achive my goal here please....
> >
> > From the search form below the user has the option of 
> searching all of the
> > site or just individual collections such as Links, Software 
> Downloads...
> >
> > <FORM action="search11.cfm" method="post" name="searchform">
> >
> > <input type="hidden" name="StartRow" value="1">
> > <input type="hidden" name="MaxRows" value="25">
> >
> > Search for : <input name="Criteria" size="25" value="">
> >
> > <select name="search" size="1">
> > <option value="All">All of the site</option>
> > <option value="itlinks">Links</option>
> > <option value="downloads">Software Downloads</option>
> > <option value="itdocs">Document Knowledgebase</option>
> > <option value="itarticles">News/Area</option>
> > </select>
> > </form>
> >
> > In the search results page how can the results of the 
> search be shown, as
> > the user may have chosen to search all the site 
> (collections) if this is
> the
> > case then I have the following problem...
> >
> > Because each link from each collection would be different 
> for example
> (show
> > below), how could this functionality be achieved in the results??
> >
> > <a href="/itdownloads/downloads/#custom1#">#title#</a>
> > <a href="/itnews/articledetail.cfm?id=#key#">#title#</a>
> > <a href="#custom1#">#title#</a>
> >
> >
> >
> >
> >
> >
> > 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to