Skip to main content.
home | support | download

Back to List Archive

Re: limiting search results by path using SWISH::API

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Mon Aug 23 2004 - 18:11:15 GMT
On Mon, Aug 23, 2004 at 09:22:57AM -0700, mpeters wrote:
> The site is setup so that protected documents are in a /protected 
> dir in the document root. Is there a way to tell swish-e to not 
> index these documents?

Sure.  Depends on the method you are using to index them.  FileRules
is one option, or use robots.txt, or use .htaccess, or exclude them in
a test_url() function in spider.pl, or don't link to them if using the
spider.

> This would solve my first problem, but then I have another. If the
> customer later decides that he want's these documents indexed but
> only accessible to the right people, is there a way to tell the
> $search->Execute() to not include documents based on their path? Or
> do I have to accumulate all of the results and then eliminate the
> ones I don't want using the 'swishdocpath' property?

How about a separate index for the protected docs?

-- 
Bill Moseley
moseley@hank.org
Received on Mon Aug 23 11:11:33 2004