[opencms-dev] is there a property that makes a resource non-searchable by Lucene?
Claus Priisholm
cpr at codedroids.com
Wed Oct 6 09:14:02 CEST 2004
I'm not sure what version you're talking about, if it is OpenCms 5.0.1
+ the Lucene module 1.5, I don't think there's such a feature. Ideally
you should be able to spec it in the registry, but it is hardly
feasible without the ability to create both white- and black-lists of
what to index and what not. And in your case reg.ex. patterns would be
nice as well. I haven't checked the latest development at
http://opencmslucene.sourceforge.net, so there may already be some
steps towards that.
As you mention a property on the individual resources could serve a
similar purpose, i.e. Index=true|false. But you can use this approach
with the existing version. Simply set an appropriate property and have
you result-listing JSP filter the hits based on this property. the hit
count should be adjusted as well. Not the ideal solution, but to the
end-user it would work as expected.
On 5/10-2004, at 16.36, Steve Mato wrote:
>
> [sending again because it appears none of my messages are being
> distributed to the list ; are others seeing messages from me? I have
> "receive your own postings" set to yes in the mailing-list admin page,
> but I'm no longer seeing them added to the list.]
>
> I got Lucene working very nicely within my site. Thank you to all the
> contributors.
>
> Question, and sorry if this was covered elsewhere in this list but I
> didn't find it searching the archives and I didn't see it stated in
> the book. What attribute can I apply to a resource (file or folder)
> to prohibit Lucene from indexing it and adding it to search results?
>
> For example I have my "how-to" files within the site that instructs
> users in how to add content to the site and configure its behavior,
> but non-navigatable from anywhere within the site. They do however
> turn up in search results.
>
> I'd like to apply a property to the file to tell Lucene not to index
> it; something like a property such as lucenesearch and set its value
> to false. Is there something like that? Also, where would this
> happen to be documented so I could read up on any other OpenCMS+Lucene
> underactivity and configurability.
>
> Thanx for your time,
> Steve Mato
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please
> visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
OpenCms links & API's: http://www.codedroids.com/community/opencms
--
Claus Priisholm
+45 48 22 46 46
cpr <you know what> codedroids.com
http://www.codedroids.com
More information about the opencms-dev
mailing list