程序包 | 说明 |
---|---|
org.opencms.search |
Implements the main full text search and indexing functions available in OpenCms.
|
org.opencms.search.documents |
Handles indexing different sorts of document and resource type from the OpenCms VFS for the full text search.
|
org.opencms.search.fields |
These classes control the mapping of the OpenCms content to the Lucene search fields.
|
org.opencms.search.galleries |
Implements the search functions for the OpenCms Gallery search index,
which is used by the Advanced Direct Edit (ADE) functions.
|
org.opencms.search.solr |
限定符和类型 | 类和说明 |
---|---|
class |
CmsLuceneDocument
A Lucene search document implementation.
|
限定符和类型 | 方法和说明 |
---|---|
I_CmsSearchDocument |
CmsSearchIndex.createEmptyDocument(CmsResource resource)
Creates an empty document that can be used by this search field configuration.
|
protected I_CmsSearchDocument |
CmsIndexingThread.createIndexDocument(CmsObject cms,
CmsResource res,
CmsSearchIndex index,
int count,
I_CmsReport report)
Creates the search index document.
|
I_CmsSearchDocument |
CmsSearchResource.getDocument()
Returns the document.
|
I_CmsSearchDocument |
CmsSearchIndex.getDocument(int docId)
Returns a document by document ID.
|
I_CmsSearchDocument |
CmsSearchIndex.getDocument(java.lang.String field,
java.lang.String term)
Returns the first document where the given term matches the selected index field.
|
I_CmsSearchDocument |
CmsIndexingThread.getResult()
Returns the document created by this indexer thread.
|
限定符和类型 | 方法和说明 |
---|---|
protected CmsResource |
CmsSearchIndex.getResource(CmsObject cms,
I_CmsSearchDocument doc)
Checks if the OpenCms resource referenced by the result document can be read
by the user of the given OpenCms context.
|
protected boolean |
CmsSearchIndex.hasReadPermission(CmsObject cms,
I_CmsSearchDocument doc)
Checks if the OpenCms resource referenced by the result document can be read
be the user of the given OpenCms context.
|
protected boolean |
CmsSearchIndex.needsPermissionCheck(I_CmsSearchDocument doc)
Checks if the OpenCms resource referenced by the result document needs to be checked.
|
void |
I_CmsIndexWriter.updateDocument(java.lang.String rootPath,
I_CmsSearchDocument document)
Update a document in the index.
|
void |
CmsLuceneIndexWriter.updateDocument(java.lang.String rootPath,
I_CmsSearchDocument document) |
protected void |
CmsVfsIndexer.updateResource(I_CmsIndexWriter indexWriter,
java.lang.String rootPath,
I_CmsSearchDocument doc)
Updates a resource with the given index writer and the new document provided.
|
构造器和说明 |
---|
CmsSearchResource(CmsResource resource,
I_CmsSearchDocument doc)
Constructor, creates a new file Object from the given resource with
an empty byte array as file content, if the resource does not
implement a file.
|
CmsSearchResource(CmsUUID structureId,
CmsUUID resourceId,
java.lang.String path,
int type,
int flags,
CmsUUID projectId,
CmsResourceState state,
long dateCreated,
CmsUUID userCreated,
long dateLastModified,
CmsUUID userLastModified,
long dateReleased,
long dateExpired,
int linkCount,
int length,
long dateContent,
int version,
I_CmsSearchDocument doc)
Constructor, creates a new file object.
|
限定符和类型 | 方法和说明 |
---|---|
I_CmsSearchDocument |
A_CmsVfsDocument.createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Generates a new lucene document instance from contents of the given resource for the provided index.
|
I_CmsSearchDocument |
CmsDocumentContainerPage.createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Generates a new lucene document instance from contents of the given resource for the provided index.
|
I_CmsSearchDocument |
I_CmsDocumentFactory.createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Creates the Lucene Document for the given VFS resource and the given search index.
|
I_CmsSearchDocument |
CmsDocumentXmlContent.createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index) |
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsSearchDocument |
CmsSearchFieldConfigurationOldCategories.appendCategories(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by resource category information based on properties.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendCategories(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by resource category information based on properties.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendContentBlob(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by a field that contains the extracted content blob.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendDates(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by fields for date of creation, content and last modification.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFieldMapping(I_CmsSearchDocument document,
CmsSearchField field,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the mappings for the given field.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFieldMappings(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the configured field mappings.
|
I_CmsSearchDocument |
I_CmsSearchFieldAppdender.appendFields(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Can append one or more fields to an document.
|
I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFields(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Appends the specific search fields to the document.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFileSize(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the "size" field.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendLocales(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the "res_locales" field.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendPath(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by fields for VFS path lookup.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendProperties(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Appends all direct properties, that are not empty or white space only to the document.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendType(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by a field that contains the resource type name.
|
I_CmsSearchDocument |
CmsSearchFieldConfiguration.createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index,
I_CmsExtractionResult extraction)
Creates the Lucene Document with this field configuration for the provided VFS resource, search index and content.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.setBoost(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document with a boost factor.
|
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsSearchDocument |
CmsSearchFieldConfigurationOldCategories.appendCategories(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by resource category information based on properties.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendCategories(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by resource category information based on properties.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendContentBlob(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by a field that contains the extracted content blob.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendDates(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by fields for date of creation, content and last modification.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFieldMapping(I_CmsSearchDocument document,
CmsSearchField field,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the mappings for the given field.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFieldMappings(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the configured field mappings.
|
I_CmsSearchDocument |
I_CmsSearchFieldAppdender.appendFields(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Can append one or more fields to an document.
|
I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFields(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Appends the specific search fields to the document.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendFileSize(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the "size" field.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendLocales(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the "res_locales" field.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendPath(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by fields for VFS path lookup.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendProperties(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Appends all direct properties, that are not empty or white space only to the document.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.appendType(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by a field that contains the resource type name.
|
protected I_CmsSearchDocument |
CmsSearchFieldConfiguration.setBoost(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document with a boost factor.
|
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsSearchDocument |
CmsGallerySearchFieldConfiguration.appendFieldMappings(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the configured field mappings.
|
protected I_CmsSearchDocument |
CmsGallerySearchFieldConfiguration.appendMultipleFieldMapping(I_CmsSearchDocument document,
CmsSearchField field,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the gallery index special multiple language filed mappings for the given field.
|
I_CmsSearchDocument |
CmsGalleryDocumentXmlContent.createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Generates a new lucene document instance from contents of the given resource for the provided index.
|
I_CmsSearchDocument |
CmsGallerySearchIndex.getDocument(CmsUUID structureId)
已过时。
Use
CmsSearchIndex.getDocument(String, String) instead and provide CmsGallerySearchFieldMapping.FIELD_RESOURCE_STRUCTURE_ID as field to search in |
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsSearchDocument |
CmsGallerySearchFieldConfiguration.appendFieldMappings(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the configured field mappings.
|
protected I_CmsSearchDocument |
CmsGallerySearchFieldConfiguration.appendMultipleFieldMapping(I_CmsSearchDocument document,
CmsSearchField field,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Extends the given document by the gallery index special multiple language filed mappings for the given field.
|
protected CmsResource |
CmsGallerySearchIndex.getResource(CmsObject cms,
I_CmsSearchDocument doc)
We are overriding getResource since the default implementation uses the path to read the resource,
which doesn't work for resources in a different site.
|
限定符和类型 | 类和说明 |
---|---|
class |
CmsSolrDocument
A search document implementation for Solr indexes.
|
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendDates(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendFieldMapping(I_CmsSearchDocument document,
CmsSearchField sfield,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendFieldMappings(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendFields(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Appends the Solr specific search fields to the document.
|
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendLocales(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendProperties(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
I_CmsSearchDocument |
CmsSolrDocumentContainerPage.createDocument(CmsObject cms,
CmsResource resource,
CmsSearchIndex index)
Generates a new lucene document instance from contents of the given resource for the provided index.
|
I_CmsSearchDocument |
CmsSolrIndex.createEmptyDocument(CmsResource resource) |
I_CmsSearchDocument |
CmsSolrIndex.getDocument(java.lang.String fieldname,
java.lang.String term) |
限定符和类型 | 方法和说明 |
---|---|
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendDates(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendFieldMapping(I_CmsSearchDocument document,
CmsSearchField sfield,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendFieldMappings(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendFields(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
Appends the Solr specific search fields to the document.
|
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendLocales(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
protected I_CmsSearchDocument |
CmsSolrFieldConfiguration.appendProperties(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched) |
void |
CmsSolrIndexWriter.updateDocument(java.lang.String rootPath,
I_CmsSearchDocument document) |