Re: Execute an independent query from the main query

2012-11-19 Thread Indika Tantrigoda
Hi Otis, Yes, that seems like one solution, however I have multiple opening and closing hours, within the same day. Therefore it might become somewhat complicated to manage the index. For now I shifted the business logic to the client and a second query is made to get the additional data. Thanks

Re: Execute an independent query from the main query

2012-11-18 Thread Erick Erickson
Depending on your use-case, you might be able to use the join functionality. Be aware that this doesn't return the values of the from field, so it may not be suitable. _why_ do you want to do this? I'm wondering if this is an _XY_ problem. Best, Erick On Sun, Nov 18, 2012 at 9:14 AM, Indika

Re: Execute an independent query from the main query

2012-11-18 Thread Luis Cappa Banda
Hello! When queries become more and more complex and you need to apply one second query with the resultant docs from the first one, or re-sort results, or maybe add some promotional or special docs to the response, I recommend to develop a Web App module that implements that complex business