Repository: vxquery
Updated Branches:
  refs/heads/master 6bee358bc -> eb76640fc


http://git-wip-us.apache.org/repos/asf/vxquery/blob/eb76640f/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex2.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex2.xq 
b/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex2.xq
deleted file mode 100644
index bf19ee9..0000000
--- a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex2.xq
+++ /dev/null
@@ -1,24 +0,0 @@
-(: Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-   
-     http://www.apache.org/licenses/LICENSE-2.0
-   
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License. :)
-
-(: Search Lucene Index :)
-(: Find all reading for hurricane force wind warning or extreme wind warning. 
:)
-(: The warnings occur when the wind speed (AWND) exceeds 110 mph (49.1744     
:)
-(: meters per second). (Wind value is in tenth of a meter per second)         
:)
-for $r in collection-from-index("target/tmp/indexFolder", 
"/dataCollection/data")/data
-where $r/dataType eq "AWND" and xs:decimal($r/value) gt 491.744
-return $r

http://git-wip-us.apache.org/repos/asf/vxquery/blob/eb76640f/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex3.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex3.xq 
b/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex3.xq
deleted file mode 100644
index 28cf019..0000000
--- a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex3.xq
+++ /dev/null
@@ -1,27 +0,0 @@
-(: Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-   
-     http://www.apache.org/licenses/LICENSE-2.0
-   
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License. :)
-
-(: Search Lucene Index :)
-(: Find the annual precipitation (PRCP) for a Seattle using the airport       
:)
-(: station (US000000002) for 2002.                                            
:)
-fn:sum(
-    for $r in collection-from-index("target/tmp/indexFolder", 
"/dataCollection/data")/data
-    where $r/station eq "GHCND:US000000002" 
-        and $r/dataType eq "PRCP" 
-        and fn:year-from-dateTime(xs:dateTime(fn:data($r/date))) eq 2002
-    return $r/value
-) div 10

http://git-wip-us.apache.org/repos/asf/vxquery/blob/eb76640f/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex4.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex4.xq 
b/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex4.xq
deleted file mode 100644
index 2b75cf4..0000000
--- a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex4.xq
+++ /dev/null
@@ -1,24 +0,0 @@
-(: Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-   
-     http://www.apache.org/licenses/LICENSE-2.0
-   
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License. :)
-
-(: Search Lucene Index :)
-(: Find the highest recorded temperature (TMAX) in Celsius.                   
:)
-fn:max(
-    for $r in collection-from-index("target/tmp/indexFolder", 
"/dataCollection/data")/data
-    where $r/dataType eq "TMAX"
-    return $r/value
-) div 10

http://git-wip-us.apache.org/repos/asf/vxquery/blob/eb76640f/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex5.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex5.xq 
b/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex5.xq
deleted file mode 100644
index e83484a..0000000
--- a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex5.xq
+++ /dev/null
@@ -1,23 +0,0 @@
-(: Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-   
-     http://www.apache.org/licenses/LICENSE-2.0
-   
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License. :)
-
-(: Search Lucene Index :)
-(: Find all the weather readings for Washington state for a specific day    :)
-(: 2002-2-2.                                                                  
:)
-for $r in collection-from-index("target/tmp/indexFolder", 
"/dataCollection/data")/data
-where xs:dateTime(fn:data($r/date)) eq xs:dateTime("2002-02-02T00:00:00.000")
-return $r

http://git-wip-us.apache.org/repos/asf/vxquery/blob/eb76640f/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex6.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex6.xq 
b/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex6.xq
deleted file mode 100644
index 04f6672..0000000
--- a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex6.xq
+++ /dev/null
@@ -1,23 +0,0 @@
-(: Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-   
-     http://www.apache.org/licenses/LICENSE-2.0
-   
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License. :)
-
-(: Search Lucene Index :)
-(: Find all the weather readings for Washington state for a specific day    :)
-(: 2002-2-2.                                                                  
:)
-for $s in collection-from-index("target/tmp/indexFolder", 
"/stationCollection/station")/station
-where (some $x in $s/locationLabels satisfies ($x/type eq "ST" and 
fn:upper-case(fn:data($x/displayName)) eq "STATE 1"))
-return $s

http://git-wip-us.apache.org/repos/asf/vxquery/blob/eb76640f/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex7.xq
----------------------------------------------------------------------
diff --git 
a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex7.xq 
b/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex7.xq
deleted file mode 100644
index e471baa..0000000
--- a/vxquery-xtest/src/test/resources/Queries/XQuery/Indexing/useIndex7.xq
+++ /dev/null
@@ -1,27 +0,0 @@
-(: Licensed to the Apache Software Foundation (ASF) under one
-   or more contributor license agreements.  See the NOTICE file
-   distributed with this work for additional information
-   regarding copyright ownership.  The ASF licenses this file
-   to you under the Apache License, Version 2.0 (the
-   "License"); you may not use this file except in compliance
-   with the License.  You may obtain a copy of the License at
-   
-     http://www.apache.org/licenses/LICENSE-2.0
-   
-   Unless required by applicable law or agreed to in writing,
-   software distributed under the License is distributed on an
-   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-   KIND, either express or implied.  See the License for the
-   specific language governing permissions and limitations
-   under the License. :)
-
-(: Search Lucene Index :)
-(: Find all the weather readings for Washington state for a specific day    :)
-(: 2002-2-2.                                                                  
:)
-for $s in collection-from-index("target/tmp/indexFolder", 
"/stationCollection/station")/station
-for $r in collection-from-index("target/tmp/indexFolder", 
"/dataCollection/data")/data
-    
-where $s/id eq $r/station 
-    and (some $x in $s/locationLabels satisfies ($x/type eq "ST" and 
fn:upper-case(fn:data($x/displayName)) eq "STATE 1"))
-    and xs:dateTime(fn:data($r/date)) eq xs:dateTime("2002-02-02T00:00:00.000")
-return $r

http://git-wip-us.apache.org/repos/asf/vxquery/blob/eb76640f/vxquery-xtest/src/test/resources/cat/IndexingQueries.xml
----------------------------------------------------------------------
diff --git a/vxquery-xtest/src/test/resources/cat/IndexingQueries.xml 
b/vxquery-xtest/src/test/resources/cat/IndexingQueries.xml
index 763d8c3..fc668ba 100644
--- a/vxquery-xtest/src/test/resources/cat/IndexingQueries.xml
+++ b/vxquery-xtest/src/test/resources/cat/IndexingQueries.xml
@@ -20,54 +20,164 @@
       <title>Indexing</title>
       <description/>
    </GroupInfo>
-   <test-case name="create-index" FilePath="Indexing/" Creator="Steven Jacobs">
+   <test-case name="create-index" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Create Lucene Index from Collection.</description>
       <query name="createIndex" date="2016-05-26"/>
       <output-file compare="Text">createIndex.txt</output-file>
    </test-case>
-   <test-case name="use-index-1" FilePath="Indexing/" Creator="Steven Jacobs">
+   <test-case name="show-index-1" FilePath="Indexing/Partition-1/" 
Creator="Menaka Jayawardena">
+      <description>Show indexes after creating index.</description>
+      <query name="showIndex" date="2016-08-18"/>
+      <output-file compare="Text">showIndex1.txt</output-file>
+   </test-case>
+   <test-case name="use-index-1" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Get Collection From Lucene Index</description>
       <query name="useIndex1" date="2016-05-26"/>
       <output-file compare="Text">useIndex1.txt</output-file>
    </test-case>
-   <test-case name="use-index-2" FilePath="Indexing/" Creator="Steven Jacobs">
+   <test-case name="use-index-2" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Get Collection From Lucene Index</description>
       <query name="useIndex2" date="2016-05-26"/>
       <output-file compare="Text">useIndex2.txt</output-file>
    </test-case>
-   <test-case name="use-index-3" FilePath="Indexing/" Creator="Steven Jacobs">
+   <test-case name="use-index-3" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Get Collection From Lucene Index</description>
       <query name="useIndex3" date="2016-05-26"/>
       <output-file compare="Text">useIndex3.txt</output-file>
    </test-case>
-   <test-case name="use-index-4" FilePath="Indexing/" Creator="Steven Jacobs">
+   <test-case name="use-index-4" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Get Collection From Lucene Index</description>
       <query name="useIndex4" date="2016-05-26"/>
       <output-file compare="Text">useIndex4.txt</output-file>
    </test-case>
-   <test-case name="use-index-5" FilePath="Indexing/" Creator="Steven Jacobs">
+   <test-case name="use-index-5" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Get Collection From Lucene Index</description>
       <query name="useIndex5" date="2016-05-26"/>
       <output-file compare="Text">useIndex5.txt</output-file>
    </test-case>
-   <!--<test-case name="use-index-6" FilePath="Indexing/" Creator="Steven 
Jacobs">
+   <test-case name="use-index-6" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Get Collection From Lucene Index</description>
       <query name="useIndex6" date="2016-05-26"/>
       <output-file compare="Text">useIndex6.txt</output-file>
-   </test-case>-->
-   <test-case name="use-index-7" FilePath="Indexing/" Creator="Steven Jacobs">
+   </test-case>
+   <test-case name="use-index-7" FilePath="Indexing/Partition-1/" 
Creator="Steven Jacobs">
       <description>Get Collection From Lucene Index</description>
       <query name="useIndex7" date="2016-05-26"/>
       <output-file compare="Text">useIndex7.txt</output-file>
    </test-case>
-   <test-case name="update-index" FilePath="Indexing/" Creator="Menaka 
Jayawardena">
+   <test-case name="update-index" FilePath="Indexing/Partition-1/" 
Creator="Menaka Jayawardena">
       <description>Update the existing index</description>
       <query name="updateIndex" date="2016-06-24"/>
       <output-file compare="Text">updateIndex.txt</output-file>
    </test-case>
-   <test-case name="delete-index" FilePath="Indexing/" Creator="Menaka 
Jayawardena">
+   <test-case name="delete-index" FilePath="Indexing/Partition-1/" 
Creator="Menaka Jayawardena">
       <description>Delete the existing index</description>
       <query name="deleteIndex" date="2016-06-24"/>
       <output-file compare="Text">deleteIndex.txt</output-file>
    </test-case>
+   <test-case name="show-index-2" FilePath="Indexing/Partition-1/" 
Creator="Menaka Jayawardena">
+      <description>Show indexes after deletion.</description>
+      <query name="showIndex" date="2016-08-18"/>
+      <output-file compare="Text">showIndex2.txt</output-file>
+   </test-case>
+   <test-case name="create-index" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Create Lucene Index from Collection.</description>
+      <query name="createIndex" date="2016-05-26"/>
+      <output-file compare="Text">createIndex.txt</output-file>
+   </test-case>
+   <test-case name="show-index-1" FilePath="Indexing/Partition-2/" 
Creator="Menaka Jayawardena">
+      <description>Show indexes after creating index.</description>
+      <query name="showIndex" date="2016-08-18"/>
+      <output-file compare="Text">showIndex1.txt</output-file>
+   </test-case>
+   <test-case name="use-index-1" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex1" date="2016-05-26"/>
+      <output-file compare="Text">useIndex1.txt</output-file>
+   </test-case>
+   <test-case name="use-index-2" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex2" date="2016-05-26"/>
+      <output-file compare="Text">useIndex2.txt</output-file>
+   </test-case>
+   <test-case name="use-index-3" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex3" date="2016-05-26"/>
+      <output-file compare="Text">useIndex3.txt</output-file>
+   </test-case>
+   <test-case name="use-index-4" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex4" date="2016-05-26"/>
+      <output-file compare="Text">useIndex4.txt</output-file>
+   </test-case>
+   <test-case name="use-index-5" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex5" date="2016-05-26"/>
+      <output-file compare="Text">useIndex5.txt</output-file>
+   </test-case>
+   <test-case name="use-index-6" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex6" date="2016-05-26"/>
+      <output-file compare="Text">useIndex6.txt</output-file>
+   </test-case>
+   <test-case name="use-index-7" FilePath="Indexing/Partition-2/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex7" date="2016-05-26"/>
+      <output-file compare="Text">useIndex7.txt</output-file>
+   </test-case>
+   <test-case name="update-index" FilePath="Indexing/Partition-2/" 
Creator="Menaka Jayawardena">
+      <description>Update the existing index</description>
+      <query name="updateIndex" date="2016-06-24"/>
+      <output-file compare="Text">updateIndex.txt</output-file>
+   </test-case>
+   <test-case name="create-index" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Create Lucene Index from Collection.</description>
+      <query name="createIndex" date="2016-05-26"/>
+      <output-file compare="Text">createIndex.txt</output-file>
+   </test-case>
+   <test-case name="show-index-1" FilePath="Indexing/Partition-4/" 
Creator="Menaka Jayawardena">
+      <description>Show indexes after creating index.</description>
+      <query name="showIndex" date="2016-08-18"/>
+      <output-file compare="Text">showIndex1.txt</output-file>
+   </test-case>
+   <test-case name="use-index-1" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex1" date="2016-05-26"/>
+      <output-file compare="Text">useIndex1.txt</output-file>
+   </test-case>
+   <test-case name="use-index-2" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex2" date="2016-05-26"/>
+      <output-file compare="Text">useIndex2.txt</output-file>
+   </test-case>
+   <test-case name="use-index-3" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex3" date="2016-05-26"/>
+      <output-file compare="Text">useIndex3.txt</output-file>
+   </test-case>
+   <test-case name="use-index-4" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex4" date="2016-05-26"/>
+      <output-file compare="Text">useIndex4.txt</output-file>
+   </test-case>
+   <test-case name="use-index-5" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex5" date="2016-05-26"/>
+      <output-file compare="Text">useIndex5.txt</output-file>
+   </test-case>
+   <test-case name="use-index-6" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex6" date="2016-05-26"/>
+      <output-file compare="Text">useIndex6.txt</output-file>
+   </test-case>
+   <test-case name="use-index-7" FilePath="Indexing/Partition-4/" 
Creator="Steven Jacobs">
+      <description>Get Collection From Lucene Index</description>
+      <query name="useIndex7" date="2016-05-26"/>
+      <output-file compare="Text">useIndex7.txt</output-file>
+   </test-case>
+   <test-case name="update-index" FilePath="Indexing/Partition-4/" 
Creator="Menaka Jayawardena">
+      <description>Update the existing index</description>
+      <query name="updateIndex" date="2016-06-24"/>
+      <output-file compare="Text">updateIndex.txt</output-file>
+   </test-case>
 </test-group>

Reply via email to