Hi Tommaso,
Le lun. 11 avr. 2016 à 10:12, <[email protected]> a écrit :
> + <pathelement path="${grouping.jar}"/>
>
> +
> + HashMap<String, UninvertingReader.Type> mapping = new HashMap<>();
> + mapping.put(classFieldName, UninvertingReader.Type.SORTED);
> + UninvertingReader uninvertingReader = new
> UninvertingReader(originalIndex, mapping);
> + IndexSearcher indexSearcher = new IndexSearcher(uninvertingReader);
> + GroupingSearch gs = new GroupingSearch(classFieldName);
> + gs.setGroupSort(Sort.INDEXORDER);
> + gs.setSortWithinGroup(Sort.INDEXORDER);
> + gs.setAllGroups(true);
> + gs.setGroupDocsLimit(originalIndex.maxDoc());
> + TopGroups<Object> topGroups = gs.search(indexSearcher, new
> MatchAllDocsQuery(), 0, (int) noOfClasses);
>
I have been looking at this commit because of the javadocs failures and it
feels wrong to me that we are adding dependencies to the misc and grouping
modules just for this utility class that splits indices? I think we could
make it work in a similar way to PKIndexSplitter which would not require
grouping or UninvertingReader.