<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=035323122-17032006>Hi
Developers,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=035323122-17032006>The search seems to
work nicely out of the box if you want everything in /sites/default indexed.
However, I'd like exclude many files from search results. I thought about
putting a restriction on the results page of the search and looking for a
property of each page to see if a custom value like ExcludeFromSearch was set. I
expect that would be very expensive, having to open each resource in a result
set and evaluate a property. (I also haven't figured out yet how to get from a
results list to a file object I can get the property from.)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=035323122-17032006>I would think it
would be better to have the indexing evaluate each file and decide whether to
add it to the index or not, perhaps using the same type of property flag. Is
there a way to do this? Or do I have to set up my index source with a set of
resources that are subdirectories of the /sites/default directory, so I can
create directories like /sites/default/restricted that are not indexed because
not defined as resources, and secure content by placing it in non-indexed
locations, like:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006><indexsource><BR>
<name>source1</name><BR> <indexer
class="org.opencms.search.CmsVfsIndexer" /><BR>
<resources><BR>
<resource>/sites/default/directory1</resource><BR>
<resource>/sites/default/directory2</resource><BR>
</resources></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006>...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006></indexsource></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=035323122-17032006>Easy but a pain to
maintain and forces non-search content to live far from its related content
siblings.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=035323122-17032006>Dennis</SPAN></FONT></DIV></BODY></HTML>