Re: search across models

2013-02-03 Thread Ashwin Kumar
thank you dennis, what you suggested is a difficult process where we need to look into performance its the query gets more complex and database gets bigger which is obvious. but its a good idea. i will try that for a while. With Best -Ashwin. +91-9959166266 On Sun, Feb 3, 2013 at 11:54 PM, Den

Re: search across models

2013-02-02 Thread Ashwin Kumar
thank you joey, but i want to build search for queries like 1. restaurants in city1 2. city1 restaurants 3. Chinese restaurants 4. Chinese restaurants in city1 5. vegetarian restaurants in city1 6. vegetarian american restaurants the above are exact search queries we get from

search across models

2013-02-02 Thread Aswani Kumar
hi all, i have a big question. how can i perform search queries like on following models RESTAURANT_TYPES = ( ('C', 'Chinese'), ('A', 'American'), ('J', 'Japanese'), ) class city (models.Model): name = models.CharField(max_length=200) class restaurants(models.Model): nam