You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by jaejong <cb...@naver.com> on 2018/04/05 07:55:57 UTC
how to filter data from matched result grouping by field value
How can I filter resent data from matched result by grouping date field
for example
I annote my entity as follows
hsno column for
@Field(index=Index.YES, analyze=Analyze.YES, store=Store.YES)
date column for
@Field(index = Index.YES, analyze=Analyze.NO, store = Store.YES)
kor column for
@Field(index=Index.YES, analyze=Analyze.YES, store=Store.NO)
and I have result from keyword search
hsno date
-----------------
12345 2017-01-01
12345 2018-03-01
123456 2017-01-01
123456 2018-01-01
from the above result
I only want recent result grouping by hsno as follows
12345 2018-03-01
123456 2018-01-01
--
Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org