- dialect: mongo examples: - q: '' cond: {} fullCond: cond: {} noParse: [] fields: [] filteredResults: - {s: b, date: '2019-09-01'} - {s: bx, date: '2019-09-01'} - {s: [a, b], date: '2018-09-01'} - {tag: 汉字, date: '2017-09-01'} - {s: [b, c], tag: [分类词汇, sth]} - {} - {c: 5} - {c: 3} - {c: 1} - q: ' ' cond: {} fullCond: cond: {} noParse: [] fields: [] filteredResults: - {s: b, date: '2019-09-01'} - {s: bx, date: '2019-09-01'} - {s: [a, b], date: '2018-09-01'} - {tag: 汉字, date: '2017-09-01'} - {s: [b, c], tag: [分类词汇, sth]} - {} - {c: 5} - {c: 3} - {c: 1} - q: a cond: $or: [{a: a}, {b: a}, {s: {$regex: a}}, {tag: {$regex: a}}] fullCond: cond: {$or: [{a: a}, {b: a}, {s: {$regex: a}}, {tag: {$regex: a}}]} noParse: [] fields: [a, b, s, tag] filteredResults: - {s: [a, b], date: '2018-09-01'} - q: 's:b' cond: s: {$regex: b} fullCond: cond: {s: {$regex: b}} noParse: [] fields: [s] filteredResults: - {s: b, date: '2019-09-01'} - {s: bx, date: '2019-09-01'} - {s: [a, b], date: '2018-09-01'} - {s: [b, c], tag: [分类词汇, sth]} - q: 's:b c' cond: $and: [{s: {$regex: b}}, {$or: [{a: c}, {b: c}, {s: {$regex: c}}, {tag: {$regex: c}}]}] fullCond: cond: {$and: [{s: {$regex: b}}, {$or: [{a: c}, {b: c}, {s: {$regex: c}}, {tag: {$regex: c}}]}]} noParse: [] fields: [s, a, b, tag] filteredResults: - {s: [b, c], tag: [分类词汇, sth]} - q: ' s:b c>d' cond: $and: [{s: {$regex: b}}, {c: {$gt: d}}] fullCond: cond: {$and: [{s: {$regex: b}}, {c: {$gt: d}}]} noParse: [] fields: [s, c] filteredResults: [] - q: 's:b. OR c>=3 ' cond: $or: [{s: {$regex: b\.}}, {c: {$gte: 3}}] fullCond: cond: {$or: [{s: {$regex: b\.}}, {c: {$gte: 3}}]} noParse: [] fields: [s, c] filteredResults: - {c: 5} - {c: 3} - q: 's:b. OR c>="3"' cond: $or: [{s: {$regex: b\.}}, {c: {$gte: '3'}}] fullCond: cond: {$or: [{s: {$regex: b\.}}, {c: {$gte: '3'}}]} noParse: [] fields: [s, c] filteredResults: [] - q: 's:b. OR c>="3' cond: $or: [{s: {$regex: b\.}}, {c: {$gte: '"3'}}] fullCond: cond: {$or: [{s: {$regex: b\.}}, {c: {$gte: '"3'}}]} noParse: [] fields: [s, c] filteredResults: [] - q: s=b cond: s: b fullCond: cond: {s: b} noParse: [] fields: [s] filteredResults: - {s: b, date: '2019-09-01'} - {s: [a, b], date: '2018-09-01'} - {s: [b, c], tag: [分类词汇, sth]} - q: 's:NULL' cond: $or: [{s: null}, {s: ''}, {s: {$exists: false}}] fullCond: cond: {$or: [{s: null}, {s: ''}, {s: {$exists: false}}]} noParse: [] fields: [s] filteredResults: - {tag: 汉字, date: '2017-09-01'} - {} - {c: 5} - {c: 3} - {c: 1} - q: 'tag:NULL' cond: $or: [{tag: null}, {tag: ''}, {tag: {$exists: false}}] fullCond: cond: {$or: [{tag: null}, {tag: ''}, {tag: {$exists: false}}]} noParse: [] fields: [tag] filteredResults: - {s: b, date: '2019-09-01'} - {s: bx, date: '2019-09-01'} - {s: [a, b], date: '2018-09-01'} - {} - {c: 5} - {c: 3} - {c: 1} - q: '-tag:NULL' cond: $not: {$or: [{tag: null}, {tag: ''}, {tag: {$exists: false}}]} fullCond: cond: {$not: {$or: [{tag: null}, {tag: ''}, {tag: {$exists: false}}]}} noParse: [] fields: [tag] filteredResults: - {tag: 汉字, date: '2017-09-01'} - {s: [b, c], tag: [分类词汇, sth]} - q: 'date:2018-02-18' cond: date: 2018-02-17T17:00:00.000Z fullCond: cond: {date: 2018-02-17T17:00:00.000Z} noParse: [] fields: [date] filteredResults: [] - q: date<2018-02-18 cond: date: {$lt: 2018-02-17T17:00:00.000Z} fullCond: cond: {date: {$lt: 2018-02-17T17:00:00.000Z}} noParse: [] fields: [date] filteredResults: - {tag: 汉字, date: '2017-09-01'} - q: date>2018-02-18 cond: date: {$gt: 2018-02-17T17:00:00.000Z} fullCond: cond: {date: {$gt: 2018-02-17T17:00:00.000Z}} noParse: [] fields: [date] filteredResults: - {s: b, date: '2019-09-01'} - {s: bx, date: '2019-09-01'} - {s: [a, b], date: '2018-09-01'} - q: date<+3h cond: date: {$lt: 2019-09-19T16:15:31.012Z} fullCond: cond: {date: {$lt: 2019-09-19T16:15:31.013Z}} noParse: [] fields: [date] filteredResults: - {s: b, date: '2019-09-01'} - {s: bx, date: '2019-09-01'} - {s: [a, b], date: '2018-09-01'} - {tag: 汉字, date: '2017-09-01'} - q: dated' cond: $and: [{s: {$substr: b}}, {c: {$gt: d}}] fullCond: cond: {$and: [{s: {$substr: b}}, {c: {$gt: d}}]} noParse: [] fields: [s, c] filteredResults: [] - q: 's:b. OR c>=3 ' cond: $or: [{s: {$substr: b.}}, {c: {$gte: 3}}] fullCond: cond: {$or: [{s: {$substr: b.}}, {c: {$gte: 3}}]} noParse: [] fields: [s, c] filteredResults: - {c: 5} - {c: 3} - q: 's:b. OR c>="3"' cond: $or: [{s: {$substr: b.}}, {c: {$gte: '3'}}] fullCond: cond: {$or: [{s: {$substr: b.}}, {c: {$gte: '3'}}]} noParse: [] fields: [s, c] filteredResults: [] - q: 's:b. OR c>="3' cond: $or: [{s: {$substr: b.}}, {c: {$gte: '"3'}}] fullCond: cond: {$or: [{s: {$substr: b.}}, {c: {$gte: '"3'}}]} noParse: [] fields: [s, c] filteredResults: [] - q: s=b cond: s: b fullCond: cond: {s: b} noParse: [] fields: [s] filteredResults: - {s: [a, b], date: '2018-09-01'} - {s: [b, c], tag: [分类词汇, sth]} - {s: b, date: '2019-09-01'} - q: 's:NULL' cond: s: {$exists: false} fullCond: cond: {s: {$exists: false}} noParse: [] fields: [s] filteredResults: - {tag: 汉字, date: '2017-09-01'} - {} - {c: 5} - {c: 3} - {c: 1} - q: 'tag:NULL' cond: tag: {$exists: false} fullCond: cond: {tag: {$exists: false}} noParse: [] fields: [tag] filteredResults: - {s: [a, b], date: '2018-09-01'} - {s: bx, date: '2019-09-01'} - {s: b, date: '2019-09-01'} - {} - {c: 5} - {c: 3} - {c: 1} - q: '-tag:NULL' cond: $not: {tag: {$exists: false}} fullCond: cond: {$not: {tag: {$exists: false}}} noParse: [] fields: [tag] filteredResults: - {s: [b, c], tag: [分类词汇, sth]} - {tag: 汉字, date: '2017-09-01'} - q: 'date:2018-02-18' cond: date: 2018-02-17T17:00:00.000Z fullCond: cond: {date: 2018-02-17T17:00:00.000Z} noParse: [] fields: [date] filteredResults: [] - q: date<2018-02-18 cond: date: {$lt: 2018-02-17T17:00:00.000Z} fullCond: cond: {date: {$lt: 2018-02-17T17:00:00.000Z}} noParse: [] fields: [date] filteredResults: - {tag: 汉字, date: '2017-09-01'} - q: date>2018-02-18 cond: date: {$gt: 2018-02-17T17:00:00.000Z} fullCond: cond: {date: {$gt: 2018-02-17T17:00:00.000Z}} noParse: [] fields: [date] filteredResults: - {s: [a, b], date: '2018-09-01'} - {s: bx, date: '2019-09-01'} - {s: b, date: '2019-09-01'} - q: date<+3h cond: date: {$lt: 2019-09-19T16:15:31.032Z} fullCond: cond: {date: {$lt: 2019-09-19T16:15:31.032Z}} noParse: [] fields: [date] filteredResults: - {s: [a, b], date: '2018-09-01'} - {s: bx, date: '2019-09-01'} - {s: b, date: '2019-09-01'} - {tag: 汉字, date: '2017-09-01'} - q: date