@Component(value="blCatalogDocumentBuilder") public class CatalogDocumentBuilderImpl extends Object implements CatalogDocumentBuilder
| Modifier and Type | Field and Description |
|---|---|
protected SolrIndexServiceExtensionManager |
extensionManager |
protected SandBoxHelper |
sandBoxHelper |
protected SolrHelperService |
shs |
protected SolrConfiguration |
solrConfiguration |
| Constructor and Description |
|---|
CatalogDocumentBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachAdditionalDocumentFields(Indexable indexable,
org.apache.solr.common.SolrInputDocument document) |
protected void |
attachBasicDocumentFields(Indexable indexable,
org.apache.solr.common.SolrInputDocument document) |
protected void |
attachIndexableDocumentFields(org.apache.solr.common.SolrInputDocument document,
Indexable indexable,
List<IndexField> fields,
List<Locale> locales) |
org.apache.solr.common.SolrInputDocument |
buildDocument(Indexable indexable,
List<IndexField> fields,
List<Locale> locales) |
protected void |
buildFullCategoryHierarchy(org.apache.solr.common.SolrInputDocument document,
CatalogStructure cache,
Long categoryId,
Set<Long> indexedParents) |
protected Long |
convertDisplayOrderToLong(CatalogStructure cache,
String displayOrderKey)
We multiply the BigDecimal by 1,000,000 to maintain any possible decimals in use the
displayOrder value.
|
protected Map<String,Object> |
getPropertyValues(Indexable indexedItem,
Field field,
FieldType fieldType,
List<Locale> locales) |
protected void |
modifyDocument(Indexable indexable,
List<IndexField> fields,
List<Locale> locales)
This is a simple hook point to allow implementors to override and modify the documents after the default functionality has created them.
|
protected SolrHelperService shs
protected SolrIndexServiceExtensionManager extensionManager
@Qualifier(value="blCatalogSolrConfiguration") @Autowired(required=false) protected SolrConfiguration solrConfiguration
protected SandBoxHelper sandBoxHelper
public org.apache.solr.common.SolrInputDocument buildDocument(Indexable indexable, List<IndexField> fields, List<Locale> locales)
buildDocument in interface DocumentBuilderprotected void attachIndexableDocumentFields(org.apache.solr.common.SolrInputDocument document,
Indexable indexable,
List<IndexField> fields,
List<Locale> locales)
protected void attachAdditionalDocumentFields(Indexable indexable, org.apache.solr.common.SolrInputDocument document)
protected void attachBasicDocumentFields(Indexable indexable, org.apache.solr.common.SolrInputDocument document)
protected void buildFullCategoryHierarchy(org.apache.solr.common.SolrInputDocument document,
CatalogStructure cache,
Long categoryId,
Set<Long> indexedParents)
protected Map<String,Object> getPropertyValues(Indexable indexedItem, Field field, FieldType fieldType, List<Locale> locales) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
protected Long convertDisplayOrderToLong(CatalogStructure cache, String displayOrderKey)
cache - displayOrderKey - protected void modifyDocument(Indexable indexable, List<IndexField> fields, List<Locale> locales)
indexable - fields - locales - Copyright © 2024. All rights reserved.