How to find documents having a query-value within the range of two key-values
问题 I'm analyzing texts. Those texts have annotations (e.g. "chapter", "scenery", ...). Those annotations are in my MongoDB collection annotations , e.g. { start: 1, stop: 10000, type: chapter, details: { number: 1, title: "Where it all began" } }, { start: 10001, stop: 20000, type: chapter, details: { number: 2, title: "Lovers" } }, { start: 1, stop: 5000, type: scenery, details: { descr: "castle" } }, { start: 5001, stop: 15000, type: scenery, details: { descr: "forest" } } Challenge 1 : For a