Fixing OAK-9767 - Only checking if the count is >0 for including a term in getFieldTerms
authorDan Klco <klco@adobe.com>
Tue, 24 May 2022 18:04:49 +0000 (14:04 -0400)
committerDan Klco <klco@adobe.com>
Tue, 24 May 2022 18:04:49 +0000 (14:04 -0400)
commitecf02615c92fc89197fd936482da266bf0c0f7ba
tree091f60658f7ddc20a7c7f6d2c44032ba328f11ce
parentf7020775b4d46d6f8c333746f8defe41e19bbc2e
Fixing OAK-9767 - Only checking if the count is >0 for including a term in getFieldTerms
oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImpl.java
oak-lucene/src/test/java/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImplTest.java
oak-lucene/src/test/resources/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImplTest-expected-int-field.txt
oak-lucene/src/test/resources/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImplTest-expected-long-field.txt
oak-lucene/src/test/resources/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImplTest-expected-notunique.txt [new file with mode: 0644]
oak-lucene/src/test/resources/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImplTest-expected-string-field.txt
oak-lucene/src/test/resources/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImplTest-expected-top-terms.txt [new file with mode: 0644]
oak-lucene/src/test/resources/org/apache/jackrabbit/oak/plugins/index/lucene/LuceneIndexMBeanImplTest-expected-unique.txt [new file with mode: 0644]