@@ -68,32 +68,32 @@ public SingleDocumentWrapper<? extends AbstractDto> getDetails(String id) {
6868 if (lemma == null ) {
6969 return null ;
7070 }
71- SingleDocumentWrapper <?> wrapper = super .getDetails (id );
72- ((LemmaDto ) wrapper .getDoc ()).setAttestations (
73- this .computeAttestedTimespans ((LemmaDto ) wrapper .getDoc ())
74- );
71+ SingleDocumentWrapper <?> wrapper = super .getDetails (id );
72+ ((LemmaDto ) wrapper .getDoc ()).setAttestations (
73+ this .computeAttestedTimespans ((LemmaDto ) wrapper .getDoc ())
74+ );
7575 return wrapper ;
7676 }
7777
7878 /**
7979 * count sentences and texts containing the specified lemma.
8080 */
81- public List <AttestedTimespan > computeAttestedTimespans (LemmaDto dto ) {
81+ public List <AttestedTimespan > computeAttestedTimespans (LemmaDto dto ) {
8282 ESQueryResult <?> sentenceSearchResult = searchService .register (
8383 new SentencesContainingLemmaOccurrenceQueryBuilder (dto .getId ())
8484 ).run (SearchService .UNPAGED );
8585 Period attestedPeriod = dto .getTimeSpan ();
86- AttestationStats counts = AttestationStats .builder ().count (
87- sentenceSearchResult .getAggregation (SentenceSearchQueryBuilder .AGG_ID_TEXT_IDS ).size ()
88- ).texts (
89- sentenceSearchResult .getAggregation (SentenceSearchQueryBuilder .AGG_ID_TEXT_IDS ).size ()
86+ AttestationStats counts = AttestationStats .builder ().count (0
87+ // sentenceSearchResult.getAggregation(SentenceSearchQueryBuilder.AGG_ID_TEXT_IDS).size()
88+ ).texts (0
89+ // sentenceSearchResult.getAggregation(SentenceSearchQueryBuilder.AGG_ID_TEXT_IDS).size()
9090 ).sentences (
9191 sentenceSearchResult .getHitCount ()
9292 ).build ();
9393 return List .of (
9494 AttestedTimespan .builder ().period (attestedPeriod ).attestations (counts ).build ()
9595 );
96- }
96+ }
9797
9898 public Map <String , Long > getMostFrequent (int limit ) {
9999 SearchResponse response = this .searchService .query (SentenceEntity .class , matchAllQuery (),
0 commit comments