Hello
Today's blog post provides a short description of the tasks that need to carried out for Web Search Configuration.
How to add an entity like Variant
- Remove the previous entity.parent configuration like:
entity.Article.parent=Product2G
- Add the following entity configuration:
entity.Article.parent=Variant
entity.Variant.pageable=true
entity.Variant.parent=Product2G
entity.Variant.subentities=VariantLang,VariantSales
- rebuild the index with PIM - Desktop
How to add further entity fields
- open the repository and copy & paste the right entity-, subentity- and fieldname.
- Add the correct entity-, subentity- and fieldname and add some Solr field attributes to the configuration.
Example:
field.Article.ManufacturerName.searchable= true
field.Article.ManufacturerName.facetable=true
field.Article.ManufacturerName.facetordervalue=-1
field.Article.ManufacturerName.type= infotext
field.Article.ManufacturerName.sortable= true
- After that you have to rebuild the index.
- Look to the log file, located in: /log (or defined in /configuration.properties), if the index has been build.
- If the index was not built successful, check the index configuration, and repet the index build.
How to make fields sortable
Add to the field definition:
field.[entityname].[fieldname].searchable= true
and
field.[entityname].[fieldname].sortable= true
How to add facets
Add to the field definition:
field.[entityname].[fieldname].facetable=true
field.[entityname].[fieldname].facetordervalue= <a number>
How to add attributes
Add:
attributeprovider.[entityname].[entityname]Attribute.namesourcefields=[entityname].[entityname]
AttributeLang.Name(${language}),[entityname]Attribute.Unit attributeprovider.[entityname]. [entityname]
Attribute.valuesourcefields=[entityname]AttributeValue.Value(${language}) attributeprovider.search.ignoreAttributesWithValues=no,false,0
with
[entityname] = article, variant or product2g
How to change Web Search REST port
- Change port in the configuration.properties file: Setup Web Search Configuration
- Change fulltextsearch.properties file for PIM Core: Setup Configuration for PIM - Core
- Change webfrontend.properties file for PIM - Web: Setup Configuration for PIM - Web
How to change PIM Service API credential in Web Search
You have to change the credential in each index configuration:
dataprovider.hostresturl=http://localhost:1501/rest
dataprovider.user=restuser
dataprovider.password=restpwd
dataprovider.type=HPMRestAPI
How to change log4j configuration files
Logging data output is implemented with log4j and can be configured for application server (tomcat) related logging information and Web Search related logging information.
The log files are located by default in:
- <WebSearchInstallationRoot>\log\server.log
- <WebSearchInstallationRoot>\<tomcat-server>\logs
The log4j configuration file are located in:
<WebSearchInstallationRoot>\<tomcat-server>\lib\log4j.xml
<WebSearchInstallationRoot>\<tomcat-server>\conf\logging.properties
0 Comment(s)