Permalink
Browse files

removed parse path. deprecated

  • Loading branch information...
1 parent c25289e commit d477c4ec7020e8260c81dbf0c3ac0539b387624d @dscape dscape committed Jun 21, 2011
Showing with 1 addition and 71 deletions.
  1. +1 −0 test/js/parser-tests.js
  2. +0 −71 test/parse-path.xqy
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,71 +0,0 @@
-import module namespace jsonpath="http://marklogic.com/json-path" at "../lib/json-path.xqy";
-
-let $json := "{ key: ""book"", comparison: ""="", or: [{key: ""id"", value: ""0596000405""}, {key: ""other_id"", value: ""0596000405""}], and: [], innerKey: {}, position: ""1 to last()"" }"
-let $json := "{ key: ""book"", value: {key:""id"", value:""0596000405""}, comparison: ""="", or: [{key: ""id"", value: ""0596000405""}, {key: ""other_id"", value: ""0596000405""}], and: [], innerKey: {}, position: ""1 to last()"" }"
-let $json := "{ key: ""book"", value: {key:""id""}, comparison: ""="", or: [{key: ""id"", value: ""0596000405""}, {key: ""other_id"", value: ""0596000405""}], and: [], innerKey: {}, position: ""1 to last()"" }"
-let $json := "{ key: ""id"", value: [""0596000405"", ""123456789""], comparison: ""="", or: [{key: ""id"", value: ""0596000405""}, {key: ""other_id"", value: ""0596000405""}], and: [], innerKey: {}, position: ""1 to last()"" }"
-
-let $json := "{ key: ""book"", value:{innerKey:""id"", value: [""0596000405"", ""123456789""]}, comparison: ""="", or: [{key: ""id"", value: ""0596000405""}, {key: ""other_id"", value: ""0596000405""}], and: [{key: ""id"", value: ""0596000405""}, {key: ""other_id"", value: ""0596000405""}], position: ""1 to last()"" }"
-
-let $json := "{ key: ""book"", value:{innerKey:""id"", value: [""0596000405"", ""123456789""]}, or: [{key: ""id"", value: ""0596000405""}, {key: ""other_id"", value: ""0596000405""}], position: ""1 to 10"" }"
-
-let $json := "{ fulltext: {
- or: [
- { equals: {
- key: ""greeting"",
- string: ""Hello World"",
- weight: 2.0,
- caseSensitive: false,
- diacriticSensitive: true,
- punctuationSensitve: false,
- whitespaceSensitive: false,
- stemmed: true,
- wildcarded: true,
- minimumOccurances: 1,
- maximumOccurances: null
- }},
- {not: { contains: {
- key: ""para"",
- string: ""Hello World"",
- weight: 1.0
- }}},
- {andNot: {
- positive: { contains:{ key: ""para"", string: ""and""}},
- negative: { contains:{ key: ""para"", string: ""gahagafaga""}}
- }},
- {property: { contains: {
- key: ""para"",
- string: ""Hello World""
- }}},
- { rangeignore: {
- key: ""para"",
- value: ""Hello World"",
- weight: 1.0,
- operator: ""=""
- }},
- { geo: {
- parent: ""location"",
- latKey: ""latitude"",
- longKey: ""longitude"",
- key: ""latlong"",
- region: [
- {point: {longitude: 12, latitude: 53}},
- {circle: {longitude: 12, latitude: 53, radius: 10}},
- {box: {north: 3, east: 4, south: -5, west: -6}},
- {polygon:[
- {longitude:12, latitude:53},
- {longitude:15, latitude:57},
- {longitude:12, latitude:53}
- ]}
- ]
- }},
- { collection: ""foo"" }
- ],
- filtered: false(),
- score: ""logtfidf""
- },
- position: ""1 to 10"",
- debug: true
-}"
-
-return jsonpath:parse($json)

0 comments on commit d477c4e

Please sign in to comment.