Message from JavaScript discussions

March 2018

— Ye, show it, im interested


Hey guys I've a quick question: I'm building an app where businesses can connect. But I'm still confuse in how I will structure my model. Because I want to be able to filter each businesses by it respective location and category. Any thoughts guys on how I can accomplish this?

— It depends on your toolset...

— Basic tag system would work well imo, with suggestions

— For the category I mean

— I have also seen tiered multiple selection forms for businesses, you drill down from broad to narrow terms... but it can be annoying if the business doesn't quite fit into any the terms very well

Message permanent page

— Sounds like a job for a graph

— Yes you will need a data structure for fast tag searching

— I would use a ready-made service like elasticsearch

— It does multi-term exact queries

— Https://

— If you have a term query for { "term" : { "tags" : "search" } } , it will match both of the following documents:

{ "tags" : ["search"] }
{ "tags" : ["search", "open_source"] }

Message permanent page