Re: specify a particular section for searching !

From Stefan Boddie
DateTue, 29 Oct 2002 13:27:23 +1300
Subject Re: specify a particular section for searching !
In-Reply-To (000001c27c1e$b78b54a0$35aa29c0-p410)
> The developer' guide page 21 says the document structure is used for
> searchable indexes and there are 3 possible levels of index is :
> document, section and paragraph. But can we specify a particular section
> for searching, let suppose that in our document, there is a section
> titled "---SectionTitle---" :
> ....
> <Section>
> <Description>
> <Metadata name="Title">---SectionTitle---</Metadata>
> </Description>
> <Content>
> ....
> </Content>
> </Section>
> .....
> How can we configure our system to allow user to search on that specific
> section of differences documents in our collection.

The easiest way to do this is probably to set the section content that you
want to search on as metadata. That is, do something like:

<Metadata name="Title">---SectionTitle---</Metadata>
<Metadata name="SearchMe">Here's the text that must be


You'd then specify an index like section:SearchMe in your collect.cfg file.
This would index all the SearchMe metadata but nothing else.