Re: Port of Custom value source from v4.10.3 to v6.1.0

2016-07-08 Thread Yonik Seeley
Use getSortedDocValues for a single-valued field, or getSortedSetDocValues for multi-valued. -Yonik On Fri, Jul 8, 2016 at 12:29 PM, paule_lecuyer wrote: > Many Thanks Yonik, I will try that. > > For my understanding, what is the difference between SortedSetDocValues > getSortedSetDocValues(St

Re: Port of Custom value source from v4.10.3 to v6.1.0

2016-07-08 Thread paule_lecuyer
Many Thanks Yonik, I will try that. For my understanding, what is the difference between SortedSetDocValues getSortedSetDocValues(String field) and SortedDocValues getSortedDocValues(String field) ? Paule. -- View this message in context: http://lucene.472066.n3.nabble.com/Upgrade-of-Custom-

Re: Port of Custom value source from v4.10.3 to v6.1.0

2016-07-08 Thread Yonik Seeley
Use the docValues interface by calling getSortedSetDocValues on the leaf reader. That will either 1) use real docValues if you have indexed them 2) use the FieldCache to uninvert an indexed field and make it look like docValues. -Yonik On Thu, Jul 7, 2016 at 1:33 PM, paule_lecuyer wrote: > Hi

Port of Custom value source from v4.10.3 to v6.1.0

2016-07-07 Thread paule_lecuyer
Hi all, I wrote some time ago a ValueSourceParser + ValueSource to allow using results produced by an external system as a facet query : - in solrconfig.xml : added my parser : http://lucene.472066.n3.nabble.com/Port-of-Custom-value-source-from-v4-10-3-to-v6-1-0-tp4286236.html Sent from the Luc