That's a good idea. But we'd also like to be able to search by result value as well as context string. A good solution may be something like this:
["w", "<context>", "<schema>"]
["v", "<result>"]
Where "context" MAY be any arbitrary string, but the nip may also specify some useful "conventions". And every "w" tag SHOULD be followed by a "v" tag, which MAY contain any arbitrary (JSON safe) string. This allows BOTH context and result to be indexed.
["w", "<context>", "<schema>"]
["v", "<result>"]
Where "context" MAY be any arbitrary string, but the nip may also specify some useful "conventions". And every "w" tag SHOULD be followed by a "v" tag, which MAY contain any arbitrary (JSON safe) string. This allows BOTH context and result to be indexed.