Wouldn't all of your AJAX requests be logged in your web server access
logs, assuming that you are using GET requests for your searches?  You can
parse those for analysis.

You could also probably configure Whoosh or whatever calls the search
function to write a record in the database with the query, and probably the
results, although probably not advisable on heavily trafficked sites or if
large result sets are common.

-James
On Nov 7, 2014 9:05 AM, "Radek Svarz" <radek.sv...@gmail.com> wrote:

> Hi,
>
> what is the best practice to setup the logging of search autocomplete
> logging for future analysis?
>
> When using Whoosh as a search engine and django.
>
> The search is searching within hundred thousands of product names.
>
> We want to get the insight on typos and typical name abbreviations.
>
> The autocomplete searches are performed using AJAX requests to /search/
> URL.
>
> Thanks.
>
> --
> 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+unsubscr...@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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b9943bb0-fc6c-4bff-86cc-45f1dd28c1df%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b9943bb0-fc6c-4bff-86cc-45f1dd28c1df%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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+unsubscr...@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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciVz9VrXfHhPV4S8%3DXUOAm1SVa%3Dfj92JV9CTBNb%3DLCcjGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to