public override FacetDataCache Load(BoboSegmentReader reader, BoboSegmentReader.WorkArea workArea)
        {
            MultiValueFacetDataCache dataCache = new MultiValueFacetDataCache();

            dataCache.MaxItems = maxItems;
            if (m_sizePayloadTerm == null)
            {
                dataCache.Load(m_indexFieldName, reader, m_termListFactory, workArea);
            }
            else
            {
                dataCache.Load(m_indexFieldName, reader, m_termListFactory, m_sizePayloadTerm);
            }
            return(dataCache);
        }
Exemplo n.º 2
0
 public override FacetDataCache Load(BoboIndexReader reader)
 {
     if (!_multiValue)
     {
         FacetDataCache dataCache = new FacetDataCache();
         dataCache.Load(_indexedName, reader, _termListFactory);
         return(dataCache);
     }
     else
     {
         MultiValueFacetDataCache dataCache = new MultiValueFacetDataCache();
         dataCache.Load(_indexedName, reader, _termListFactory);
         return(dataCache);
     }
 }