I’m just beginning to learn Couchbase, so if my question seems like I’m fundamentally misunderstanding something, please correct me!
I have a set of documents containing lines of text. Each line is four or five words long.
I want to create a view where the ID of each result is a hash of a line and who’s data contains the text of the line, as well as the hash of the line before and after. Something like this:
I have a few questions about this:
- Second, Lets say the same line of text occurs multiple times. Can I have multiple results in a view with the same ID? Is that antipattern?
Thanks very much!