0

Minimongo doesn't provide $geoNear functionality, so if this is a search requirement then it has to be done on the server.

This leads to a problem when the local collection contains results from multiple publications, since there's no way to extract the results from the $geoNear search by supplying the same search criterea to the local collection as were used when publishing.

Using separate local collections for each search might help in some cases, but in my case the problem doesn't actually come from multiple publications for different purposes, but actually from using the subscriptions manager to cache recent subscriptions and avoid sending repeated data down the line.

Can anyone suggest a cunning solution to this issue?

tarmes
  • 15,366
  • 10
  • 53
  • 87
  • Look at this topic https://groups.google.com/forum/#!topic/meteor-talk/P6k9tPeyuGg – none Dec 02 '14 at 09:34
  • That explains how to do a search (although personally a standard search works for me). However, the issue is how to extract that result from the local collection, given that the local collection may also contain results from other publications/cached subscriptions. – tarmes Dec 02 '14 at 10:04

0 Answers0