get distinct values from indexreader for given field

2023-11-22 Thread vvsevel
Hello, In Lucene 6 I was doing this to get all values for a given field knowing its type: public List getDistinctValues(IndexReader reader, String fieldname, Class type) throws IOException { List values = new ArrayList(); Fields fields = MultiFields.getFields(reader); if (fields == n

Re: get distinct values from indexreader for given field

2023-12-05 Thread vvsevel
Thanks Michael On Tue, Nov 28, 2023 at 11:45 PM Michael Froh wrote: > Oh -- of course if you're using IntPoint / LongPoint for your numeric > fields, they won't be indexed as terms, so loading terms for them won't > work. > > It's not the prettiest solution, but I think the following should let

recommended index size

2024-01-02 Thread vvsevel
Hello, is there a recommended / rule of thumb maximum size for index? I try to target between 50 and 100 Gb, before spreading to other servers. or is this just a matter of how much memory and cpu I have? this is a log aggregation use case. a lot of write, smaller number of reads obviously. I am us