Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getQueryWordsNum (0.18 sec)

  1. src/main/java/org/codelibs/fess/helper/SuggestHelper.java

            return suggester.getAllWordsNum();
        }
    
        public long getDocumentWordsNum() {
            return suggester.getDocumentWordsNum();
        }
    
        public long getQueryWordsNum() {
            return suggester.getQueryWordsNum();
        }
    
        public boolean deleteAllWords() {
            final SuggestDeleteResponse response = suggester.indexer().deleteAll();
            if (response.hasError()) {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals(2, suggester.getDocumentWordsNum());
            assertEquals(1, suggester.getQueryWordsNum());
    
            suggester.indexer().deleteAll();
            suggester.refresh();
            assertEquals(0, suggester.getAllWordsNum());
            assertEquals(0, suggester.getDocumentWordsNum());
            assertEquals(0, suggester.getQueryWordsNum());
        }
    
        @Test
        public void test_deleteDocumentWords() throws Exception {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 37K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/Suggester.java

            return getNum(QueryBuilders.matchAllQuery());
        }
    
        public long getDocumentWordsNum() {
            return getNum(QueryBuilders.rangeQuery(FieldNames.DOC_FREQ).gte(1));
        }
    
        public long getQueryWordsNum() {
            return getNum(QueryBuilders.rangeQuery(FieldNames.QUERY_FREQ).gte(1));
        }
    
        private long getNum(final QueryBuilder queryBuilder) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 14.6K bytes
    - Viewed (0)
Back to top