Re: Need help on aggregation of nested documents

2021-11-16 Thread Adrien Grand
Indeed you shouldn't load all hits, you should register a org.apache.lucene.search.Collector that will aggregate data while matches are being collected. Since you are already using a ToChildBlockJoinQuery, you should be able to use it in conjunction with utility classes from lucene/facets. Have

[ANNOUNCE] Apache Lucene 8.11.0 released

2021-11-16 Thread Adrien Grand
The Lucene PMC is pleased to announce the release of Apache Lucene 8.11. Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. It is a technology suitable for nearly any application that requires full-text search, especially cross-platform. This

Re: Need help on aggregation of nested documents

2021-11-16 Thread Gopal Sharma
I have created a custom Collector extending SimpleCollector. I can see the methods scoreMode() and collect(int doc). I am seeing that the collect method is invoked by lucene with the child docId. Am I moving in the right direction? But to collect the values I would need the Document by using

index file of lucene8.7 is larger than the 7.7

2021-11-16 Thread xiaoshi
Hi, everyone. I found that the index file of lucene8.7 is larger than the 7.7 version: My data source: lucene/demo/src/test/org/apache/lucene/demo/test-files/docs The index code is as follows: InputStream stream = Files.newInputStream(file) Document doc = new Document(); Field pathField =