~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/NestedBooleanQuery.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
 
<!--
3
 
        This query was added to demonstrate nested boolean queries - there
4
 
        was a bug in the XML parser which added ALL child <Clause> tags to 
5
 
        the top level tags ie. took child and grandchild elements instead
6
 
        of just child elements. This was due to the use of the 
7
 
        Element.getElementsByTagName() call in BooleanQueryBuilder
8
 
-->     
9
 
<BooleanQuery fieldName="contents">     
10
 
        <Clause occurs="should">
11
 
                <BooleanQuery fieldName="contents">
12
 
                        <Clause occurs="must">
13
 
                                <TermQuery>doesNotExistButShouldBeOKBecauseOtherClauseExists</TermQuery>
14
 
                        </Clause>
15
 
                </BooleanQuery>
16
 
        </Clause>
17
 
        <Clause occurs="should">
18
 
                <TermQuery>bank</TermQuery>
19
 
        </Clause>
20
 
</BooleanQuery>