This class represents a Searchable Tag.
This tag is used to mark areas of a JSP as indexable/searchable. It can also be used to exclude certain areas form
indexing/searching, for example the navigation of page. During indexing, a
Document
is
being created from each indexed JSP.
Attributes:
- index - whether the body content should be indexed
- visible (true) - whether or not the body content should be displayed
- field - the name of the field
Fields: The following fields of a
Document
can be set:
Usage:
<!-- set the 'title' field for this document -->
<appNG:searchable index="true" field="title" visible="false">The Hitchhiker's Guide to the Galaxy</appNG:searchable>
<!-- set the 'contents' field for this document -->
<appNG:searchable index="true" field="contents" visible="true">
<div>The Hitchhiker's Guide to the Galaxy is a comedy science fiction series created by Douglas Adams.</div>
<!-- skip some content -->
<appNG:searchable index="false">content to be skipped...</appNG:searchable>
</appNG:searchable>