~slub.team/goobi-indexserver/3.x

« back to all changes in this revision

Viewing changes to lucene/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BooleanFilter.xml

  • Committer: Sebastian Meyer
  • Date: 2012-08-03 09:12:40 UTC
  • Revision ID: sebastian.meyer@slub-dresden.de-20120803091240-x6861b0vabq1xror
Remove Lucene and Solr source code and add patches instead
Fix Bug #985487: Auto-suggestion for the search interface

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<FilteredQuery>
3
 
        <Query>
4
 
                <MatchAllDocsQuery/>
5
 
        </Query>
6
 
        
7
 
        <Filter>
8
 
                <!--
9
 
                        This query illustrates how a BooleanFilter can be used to combine
10
 
                        multiple filters in the same way BooleanQueries can be combined
11
 
                        with must, should and mustnot clauses
12
 
                        -->
13
 
                <BooleanFilter>
14
 
                        <Clause occurs="should">
15
 
                                <RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
16
 
                        </Clause>
17
 
                        <Clause occurs="mustNot">
18
 
                                <TermsFilter fieldName="contents">Emcore</TermsFilter> 
19
 
                        </Clause>
20
 
                </BooleanFilter>
21
 
                
22
 
        </Filter>
23
 
        
24
 
</FilteredQuery>
25