[thelist] cfsearch of a path returns no results

Chris Hayes chris at londonweb.net
Wed Apr 14 06:09:19 CDT 2004


extensions=".*"  definitely will not work.

I tried the following and it returned the one result of my test.htm file:

<cfindex action="REFRESH"
         collection="cfsearchTest"
         key=" - hard coded path - "
         type="PATH"
         extensions=".htm"
         recurse="Yes">

<cfsearch
   name="searchResults"
   collection="cfsearchTest"
   criteria="test">


----- Original Message ----- 
From: "Sarah Sweeney" <mr.sanders at designshift.com>
To: <thelist at lists.evolt.org>
Sent: Tuesday, April 13, 2004 8:05 PM
Subject: Re: [thelist] cfsearch of a path returns no results


> > OK.. I haven't used CF for file indexing since version 3 but I remember
it's
> > quirky about 2 things, paths and extensions.
> >
> > I imagine you're
> >     key="#GetDirectoryFromPath(GetBaseTemplatePath())#"
> > is pointing in the right place.. probably the first thing you checked .
>
> Yes, I did check this, and I've also tried hard coding the value, which
> doesn't help.
>
> > But as you're indexing htm(L) extensions, and these are default you
don't
> > need to specify the extension attribute in your cfindex tag.  If you do
> > specify it I think it goes like this:
> >
> >     extensions=".txt, .pdf"
>
> I was planning on changing this to just .html later, but for now left it
> as less restrictive, to see if it would help with getting some search
> results. Even with several dummy files with various extensions in the
> directory, I get no results.
>
> Sarah
>
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !



More information about the thelist mailing list