Empty Search Log

admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Empty Search Log

Post by admin »

so if you do not LOG thoses queries - it'll solve your problem, right?
you won't have to delete queries in admin, right?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Empty Search Log

Post by tubeman »

Yes, thats why I said I rather manually add queries which make some sense in admin area that should show on site instead of users queries showing on site.
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Empty Search Log

Post by admin »

then $_GET['skip_search_log'] = true; should help)
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Empty Search Log

Post by tubeman »

Hi, Thanks. Would it be possible for you to add feature to approve or disapprove search queries in admin area?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Empty Search Log

Post by admin »

It's it the same as going though deletion?
I mean time consuming
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Empty Search Log

Post by tubeman »

Thanks, got it. In Sphinx I am trying to use arabic language, I added charset_table with the correct values from the documentation in the index and then stop/start sphinx. I added utf 8 also in meta header. But when on site trying to output the arabic text on search template in title and on page it shows blank. English text shows fine. Any idea what could be wrong?
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Empty Search Log

Post by admin »

did you check page encoding in browser?
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Empty Search Log

Post by tubeman »

Yes, Text encoding is UTF-8
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Empty Search Log

Post by admin »

it's hard to guess, send me a link where I can see the issue
Don't forget to run script update
tubeman
Posts: 534
Joined: Sat Mar 02, 2013 11:33 am

Re: Empty Search Log

Post by tubeman »

Hi,
I found what the issue is. Its the nginx rewrite for the search that is not accepting utf-8 characters for the language.

For example:

https://domainname.com/search/queryinarabic/
Does not output the search query in title and on page

But if I do a search without rewrite
https://domainname.com/?search=queryinarabic
Gives proper output of search query in title and on page

My rewrite in nginx is:
rewrite "^/search/(.*)$" "/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&search=$1&$args";

I even tried this:
rewrite "(*UTF8)^/search/(.*)$" "/out.php?url=content&p=100&dont_count_in_trade=true&skip_sell=true&search=$1&$args";

The problem is not with Sphinx or text enconding as I can output the words using search_log on templates. For English the rewrite works fine but any other language gives blank results for text. Any idea whats wrong with the rewrite?
Post Reply