Sotera / watchman

Watchman: An open-source social-media event-detection system
GNU General Public License v2.0
20 stars 7 forks source link

Item in list query #55

Closed drJAGartner closed 7 years ago

drJAGartner commented 7 years ago

Currently, there is no ability to perform a 'where' query in which one tries to find an item in a list. This specifically comes into place when attempting to find socialMediaPosts that have a specific hashtag term. I'm not sure how painful this would be to implement, but it would be a nice feature to have.

lukewendling commented 7 years ago

@drJAGartner i think ur trying to find a specific tag in the .hashtags array field in smposts yeah? if so, I thought u could with something like http://stackoverflow.com/questions/18148166/find-document-with-array-that-contains-a-specific-value

basically the same syntax as a regular scalar value

give that try. if it works and you're going to query that field regularly, we def need an index

drJAGartner commented 7 years ago

@lukewendling I'll check this out.

lukewendling commented 7 years ago

nudge @drJAGartner