lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r787424 [9/11] - in /lucene/java/trunk: ./ contrib/ contrib/analyzers/ contrib/analyzers/src/java/org/apache/lucene/analysis/br/ contrib/analyzers/src/java/org/apache/lucene/analysis/cjk/ contrib/analyzers/src/java/org/apache/lucene/analysi...
Date Mon, 22 Jun 2009 22:19:02 GMT
Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<BoostingQuery>
-	<!-- Find docs about banks, preferably merger info and preferably not "World bank" -->
-	<Query>
-		<BooleanQuery fieldName="contents">
-			<Clause occurs="should">
-				<TermQuery>merger</TermQuery>
-			</Clause>
-			<Clause occurs="must">
-				<TermQuery>bank</TermQuery>
-			</Clause>
-		</BooleanQuery>	
-	</Query>
-	<BoostQuery boost="0.01">
-			<UserQuery>"world bank"</UserQuery>
-	</BoostQuery>
-</BoostingQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<BoostingQuery>
+	<!-- Find docs about banks, preferably merger info and preferably not "World bank" -->
+	<Query>
+		<BooleanQuery fieldName="contents">
+			<Clause occurs="should">
+				<TermQuery>merger</TermQuery>
+			</Clause>
+			<Clause occurs="must">
+				<TermQuery>bank</TermQuery>
+			</Clause>
+		</BooleanQuery>	
+	</Query>
+	<BoostQuery boost="0.01">
+			<UserQuery>"world bank"</UserQuery>
+	</BoostQuery>
+</BoostingQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,2 +1,2 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<BoostingTermQuery fieldName="contents">sumitomo</BoostingTermQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<BoostingTermQuery fieldName="contents">sumitomo</BoostingTermQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/BoostingTermQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/CachedFilter.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/CachedFilter.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/CachedFilter.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/CachedFilter.xml
Mon Jun 22 22:18:56 2009
@@ -1,41 +1,41 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<FilteredQuery>
-	<Query>
-		<BooleanQuery fieldName="contents">
-			<Clause occurs="should">
-				<TermQuery>merger</TermQuery>
-			</Clause>
-			<Clause occurs="mustnot">
-				<TermQuery >sumitomo</TermQuery>		
-			</Clause>
-		</BooleanQuery>
-	</Query>
-	
-	<Filter>
-		<!--
-			CachedFilter elements can contain any Query or Filter. 
-			CachedFilters are cached in an LRU Cache keyed on the contained query/filter object. 
-			Using this will speed up overall performance for repeated uses of the same expensive 
-			query/filter. The sorts of queries likely to benefit from caching need not necessarily
be 
-			complex - e.g. simple TermQuerys with a large DF (document frequency) can be expensive
-			on large indexes. A good example of this might be a term query on a field with only 2
possible 
-			values - "true" or "false". In a large index, querying or filtering on this field requires

-			reading millions of document ids from disk which can more usefully be cached as a 
-			QueryFilter bitset.
-			
-			For Queries/Filters to be cached and reused the object must implement hashcode and
-			equals methods correctly so that duplicate queries/filters can be detected in the cache.
-			
-			The CoreParser.maxNumCachedFilters property can be used to control the size
-			of the LRU Cache established during the construction of CoreParser instances.
-			-->
-		<CachedFilter>
-			<!-- Example query to be cached for fast, repeated use -->
-			<TermQuery fieldName="contents">bank</TermQuery> 
-			<!-- Alternatively, a filter object can be cached ....
-				<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
-			-->				
-		</CachedFilter>
-	</Filter>
-	
-</FilteredQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<FilteredQuery>
+	<Query>
+		<BooleanQuery fieldName="contents">
+			<Clause occurs="should">
+				<TermQuery>merger</TermQuery>
+			</Clause>
+			<Clause occurs="mustnot">
+				<TermQuery >sumitomo</TermQuery>		
+			</Clause>
+		</BooleanQuery>
+	</Query>
+	
+	<Filter>
+		<!--
+			CachedFilter elements can contain any Query or Filter. 
+			CachedFilters are cached in an LRU Cache keyed on the contained query/filter object. 
+			Using this will speed up overall performance for repeated uses of the same expensive 
+			query/filter. The sorts of queries likely to benefit from caching need not necessarily
be 
+			complex - e.g. simple TermQuerys with a large DF (document frequency) can be expensive
+			on large indexes. A good example of this might be a term query on a field with only 2
possible 
+			values - "true" or "false". In a large index, querying or filtering on this field requires

+			reading millions of document ids from disk which can more usefully be cached as a 
+			QueryFilter bitset.
+			
+			For Queries/Filters to be cached and reused the object must implement hashcode and
+			equals methods correctly so that duplicate queries/filters can be detected in the cache.
+			
+			The CoreParser.maxNumCachedFilters property can be used to control the size
+			of the LRU Cache established during the construction of CoreParser instances.
+			-->
+		<CachedFilter>
+			<!-- Example query to be cached for fast, repeated use -->
+			<TermQuery fieldName="contents">bank</TermQuery> 
+			<!-- Alternatively, a filter object can be cached ....
+				<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
+			-->				
+		</CachedFilter>
+	</Filter>
+	
+</FilteredQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/CachedFilter.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/ConstantScoreQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/ConstantScoreQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/ConstantScoreQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/ConstantScoreQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ConstantScoreQuery>
-	<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
-</ConstantScoreQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<ConstantScoreQuery>
+	<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
+</ConstantScoreQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/ConstantScoreQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/DuplicateFilterQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/DuplicateFilterQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/DuplicateFilterQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/DuplicateFilterQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,18 +1,18 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<FilteredQuery>
-	<Query>
-		<BooleanQuery fieldName="contents">
-			<Clause occurs="should">
-				<TermQuery>money</TermQuery>
-			</Clause>
-			<Clause occurs="must">
-				<TermQuery fieldName="date">19870408</TermQuery>
-			</Clause>
-		</BooleanQuery>
-	</Query>	
-	<Filter>
-		<!-- Filters to last document with this date -->
-		<DuplicateFilter fieldName="date" keepMode="last"/>
-	</Filter>
-	
-</FilteredQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<FilteredQuery>
+	<Query>
+		<BooleanQuery fieldName="contents">
+			<Clause occurs="should">
+				<TermQuery>money</TermQuery>
+			</Clause>
+			<Clause occurs="must">
+				<TermQuery fieldName="date">19870408</TermQuery>
+			</Clause>
+		</BooleanQuery>
+	</Query>	
+	<Filter>
+		<!-- Filters to last document with this date -->
+		<DuplicateFilter fieldName="date" keepMode="last"/>
+	</Filter>
+	
+</FilteredQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/DuplicateFilterQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/FuzzyLikeThisQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/FuzzyLikeThisQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/FuzzyLikeThisQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/FuzzyLikeThisQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<FuzzyLikeThisQuery>
-	<!-- Matches on misspelt "Sumitomo" bank -->
-	<Field fieldName="contents">
-		Sumitimo bank 
-	</Field>
-</FuzzyLikeThisQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<FuzzyLikeThisQuery>
+	<!-- Matches on misspelt "Sumitomo" bank -->
+	<Field fieldName="contents">
+		Sumitimo bank 
+	</Field>
+</FuzzyLikeThisQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/FuzzyLikeThisQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/LikeThisQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/LikeThisQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/LikeThisQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/LikeThisQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<LikeThisQuery percentTermsToMatch="5" stopWords="Reuter" minDocFreq="2">
-IRAQI TROOPS REPORTED PUSHING BACK IRANIANS Iraq said today its troops were pushing Iranian
forces out of 
-	positions they had initially occupied when they launched a new offensive near the southern
port of 
-	Basra early yesterday.     A High Command communique said Iraqi troops had won a significant
victory 
-	and were continuing to advance.     Iraq said it had foiled a three-pronged thrust some
10 km 
-	(six miles) from Basra, but admitted the Iranians had occupied ground held by the Mohammed
al-Qassem 
-	unit, one of three divisions attacked.     The communique said Iranian Revolutionary Guards
were under 
-	assault from warplanes, helicopter gunships, heavy artillery and tanks.     "Our forces
are continuing 
-	their advance until they purge the last foothold" occupied by the Iranians, it said.   
 
-	(Iran said its troops had killed or wounded more than 4,000 Iraqis and were stabilising
their new positions.)     
-	The Baghdad communique said Iraqi planes also destroyed oil installations at Iran's southwestern
Ahvaz field 
-	during a raid today. It denied an Iranian report that an Iraqi jet was shot down.     
-	Iraq also reported a naval battle at the northern tip of the Gulf. Iraqi naval units and
forces defending an 
-	offshore terminal sank six Iranian out of 28 Iranian boats attempting to attack an offshore
terminal, 
-	the communique said.      Reuter 3;
+<?xml version="1.0" encoding="UTF-8"?>
+<LikeThisQuery percentTermsToMatch="5" stopWords="Reuter" minDocFreq="2">
+IRAQI TROOPS REPORTED PUSHING BACK IRANIANS Iraq said today its troops were pushing Iranian
forces out of 
+	positions they had initially occupied when they launched a new offensive near the southern
port of 
+	Basra early yesterday.     A High Command communique said Iraqi troops had won a significant
victory 
+	and were continuing to advance.     Iraq said it had foiled a three-pronged thrust some
10 km 
+	(six miles) from Basra, but admitted the Iranians had occupied ground held by the Mohammed
al-Qassem 
+	unit, one of three divisions attacked.     The communique said Iranian Revolutionary Guards
were under 
+	assault from warplanes, helicopter gunships, heavy artillery and tanks.     "Our forces
are continuing 
+	their advance until they purge the last foothold" occupied by the Iranians, it said.   
 
+	(Iran said its troops had killed or wounded more than 4,000 Iraqis and were stabilising
their new positions.)     
+	The Baghdad communique said Iraqi planes also destroyed oil installations at Iran's southwestern
Ahvaz field 
+	during a raid today. It denied an Iranian report that an Iraqi jet was shot down.     
+	Iraq also reported a naval battle at the northern tip of the Gulf. Iraqi naval units and
forces defending an 
+	offshore terminal sank six Iranian out of 28 Iranian boats attempting to attack an offshore
terminal, 
+	the communique said.      Reuter 3;
 </LikeThisQuery>
\ No newline at end of file

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/LikeThisQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/MatchAllDocsQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/MatchAllDocsQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/MatchAllDocsQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/MatchAllDocsQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,11 +1,11 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<FilteredQuery>
-	<Query>
-		<MatchAllDocsQuery/>
-	</Query>
-	
-	<Filter>
-		<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
-	</Filter>
-	
-</FilteredQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<FilteredQuery>
+	<Query>
+		<MatchAllDocsQuery/>
+	</Query>
+	
+	<Filter>
+		<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
+	</Filter>
+	
+</FilteredQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/MatchAllDocsQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NestedBooleanQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NestedBooleanQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NestedBooleanQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NestedBooleanQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,20 +1,20 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-	This query was added to demonstrate nested boolean queries - there
-	was a bug in the XML parser which added ALL child <Clause> tags to 
-	the top level tags ie. took child and grandchild elements instead
-	of just child elements. This was due to the use of the 
-	Element.getElementsByTagName() call in BooleanQueryBuilder
--->	
-<BooleanQuery fieldName="contents">	
-	<Clause occurs="should">
-		<BooleanQuery fieldName="contents">
-			<Clause occurs="must">
-				<TermQuery>doesNotExistButShouldBeOKBecauseOtherClauseExists</TermQuery>
-			</Clause>
-		</BooleanQuery>
-	</Clause>
-	<Clause occurs="should">
-		<TermQuery>bank</TermQuery>
-	</Clause>
-</BooleanQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+	This query was added to demonstrate nested boolean queries - there
+	was a bug in the XML parser which added ALL child <Clause> tags to 
+	the top level tags ie. took child and grandchild elements instead
+	of just child elements. This was due to the use of the 
+	Element.getElementsByTagName() call in BooleanQueryBuilder
+-->	
+<BooleanQuery fieldName="contents">	
+	<Clause occurs="should">
+		<BooleanQuery fieldName="contents">
+			<Clause occurs="must">
+				<TermQuery>doesNotExistButShouldBeOKBecauseOtherClauseExists</TermQuery>
+			</Clause>
+		</BooleanQuery>
+	</Clause>
+	<Clause occurs="should">
+		<TermQuery>bank</TermQuery>
+	</Clause>
+</BooleanQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/NestedBooleanQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/RangeFilterQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/RangeFilterQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/RangeFilterQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/RangeFilterQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,21 +1,21 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<FilteredQuery>
-	<Query>
-		<BooleanQuery fieldName="contents">
-			<Clause occurs="should">
-				<TermQuery>merger</TermQuery>
-			</Clause>
-			<Clause occurs="mustnot">
-				<TermQuery >sumitomo</TermQuery>		
-			</Clause>
-			<Clause occurs="must">
-				<TermQuery>bank</TermQuery>
-			</Clause>
-		</BooleanQuery>
-	</Query>
-	
-	<Filter>
-		<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
-	</Filter>
-	
-</FilteredQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<FilteredQuery>
+	<Query>
+		<BooleanQuery fieldName="contents">
+			<Clause occurs="should">
+				<TermQuery>merger</TermQuery>
+			</Clause>
+			<Clause occurs="mustnot">
+				<TermQuery >sumitomo</TermQuery>		
+			</Clause>
+			<Clause occurs="must">
+				<TermQuery>bank</TermQuery>
+			</Clause>
+		</BooleanQuery>
+	</Query>
+	
+	<Filter>
+		<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
+	</Filter>
+	
+</FilteredQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/RangeFilterQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/SpanQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/SpanQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/SpanQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/SpanQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,39 +1,39 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<SpanOr fieldName="contents">
-	<SpanNear slop="8" inOrder="false" >		
-			<SpanOr>
-				<SpanTerm>killed</SpanTerm>
-				<SpanTerm>died</SpanTerm>
-				<SpanTerm>dead</SpanTerm>
-			</SpanOr>
-			<SpanOr>
-				<!-- a less verbose way of declaring SpanTerm declarations - these are analyzed
-					into a series of Tokens which are added as SpanTerm elements of a SpanOr
-				-->
-				<SpanOrTerms>miner miners</SpanOrTerms>
-				<!-- finds mine near worker or workers -->
-				<SpanNear slop="6" inOrder="false">		
-					<SpanTerm>mine</SpanTerm>					
-					<SpanOrTerms>worker workers</SpanOrTerms>
-          <BoostingTermQuery>heavy</BoostingTermQuery>
-        </SpanNear>
-			</SpanOr>
-	</SpanNear>	
-	<SpanFirst end="10">
-		<SpanOrTerms>fire burn</SpanOrTerms>
-	</SpanFirst> 
-	<!-- Other Span examples....
-		
-	<SpanNot>
-		<Include>
-				<SpanNear slop="2" inOrder="2">		
-						<SpanTerm>social</SpanTerm>
-						<SpanTerm>services</SpanTerm>
-				</SpanNear>				
-		</Include>
-		<Exclude>
-				<SpanTerm>public</SpanTerm>
-		</Exclude>
-	</SpanNot>
-		-->
-</SpanOr>
+<?xml version="1.0" encoding="UTF-8"?>
+<SpanOr fieldName="contents">
+	<SpanNear slop="8" inOrder="false" >		
+			<SpanOr>
+				<SpanTerm>killed</SpanTerm>
+				<SpanTerm>died</SpanTerm>
+				<SpanTerm>dead</SpanTerm>
+			</SpanOr>
+			<SpanOr>
+				<!-- a less verbose way of declaring SpanTerm declarations - these are analyzed
+					into a series of Tokens which are added as SpanTerm elements of a SpanOr
+				-->
+				<SpanOrTerms>miner miners</SpanOrTerms>
+				<!-- finds mine near worker or workers -->
+				<SpanNear slop="6" inOrder="false">		
+					<SpanTerm>mine</SpanTerm>					
+					<SpanOrTerms>worker workers</SpanOrTerms>
+          <BoostingTermQuery>heavy</BoostingTermQuery>
+        </SpanNear>
+			</SpanOr>
+	</SpanNear>	
+	<SpanFirst end="10">
+		<SpanOrTerms>fire burn</SpanOrTerms>
+	</SpanFirst> 
+	<!-- Other Span examples....
+		
+	<SpanNot>
+		<Include>
+				<SpanNear slop="2" inOrder="2">		
+						<SpanTerm>social</SpanTerm>
+						<SpanTerm>services</SpanTerm>
+				</SpanNear>				
+		</Include>
+		<Exclude>
+				<SpanTerm>public</SpanTerm>
+		</Exclude>
+	</SpanNot>
+		-->
+</SpanOr>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/SpanQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,2 +1,2 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <TermQuery fieldName="contents">sumitomo</TermQuery>
\ No newline at end of file

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsFilterQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsFilterQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsFilterQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsFilterQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,30 +1,30 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<FilteredQuery>
-	<Query>
-		<BooleanQuery fieldName="contents">
-			<Clause occurs="should">
-				<TermQuery>merger</TermQuery>
-			</Clause>
-			<Clause occurs="must">
-				<TermQuery>bank</TermQuery> 
-			</Clause>
-		</BooleanQuery>	
-	</Query>
-	<Filter>
-		<!-- TermsFilter uses an analyzer to tokenize Field text and creates a filter for docs
which 
-			have ANY of the supplied terms. Unlike a RangeFilter this can be used for filtering on

-			multiple terms that are not necessarily in a sequence. An example might be a list of primary
-			keys from a database query result or perhaps a choice of "category" labels picked by the
end 
-			user.
-			As a filter, this is much faster than the equivalent query (a BooleanQuery with many 
-			"should" TermQueries)
-			
-			This example might be just a list of Saturdays ie not a contiguous range of values
-			which can be handled by rangefilter
-		-->
-		<TermsFilter fieldName="date">			
-			19870601 19870608 19870615
-		</TermsFilter> 
-	</Filter>
-	
-</FilteredQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<FilteredQuery>
+	<Query>
+		<BooleanQuery fieldName="contents">
+			<Clause occurs="should">
+				<TermQuery>merger</TermQuery>
+			</Clause>
+			<Clause occurs="must">
+				<TermQuery>bank</TermQuery> 
+			</Clause>
+		</BooleanQuery>	
+	</Query>
+	<Filter>
+		<!-- TermsFilter uses an analyzer to tokenize Field text and creates a filter for docs
which 
+			have ANY of the supplied terms. Unlike a RangeFilter this can be used for filtering on

+			multiple terms that are not necessarily in a sequence. An example might be a list of primary
+			keys from a database query result or perhaps a choice of "category" labels picked by the
end 
+			user.
+			As a filter, this is much faster than the equivalent query (a BooleanQuery with many 
+			"should" TermQueries)
+			
+			This example might be just a list of Saturdays ie not a contiguous range of values
+			which can be handled by rangefilter
+		-->
+		<TermsFilter fieldName="date">			
+			19870601 19870608 19870615
+		</TermsFilter> 
+	</Filter>
+	
+</FilteredQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsFilterQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-		<!-- TermsQuery uses an analyzer to tokenize text and creates a BooleanQuery with nested
-			"should" TermQueries for each of the tokens encountered. This can be used for user input
-			which may include content or characters that would otherwise be illegal query syntax when
-			using the standard lucene query parser. Of course the downside is that none of the query

-			operators (AND NOT ~ ^ : etc) will have an effect. For some scenarios queries are
-			not formed by people familiar with Lucene query syntax and they can inadvertently type
illegal
-			query syntax so in these cases this is an appropriate and simple alternative
-		--> 
+<?xml version="1.0" encoding="UTF-8"?>
+		<!-- TermsQuery uses an analyzer to tokenize text and creates a BooleanQuery with nested
+			"should" TermQueries for each of the tokens encountered. This can be used for user input
+			which may include content or characters that would otherwise be illegal query syntax when
+			using the standard lucene query parser. Of course the downside is that none of the query

+			operators (AND NOT ~ ^ : etc) will have an effect. For some scenarios queries are
+			not formed by people familiar with Lucene query syntax and they can inadvertently type
illegal
+			query syntax so in these cases this is an appropriate and simple alternative
+		--> 
 <TermsQuery fieldName="contents">sumitomo bank</TermsQuery>
\ No newline at end of file

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/TermsQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQuery.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQuery.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQuery.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQuery.xml
Mon Jun 22 22:18:56 2009
@@ -1,10 +1,10 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<FilteredQuery>
-	<Query>
-		<UserQuery>"Bank of England"</UserQuery>
-	</Query>
-	<Filter>
-		<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
-	</Filter>
-	
-</FilteredQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<FilteredQuery>
+	<Query>
+		<UserQuery>"Bank of England"</UserQuery>
+	</Query>
+	<Filter>
+		<RangeFilter fieldName="date" lowerTerm="19870409" upperTerm="19870412"/>
+	</Filter>
+	
+</FilteredQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQuery.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQueryCustomField.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQueryCustomField.xml?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQueryCustomField.xml
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQueryCustomField.xml
Mon Jun 22 22:18:56 2009
@@ -1,2 +1,2 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<UserQuery fieldName="doesNotExist">Bank</UserQuery>
+<?xml version="1.0" encoding="UTF-8"?>
+<UserQuery fieldName="doesNotExist">Bank</UserQuery>

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/UserInputQueryCustomField.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumBooleanQuery.xsl
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumBooleanQuery.xsl?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumBooleanQuery.xsl
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumBooleanQuery.xsl
Mon Jun 22 22:18:56 2009
@@ -1,32 +1,32 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:template match="/Document">
-<!--This template ANDs all fields together. Within a single field all terms are ORed.
-	The query fields are fed directly through an analyzer and so do not need to adhere to  
-	traditional Lucene query syntax.
- -->	
-<BooleanQuery>
-	<xsl:if test="count(artist)>0">
-	    <Clause occurs="must">
-	      <TermsQuery fieldName="artist"><xsl:value-of select="artist"/></TermsQuery>
-	   </Clause>
-   </xsl:if>
-	<xsl:if test="count(album)>0">
-	    <Clause occurs="must">
-	      <TermsQuery fieldName="album"><xsl:value-of select="album"/></TermsQuery>
-	   </Clause>
-   </xsl:if>
-	<xsl:if test="count(genre)>0">
-	    <Clause occurs="must">
-	      <TermsQuery fieldName="genre"><xsl:value-of select="genre"/></TermsQuery>
-	   </Clause>
-   </xsl:if>
-	<xsl:if test="count(releaseDate)>0">
-	    <Clause occurs="must">
-	      <TermsQuery fieldName="releaseDate"><xsl:value-of select="releaseDate"/></TermsQuery>
-	   </Clause>
-   </xsl:if>
-</BooleanQuery>
-
-</xsl:template>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="/Document">
+<!--This template ANDs all fields together. Within a single field all terms are ORed.
+	The query fields are fed directly through an analyzer and so do not need to adhere to  
+	traditional Lucene query syntax.
+ -->	
+<BooleanQuery>
+	<xsl:if test="count(artist)>0">
+	    <Clause occurs="must">
+	      <TermsQuery fieldName="artist"><xsl:value-of select="artist"/></TermsQuery>
+	   </Clause>
+   </xsl:if>
+	<xsl:if test="count(album)>0">
+	    <Clause occurs="must">
+	      <TermsQuery fieldName="album"><xsl:value-of select="album"/></TermsQuery>
+	   </Clause>
+   </xsl:if>
+	<xsl:if test="count(genre)>0">
+	    <Clause occurs="must">
+	      <TermsQuery fieldName="genre"><xsl:value-of select="genre"/></TermsQuery>
+	   </Clause>
+   </xsl:if>
+	<xsl:if test="count(releaseDate)>0">
+	    <Clause occurs="must">
+	      <TermsQuery fieldName="releaseDate"><xsl:value-of select="releaseDate"/></TermsQuery>
+	   </Clause>
+   </xsl:if>
+</BooleanQuery>
+
+</xsl:template>
 </xsl:stylesheet>
\ No newline at end of file

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumBooleanQuery.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumFilteredQuery.xsl
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumFilteredQuery.xsl?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumFilteredQuery.xsl
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumFilteredQuery.xsl
Mon Jun 22 22:18:56 2009
@@ -1,38 +1,38 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:template match="/Document">
-<!-- This template uses an efficient, cached filter for the "genre" field".
-	Other query fields are fed directly through an analyzer and so do not need to adhere to
 
-	traditional Lucene query syntax. Terms within a field are ORed while different fields are
ANDed
- -->	
-<FilteredQuery>
-	<Query>
-		<BooleanQuery>
-			<xsl:if test="count(artist)>0">
-			    <Clause occurs="must">
-			      <TermsQuery fieldName="artist"><xsl:value-of select="artist"/></TermsQuery>
-			   </Clause>
-		   </xsl:if>
-			<xsl:if test="count(album)>0">
-			    <Clause occurs="must">
-			      <TermsQuery fieldName="album"><xsl:value-of select="album"/></TermsQuery>
-			   </Clause>
-		   </xsl:if>
-			<xsl:if test="count(releaseDate)>0">
-			    <Clause occurs="must">
-			      <TermsQuery fieldName="releaseDate"><xsl:value-of select="releaseDate"/></TermsQuery>
-			   </Clause>
-		   </xsl:if>
-	</BooleanQuery>
-	</Query>
-	<Filter>
-		<CachedFilter>
-			<!-- Example filter to be cached for fast, repeated use -->
-			<TermsFilter fieldName="genre">			
-				<xsl:value-of select="genre"/>
-			</TermsFilter>
-		</CachedFilter>		
-	</Filter>	
-</FilteredQuery>
-</xsl:template>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="/Document">
+<!-- This template uses an efficient, cached filter for the "genre" field".
+	Other query fields are fed directly through an analyzer and so do not need to adhere to
 
+	traditional Lucene query syntax. Terms within a field are ORed while different fields are
ANDed
+ -->	
+<FilteredQuery>
+	<Query>
+		<BooleanQuery>
+			<xsl:if test="count(artist)>0">
+			    <Clause occurs="must">
+			      <TermsQuery fieldName="artist"><xsl:value-of select="artist"/></TermsQuery>
+			   </Clause>
+		   </xsl:if>
+			<xsl:if test="count(album)>0">
+			    <Clause occurs="must">
+			      <TermsQuery fieldName="album"><xsl:value-of select="album"/></TermsQuery>
+			   </Clause>
+		   </xsl:if>
+			<xsl:if test="count(releaseDate)>0">
+			    <Clause occurs="must">
+			      <TermsQuery fieldName="releaseDate"><xsl:value-of select="releaseDate"/></TermsQuery>
+			   </Clause>
+		   </xsl:if>
+	</BooleanQuery>
+	</Query>
+	<Filter>
+		<CachedFilter>
+			<!-- Example filter to be cached for fast, repeated use -->
+			<TermsFilter fieldName="genre">			
+				<xsl:value-of select="genre"/>
+			</TermsFilter>
+		</CachedFilter>		
+	</Filter>	
+</FilteredQuery>
+</xsl:template>
 </xsl:stylesheet>
\ No newline at end of file

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumFilteredQuery.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumLuceneClassicQuery.xsl
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumLuceneClassicQuery.xsl?rev=787424&r1=787423&r2=787424&view=diff
==============================================================================
--- lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumLuceneClassicQuery.xsl
(original)
+++ lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumLuceneClassicQuery.xsl
Mon Jun 22 22:18:56 2009
@@ -1,13 +1,13 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-<xsl:template match="/Document">
-<!-- This template is designed to work with a google-like search form - one edit box and

-	uses the traditional Lucene query syntax
- -->		
-<BooleanQuery>
-    <Clause occurs="must">
-	      <UserQuery><xsl:value-of select="queryString"/></UserQuery>
-   </Clause>
-</BooleanQuery>
-</xsl:template>
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="/Document">
+<!-- This template is designed to work with a google-like search form - one edit box and

+	uses the traditional Lucene query syntax
+ -->		
+<BooleanQuery>
+    <Clause occurs="must">
+	      <UserQuery><xsl:value-of select="queryString"/></UserQuery>
+   </Clause>
+</BooleanQuery>
+</xsl:template>
 </xsl:stylesheet>
\ No newline at end of file

Propchange: lucene/java/trunk/contrib/xml-query-parser/src/test/org/apache/lucene/xmlparser/albumLuceneClassicQuery.xsl
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message