Class QuerySuggesterProxy

    • Constructor Detail

      • QuerySuggesterProxy

        public QuerySuggesterProxy​(String indexName,
                                   String dataProviderName)
        names for logging and metrics
        Parameters:
        indexName -
        dataProviderName -
      • QuerySuggesterProxy

        public QuerySuggesterProxy​(String indexName,
                                   String dataType,
                                   int maxSuggestionsPerCacheEntry)
    • Method Detail

      • updateQueryMapper

        public void updateQueryMapper​(@NonNull
                                      @NonNull QuerySuggester newSuggester)
                               throws org.apache.lucene.store.AlreadyClosedException
        Throws:
        org.apache.lucene.store.AlreadyClosedException
      • isReady

        public boolean isReady()
        Specified by:
        isReady in interface QuerySuggester
        Returns:
        true if ready to serve suggestions
      • instrument

        public void instrument​(Optional<MeterRegistryAdapter> metricsRegistryAdapter,
                               Iterable<io.micrometer.core.instrument.Tag> tags)
        Description copied from interface: Instrumentable
        Optional meter registry (adapter that gives access to the actual meter-registry). If not available, no metrics should be measured.
        Specified by:
        instrument in interface Instrumentable
        tags - these "standard" tags should be used for all added sensors. More tags can be added.
      • ramBytesUsed

        public long ramBytesUsed()
        Specified by:
        ramBytesUsed in interface org.apache.lucene.util.Accountable
      • recordCount

        public long recordCount()
        Description copied from interface: QuerySuggester
        return amount of records indexed into this QuerySuggester.
        Specified by:
        recordCount in interface QuerySuggester
        Returns:
        amount of indexed records