cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

What does solrstats directory in hybris contain ?

john_caswell
Explorer
0 Kudos
422

What does solrstats directory in hybris contain ? How are these files generted? Can we remove the files from this folder which are older then 2 years ?

Accepted Solutions (0)

Answers (1)

Answers (1)

aimprosoft
Participant
0 Kudos

Hi, John!

Solrstats directory contains Statistics Collection of solr queries.

The solrfacetsearch extension supports collecting statistical data for queries sent to the Solr server. Then it can be used for further analysis.

help page reference:

https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/1811/en-US/8b45d6de86691014ba4fc33767ce...

solr page reference:

https://lucene.apache.org/solr/guide/6_6/the-stats-component.html

Some main configurations from SAP help page:

1. Enable the statistics collection

solrStats.enableCollectingStatistics=true

2. By default, Solr collects statistical data in files located in the following folder:

solrStats.filesLocation=${HYBRIS_LOG_DIR}/solrstats

3. The files holding statistical data are have a prefix as in the example provided below

solrStats.filePrefix=stats.log

4. Files are rolled every single hour, this is configured by the following property

solrStats.dateFormat=yyyy-MM-dd.HH

Also if you have configured cronjob the statistick data can be also stored in DB. For this look at help page above.

About clearing this directory: It's based on business requirements about life period for statistics data. I assume you can remove data which are older then year.

hope this helps,

Igor