Project

General

Profile

« Previous | Next » 

Revision 3273

Added by Jing Tao over 17 years ago

Test query with attribute return field to measure metacat peformance.

View differences:

test/performance_measure_query_with_attribute
1

  
2
<?xml version="1.0"?>
3
 <pathquery version="1.2">
4
  <querytitle>Web-Search</querytitle>
5
  <returndoctype>eml://ecoinformatics.org/eml-2.0.1</returndoctype><returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype>   <returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN</returndoctype>
6
<returndoctype>-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN</returndoctype><returndoctype>-//NCEAS//resource//EN</returndoctype><returndoctype>-//NCEAS//eml-dataset//EN</returndoctype>
7
<returnfield>originator/individualName/surName</returnfield>
8
<returnfield>originator/individualName/givenName</returnfield>
9
<returnfield>creator/individualName/surName</returnfield>
10
<returnfield>creator/individualName/givenName</returnfield>
11
<returnfield>originator/organizationName</returnfield>
12
<returnfield>creator/organizationName</returnfield>
13
<returnfield>dataset/title</returnfield>
14
<returnfield>keyword</returnfield>
15
<returnfield>@packageId</returnfield>
16
 <querygroup operator="UNION">
17
        <queryterm searchmode="contains" casesensitive="false">
18
             <value>land</value>
19
             <pathexpr>surName</pathexpr>
20
        </queryterm>
21
        <queryterm searchmode="contains" casesensitive="false">
22
              <value>land</value>
23
              <pathexpr>givenName</pathexpr>
24
         </queryterm>
25
          <queryterm searchmode="contains" casesensitive="false">
26
                <value>land</value>
27
                <pathexpr>keyword</pathexpr>
28
          </queryterm>
29
           <queryterm searchmode="contains" casesensitive="false">
30
                 <value>land</value>
31
           <pathexpr>para</pathexpr></queryterm>
32
           <queryterm searchmode="contains" casesensitive="false">
33
                <value>land</value>
34
                 <pathexpr>geographicDescription</pathexpr>
35
            </queryterm>
36
            <queryterm searchmode="contains" casesensitive="false">
37
                  <value>land</value>
38
                  <pathexpr>literalLayout</pathexpr>
39
             </queryterm>
40
             <queryterm searchmode="contains" casesensitive="false">
41
                     <value>land</value>
42
                     <pathexpr>title</pathexpr>
43
            </queryterm>
44
            <queryterm searchmode="contains" casesensitive="false">
45
                  <value>land</value>
46
                  <pathexpr>@packageId</pathexpr>
47
            </queryterm>
48
            <queryterm searchmode="contains" casesensitive="false">
49
                <value>land</value>
50
                <pathexpr>abstract/para</pathexpr>
51
            </queryterm>
52
    </querygroup>
53
</pathquery>
0 54

  

Also available in: Unified diff