Page 2 of 3
Re: Empty Search Log
Posted: Wed Jul 07, 2021 9:20 am
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?
Re: Empty Search Log
Posted: Wed Jul 07, 2021 9:41 am
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.
Re: Empty Search Log
Posted: Wed Jul 07, 2021 9:54 am
by admin
then $_GET['skip_search_log'] = true; should help)
Re: Empty Search Log
Posted: Thu Jul 08, 2021 10:11 am
by tubeman
Hi, Thanks. Would it be possible for you to add feature to approve or disapprove search queries in admin area?
Re: Empty Search Log
Posted: Thu Jul 08, 2021 11:03 am
by admin
It's it the same as going though deletion?
I mean time consuming
Re: Empty Search Log
Posted: Fri Jul 16, 2021 9:58 pm
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?
Re: Empty Search Log
Posted: Sat Jul 17, 2021 8:07 am
by admin
did you check page encoding in browser?
Re: Empty Search Log
Posted: Sat Jul 17, 2021 9:41 am
by tubeman
Yes, Text encoding is UTF-8
Re: Empty Search Log
Posted: Sat Jul 17, 2021 5:15 pm
by admin
it's hard to guess, send me a link where I can see the issue
Re: Empty Search Log
Posted: Sat Jul 24, 2021 9:53 am
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?