Maybe this is a naive question, but why don't you simply exclude those
docs *when searching* instead ?
(i.e by adding some condition(s) to your queries)
-g
On Jul 23, 2009, at 12:58 PM, rainer wrote:
Hi list,
we are trying to exclude a folder containing old documents from being
indexed by JCR.
Our current idea is the following:
reference a special index config file in workspace.xml:
...
<SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
...
this is the file:
<?xml version="1.0"?>
<!DOCTYPE configuration SYSTEM
"http://jackrabbit.apache.org/dtd/indexing-configuration-1.0.dtd">
<configuration xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
xmlns:mgnl="http://www.magnolia.info/jcr/mgnl">
<index-rule nodeType="mgnl:contentNode" condition="ancestor::*/
@title =
'trash'">
<property>i-dont-exist</property>
</index-rule>
<index-rule nodeType="mgnl:resource" condition="ancestor::*/
@title =
'trash'">
<property>i-dont-exist</property>
</index-rule>
</configuration>
I guess this is the only way it can be done. It is some kind of
reverse
solution - you only index properties that don't exist. So hopefully
nothing
is indexed ;)
But it still doesnt work completely... you can still find the
documents
using special queries: e.g. for metadata attributes.
How can i completely exclude a folder from being indexed?
AND: will the Magnolia DMS still work - if the handled documents /
pagesare
not in the index?
thx a lot
ainer
--
View this message in context:
http://www.nabble.com/Exclude-a-folder-in-DMS-from-index-tp24623481p24623481.html
Sent from the Magnolia - User mailing list archive at Nabble.com.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------