Which apps/solutions are most appropriate for model based search in Django?
This is on stackoverflow.com also, but I guess not all Django users visit that site so I am posting this here also: - I have a Django app where most of the search is driven by foreign keys. For example, assuming Student, School, State, and EducationalQualification are Django models, the user would search for Students by specifying search criteria by selecting from lists of Schools, States, Degrees, Diplomas etc. That is, a search on students is essentially an answer to the question "Show students that belong to the following schools, and who belong to the following states, and who have the following degrees / diplomas". My Django app is purely database driven - there are no documents or webpages to search. In this case where searching for Django models are guided mostly by the foreign keys that model has, what search apps/solutions are most appropriate? The ones I have taken a look at all talk a lot about full text search, I may be wrong but I don't think that is appropriate in my case. I am currently searching using Peter Herndon's approach (http:// www.slideshare.net/tpherndon/django-search-presentation). But this is expected to be a high-traffic site and I am worried about speed and performance. Regards, CM. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Which apps/solutions are most appropriate for model based search in Django?
On 22 oct, 07:54, chefsmart wrote: > This is on stackoverflow.com also, but I guess not all Django users > visit that site so I am posting this here also: - > > I have a Django app where most of the search is driven by foreign > keys. For example, assuming Student, School, State, and > EducationalQualification are Django models, the user would search for > Students by specifying search criteria by selecting from lists of > Schools, States, Degrees, Diplomas etc. That is, a search on students > is essentially an answer to the question "Show students that belong to > the following schools, and who belong to the following states, and who > have the following degrees / diplomas". > > My Django app is purely database driven - there are no documents or > webpages to search. > > In this case where searching for Django models are guided mostly by > the foreign keys that model has, what search apps/solutions are most > appropriate? The ones I have taken a look at all talk a lot about full > text search, I may be wrong but I don't think that is appropriate in > my case. Given your specs, I don't see the point of fulltext search here. Unless of course you want to add a more generic search feature (like typing any random name or word and finding out which students have any association with this name or word, directly or via related models). > I am currently searching using Peter Herndon's approach > (http://www.slideshare.net/tpherndon/django-search-presentation). Seems ok to me. > But this is > expected to be a high-traffic site and I am worried about speed and > performance. Did you actually benched your current solution with representative data and load ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Which apps/solutions are most appropriate for model based search in Django?
Yes, I am also not convinced that an engine focused on full-text search is relevant in this case. But i am no expert on that. I haven't actually benchmarked the performance of the current solution I am using, I am just looking to get some opinions or solutions if django users have encountered this scenario before. I am so tied in to Django models and my searches also return Django querysets. If I do need to change tracks, I would be looking for some solution that returns Django models and querysets on search. I am going through a lot of projects on github and Google code, just reading through their docs and source. On Oct 22, 3:17 pm, bruno desthuilliers wrote: > On 22 oct, 07:54, chefsmart wrote: > > > > > This is on stackoverflow.com also, but I guess not all Django users > > visit that site so I am posting this here also: - > > > I have a Django app where most of the search is driven by foreign > > keys. For example, assuming Student, School, State, and > > EducationalQualification are Django models, the user would search for > > Students by specifying search criteria by selecting from lists of > > Schools, States, Degrees, Diplomas etc. That is, a search on students > > is essentially an answer to the question "Show students that belong to > > the following schools, and who belong to the following states, and who > > have the following degrees / diplomas". > > > My Django app is purely database driven - there are no documents or > > webpages to search. > > > In this case where searching for Django models are guided mostly by > > the foreign keys that model has, what search apps/solutions are most > > appropriate? The ones I have taken a look at all talk a lot about full > > text search, I may be wrong but I don't think that is appropriate in > > my case. > > Given your specs, I don't see the point of fulltext search here. > Unless of course you want to add a more generic search feature (like > typing any random name or word and finding out which students have any > association with this name or word, directly or via related models). > > > I am currently searching using Peter Herndon's approach > > (http://www.slideshare.net/tpherndon/django-search-presentation). > > Seems ok to me. > > > But this is > > expected to be a high-traffic site and I am worried about speed and > > performance. > > Did you actually benched your current solution with representative > data and load ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Which apps/solutions are most appropriate for model based search in Django?
>>> That is, a search on students >>> is essentially an answer to the question "Show students that belong to >>> the following schools, and who belong to the following states, and who >>> have the following degrees / diplomas". N.B. That in particular does sound like what might sometimes be called "filtering" or "narrowing" rather than "searching". Of course, it's still kind of "searching" (or "finding" ... whatever...) I presently use some simple ad-hoc code to implement my desired filters in my application, but I've recently been looking closely at django-filter which might provide more structure to the implementation: http://github.com/alex/django-filter (The other thing I do is use the nice jquery datatables plugin which provides further last-minute intra-results text search on the client side - http://www.datatables.net/ ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---