|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.search.fields.CmsSearchFieldConfiguration
org.opencms.search.solr.CmsSolrFieldConfiguration
public class CmsSolrFieldConfiguration
The search field implementation for Solr.
| Field Summary |
|---|
| Fields inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration |
|---|
STR_STANDARD |
| Constructor Summary | |
|---|---|
CmsSolrFieldConfiguration()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
addAdditionalFields(java.util.List<CmsSolrField> additionalFields)
Adds the additional fields to the configuration, if they are not null. |
protected I_CmsSearchDocument |
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 |
appendFieldMapping(I_CmsSearchDocument document,
CmsSearchField sfield,
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 |
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 |
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 |
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 java.util.List<java.util.Locale> |
getContentLocales(CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction)
Retrieves the locales for an content, that is whether an XML content nor an XML page. |
java.util.Map<java.lang.String,CmsSolrField> |
getSolrFields()
Returns all configured Solr fields. |
protected java.util.Set<CmsSearchField> |
getXSDMappings(CmsObject cms,
CmsResource resource)
Returns the search field mappings declared within the XSD. |
void |
init()
Initializes the Solr field configuration. |
| Methods inherited from class org.opencms.search.fields.CmsSearchFieldConfiguration |
|---|
addField, addFields, appendCategories, appendContentBlob, appendFileSize, appendPath, appendType, compareTo, createDocument, equals, getDescription, getField, getFieldNames, getFields, getIndex, getLocaleExtendedName, getLocaleExtendedName, getName, getParentFolderTokens, hashCode, setBoost, setDescription, setIndex, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CmsSolrFieldConfiguration()
| Method Detail |
|---|
public java.util.Map<java.lang.String,CmsSolrField> getSolrFields()
public void init()
init in class CmsSearchFieldConfigurationprotected void addAdditionalFields(java.util.List<CmsSolrField> additionalFields)
additionalFields - the additional fields to add
protected I_CmsSearchDocument appendDates(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
CmsSearchFieldConfiguration
appendDates in class CmsSearchFieldConfigurationdocument - the document to extendcms - the OpenCms context used for building the search indexresource - the resource that is indexedextractionResult - the plain text extraction result from the resourceproperties - the list of all properties directly attached to the resource (not searched)propertiesSearched - the list of all searched properties of the resource
CmsSearchFieldConfiguration.appendDates(org.opencms.search.I_CmsSearchDocument, org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.extractors.I_CmsExtractionResult, java.util.List, java.util.List)
protected I_CmsSearchDocument appendFieldMapping(I_CmsSearchDocument document,
CmsSearchField sfield,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
CmsSearchFieldConfiguration
appendFieldMapping in class CmsSearchFieldConfigurationdocument - the document to extendsfield - the field to create the mappings forcms - the OpenCms context used for building the search indexresource - the resource that is indexedextractionResult - the plain text extraction result from the resourceproperties - the list of all properties directly attached to the resource (not searched)propertiesSearched - the list of all searched properties of the resource
CmsSearchFieldConfiguration.appendFieldMapping(org.opencms.search.I_CmsSearchDocument, org.opencms.search.fields.CmsSearchField, org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.extractors.I_CmsExtractionResult, java.util.List, java.util.List)
protected I_CmsSearchDocument appendFieldMappings(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extractionResult,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
CmsSearchFieldConfiguration
appendFieldMappings in class CmsSearchFieldConfigurationdocument - the document to extendcms - the OpenCms context used for building the search indexresource - the resource that is indexedextractionResult - the plain text extraction result from the resourceproperties - the list of all properties directly attached to the resource (not searched)propertiesSearched - the list of all searched properties of the resource
CmsSearchFieldConfiguration.appendFieldMappings(org.opencms.search.I_CmsSearchDocument, org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.extractors.I_CmsExtractionResult, java.util.List, java.util.List)
protected I_CmsSearchDocument appendLocales(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
CmsSearchFieldConfiguration
appendLocales in class CmsSearchFieldConfigurationdocument - the document to extendcms - the OpenCms context used for building the search indexresource - the resource that is indexedextraction - the plain text extraction result from the resourceproperties - the list of all properties directly attached to the resource (not searched)propertiesSearched - the list of all searched properties of the resource
CmsSearchFieldConfiguration.appendLocales(org.opencms.search.I_CmsSearchDocument, org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.extractors.I_CmsExtractionResult, java.util.List, java.util.List)
protected I_CmsSearchDocument appendProperties(I_CmsSearchDocument document,
CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction,
java.util.List<CmsProperty> properties,
java.util.List<CmsProperty> propertiesSearched)
CmsSearchFieldConfiguration
appendProperties in class CmsSearchFieldConfigurationdocument - the document to extendcms - the OpenCms context used for building the search indexresource - the resource that is indexedextraction - the plain text extraction result from the resourceproperties - the list of all properties directly attached to the resource (not searched)propertiesSearched - the list of all searched properties of the resource
CmsSearchFieldConfiguration.appendProperties(org.opencms.search.I_CmsSearchDocument, org.opencms.file.CmsObject, org.opencms.file.CmsResource, org.opencms.search.extractors.I_CmsExtractionResult, java.util.List, java.util.List)
protected java.util.List<java.util.Locale> getContentLocales(CmsObject cms,
CmsResource resource,
I_CmsExtractionResult extraction)
Uses following strategy:
cms - the current CmsObjectresource - the resource to get the content locales forextraction - the extraction result
protected java.util.Set<CmsSearchField> getXSDMappings(CmsObject cms,
CmsResource resource)
cms - the CmsObjectresource - the resource
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||