Changes between Version 2 and Version 3 of MDService Example Queries
- Timestamp:
- 08/12/10 07:54:35 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MDService Example Queries
v2 v3 11 11 12 12 13 == Simple Search Clauses == 14 15 Index ANY term:: 16 {{{ 17 Title any the 18 }}} 19 Phrase :: 20 {{{ 21 Country = "United States" /* not working yet */ 22 Description = "Free play in a family context" 23 "data collection" 24 }}} 25 comparitors :: 26 does not work yet 27 {{{ 28 Date < 2005 /* especially tricky as the Date-format YYYY-MM-DD (or even other) */ 29 }}} 30 13 31 == Boolean == 32 33 AND:: 14 34 {{{ 35 biling_data: ( ( Date any 2005 ) ) and ( ( Description any participant ) ) 36 //Session[contains(Date,'2005')][contains(.//Description,'participant')] 37 38 //CMD[contains(.//Title,'year')][.//Date='2001-11-21'] 39 15 40 biling_data: ( ( Date any 2005 ) ) and ( ( Description any part ) ) and ( ( Country any United ) ) 16 41 }}} 42 43 AND OR:: 17 44 {{{ 18 biling_data: ( ( Date any 2005 ) or ( Date any 2001 ) ) and ( ( Description any part ) ) 45 biling_data: ( ( Date any 2005 ) or ( Country any United ) ) and ( ( Description any part ) ) 46 //CMD/Components[.//Date[contains(.,'2005')] or .//Country[contains(.,'United')]][.//Description[contains(.,'part')]] 19 47 }}} 48 49 AND NOT :: 50 seems very expensive, not sure about the syntax 51 {{{ 52 biling_data: ( ( Date any 2005 ) not ( Country = Japan) ) 53 54 //CMD[.//imdi-corpus][not(.//ResourceType[.='Metadata'])] 55 }}}