lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: How to get SortedDocValues in lucene-5.2.1
Date Sat, 11 Jul 2015 20:16:06 GMT
that's how dig guys do it
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/request/DocValuesFacets.java#L77


On Sat, Jul 11, 2015 at 11:12 PM, Mikhail Khludnev <
mkhludnev@griddynamics.com> wrote:

> you can call getSortedDocValues() right from reader
>
> On Sat, Jul 11, 2015 at 10:18 PM, Nickolay41189 <Klin892006@yandex.ru>
> wrote:
>
>> In lucene-4.10.1 for to get *SortedDocValues *I used this code:
>>
>> SolrIndexSearcher searcher = request.getSearcher();
>> AtomicReader reader = searcher.getAtomicReader();
>> SortedDocValues sourceIndex = FieldCache.DEFAULT.getTermsIndex(reader,
>> fieldName);
>>
>> It worked fine, but now I don't understand what to do with this code. I
>> read
>> in another forums:
>>
>> "FieldCache is gone (moved to a dedicated *UninvertingReader *in the misc
>> module)"
>>
>> But what does it mean? Can I use *UninvertingReader *or not? How do I use
>> it?
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.nabble.com/How-to-get-SortedDocValues-in-lucene-5-2-1-tp4216858.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> <http://www.griddynamics.com>
> <mkhludnev@griddynamics.com>
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message