Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for createDefaultFilterChain (0.28 sec)

  1. src/test/java/org/codelibs/fess/query/parser/QueryParserTest.java

            QueryParser queryParser = new QueryParser();
    
            Query query = queryParser.createDefaultFilterChain().parse("fess");
            assertEquals(TermQuery.class, query.getClass());
            assertEquals("_default:fess", ((TermQuery) query).getTerm().toString());
    
            query = queryParser.createDefaultFilterChain().parse("title:fess");
            assertEquals(TermQuery.class, query.getClass());
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-02-22 01:37
    - 5.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/query/QueryProcessor.java

        }
    
        public void addFilter(final Filter filter) {
            filterList.add(filter);
            createFilterChain();
        }
    
        protected void createFilterChain() {
            FilterChain chain = createDefaultFilterChain();
            for (final Filter element : filterList) {
                chain = appendFilterChain(element, chain);
            }
            filterChain = chain;
        }
    
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-02-22 01:53
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/query/parser/QueryParser.java

        }
    
        public void addFilter(final Filter filter) {
            filterList.add(filter);
            createFilterChain();
        }
    
        protected void createFilterChain() {
            FilterChain chain = createDefaultFilterChain();
            for (final Filter element : filterList) {
                chain = appendFilterChain(element, chain);
            }
            filterChain = chain;
        }
    
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-10-11 21:20
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/query/QueryProcessorTest.java

        public void test_executeWithFilter() {
            final AtomicBoolean called = new AtomicBoolean(false);
            QueryProcessor queryProcessor = new QueryProcessor() {
                protected FilterChain createDefaultFilterChain() {
                    return (context, query, boost) -> {
                        called.set(true);
                        return QueryBuilders.boolQuery();
                    };
                }
            };
    Registered: 2024-10-31 13:40
    - Last Modified: 2024-02-22 01:37
    - 3.5K bytes
    - Viewed (0)
Back to top