Package org.opencms.search
Class CmsSearchDocumentType
java.lang.Object
org.opencms.search.CmsSearchDocumentType
A document type specifies which document factory class is used to pull the
content of an OpenCms document into a Lucene index document.
The appropriate document factory class gets triggerd while the search index is built for OpenCms documents matching the specified resource type and/or mimetype combination in a document factory class instance.
- Since:
- 6.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMimeType
(String mimeType) Adds a mimetype.void
addResourceType
(String resourceType) Adds the class name of a resource type.Returns the name of the document factory class.Returns the mimetypes to trigger the document factory class.getName()
Returns the logical key/name of this document type.Returns the list of Cms resource types to trigger the document factory.void
setClassName
(String className) Sets the name of the document factory class.void
setMimeTypes
(List<String> mimetypes) Sets the mimetypes to trigger the document factory class.void
Sets the logical key/name of this document type.void
setResourceTypes
(List<String> resourceTypes) Sets the list of Cms resource types to trigger the document factory.
-
Constructor Details
-
CmsSearchDocumentType
public CmsSearchDocumentType()Default constructor.
-
-
Method Details
-
addMimeType
Adds a mimetype.- Parameters:
mimeType
- a mimetype
-
addResourceType
Adds the class name of a resource type.- Parameters:
resourceType
- the class name of a resource type
-
getClassName
Returns the name of the document factory class.- Returns:
- the name of the document factory class
-
getMimeTypes
Returns the mimetypes to trigger the document factory class.- Returns:
- the mimetypes to trigger the document factory class
-
getName
Returns the logical key/name of this document type.- Returns:
- the logical key/name of this document type
-
getResourceTypes
Returns the list of Cms resource types to trigger the document factory.- Returns:
- the list of Cms resource types to trigger the document factory
-
setClassName
Sets the name of the document factory class.- Parameters:
className
- the name of the document factory class
-
setMimeTypes
Sets the mimetypes to trigger the document factory class.- Parameters:
mimetypes
- the mimetypes to trigger the document factory class
-
setName
Sets the logical key/name of this document type.- Parameters:
name
- the logical key/name of this document type
-
setResourceTypes
Sets the list of Cms resource types to trigger the document factory.- Parameters:
resourceTypes
- the list of Cms resource types to trigger the document factory
-