Class StatisticsLuceneFields

java.lang.Object
io.goobi.viewer.model.statistics.usage.StatisticsLuceneFields

public final class StatisticsLuceneFields extends Object
Contains field names of STATISTICS_USAGE SOLR documents
Author:
florian
  • Field Details

    • SOLR_DATE_FORMATTER

      public static final DateTimeFormatter SOLR_DATE_FORMATTER
      Format dates to/from the string representation used in SOLR
    • USAGE_STATISTICS_DOCTYPE

      public static final String USAGE_STATISTICS_DOCTYPE
      DOCTYPE field value for usage statistics documents
      See Also:
    • VIEWER_NAME

      public static final String VIEWER_NAME
      SOLR field name containing the name of the viewer instance
      See Also:
    • DATE

      public static final String DATE
      SOLR field name containing the date at which the statistics were recorded
      See Also:
    • RECORD_STATISTICS_PREFIX

      public static final String RECORD_STATISTICS_PREFIX
      SOLR field prefix for fields containing request counts for individual record identifiers. The full field name consists of the prefix followed by a record identifier
      See Also:
  • Method Details

    • getFieldName

      public static String getFieldName(String pi)
      Get the complete SOLR field name for a given record identifier
      Parameters:
      pi - the record identifier
      Returns:
      String
    • getPi

      public static String getPi(String fieldname)
      Get the record identifier from the given SOLR field name
      Parameters:
      fieldname -
      Returns:
      the record identifier