2013/7/1 Harjot Mann <harjotmann1992@gmail.com>
Amirouche
On Sun, Jun 30, 2013 at 11:18 PM, Amirouche BoubekkiI have a search function which is already working in views.py but I
<amirouche.boubekki@gmail.com> wrote:
> You can do this by creating an extra field in the model with the name
> without vowels in it and doing a simple filter on it ? Is that what you need
> ?
want to refine it.
Is this search function a query like MyModel.objects.filter(usernamename=username, ...) or something more specific ?
How can I make a model without vowels??
the most performant solution would be to use re sub but str.replace will work too.
And what is django-haystack application?
Haystack is a full text search application, it build an index specific for full text search which means it's not suited for the search you are looking to do (also it takes a lot of memory).
Can I use it in my project for refining search or is it a normal searching application?
It depends... can you write a query in the form of MyModel.objects.filter(foo=bar, spam=egg) where you document each fields so that we can know better what your are trying to achieve ? Real data is not significant, but full scope of the problem you are trying to solve is.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment