Logo
FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
Search Error

 
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> FAC Site Discussion
View previous topic :: View next topic  
Author Message
Morj
Very bored


Joined: 29 Jul 2008
Posts: 211

PostPosted: Sat Aug 30, 2008 10:18 pm    Post subject: Search Error Reply with quote

Hm, so I think the search function does not like non-letter or number characters. A search for "Blood+" gets me the following error:

[quote]Warning: pg_query() [function.pg-query]: Query failed: ERROR: no operand in tsearch query: "blood&" in /usr/home/sites/www.fanart-central.net/www/search.php on line 307

Database Error: ERROR: no operand in tsearch query: "blood&"

#0 dbError() called at [/usr/home/sites/www.fanart-central.net/www/search.php:307]
[/quote]

>.< I broked it.
_________________
[i]Hint: everything moves.[/i]
[i]Believe me, If I started murdering people, there'd be none of you left...[/i] ~Charles Manson
[i][url=http://www.youtube.com/watch?v=G6D1YI-41ao]Моё судно на воздушной подушке полно угрей[/url][/i]
[i]"fish" could be spelled "ghoti" - that's "gh" as in "tough" "o" as in "women" and "ti" as in "nation"[/i]
Back to top
View user's profile Send private message
cstdenis
Evil Overlord


Joined: 31 Dec 1969
Posts: 6490
Location: In the tubes.

PostPosted: Sun Aug 31, 2008 12:39 am    Post subject: Reply with quote

The + symbol has special meaning in the search system. You can't search for it.

Same with &, |, and -
_________________
You will obey or molten silver will be poured into your ears.
Back to top
View user's profile Send private message Visit poster's website
Stratadrake
Elder Than Dirt


Joined: 05 May 2004
Posts: 13721
Location: Moo

PostPosted: Sun Aug 31, 2008 4:10 am    Post subject: Reply with quote

Is it possible to escape those characters?
_________________
Strata here: [url=http://www.nanowrimo.org/eng/user/242293]Nanowrimo[/url] - [url=www.fanart-central.net/user-Stratadrake.php]FAC[/url] - [url=http://stratadrake.deviantart.com]dA[/url] - [url=www.furaffinity.net/user/Stratadrake/]FA[/url]
[size=9]Disclaimer: Posts may contain URLs. Click [url=http://tvtropes.org/pmwiki/pmwiki.php/Main/TVTropesWillRuinYourLife]at your own risk.[/url][/size]
Back to top
View user's profile Send private message
Sora121
Developer


Joined: 02 Oct 2006
Posts: 2591
Location: I'm here some place

PostPosted: Sun Aug 31, 2008 9:31 am    Post subject: Reply with quote

With the symbols use, we could do checking for a word or letter after the +/_ symbol. If there is nothing after the symbol then we should just escape it and allow it as part of the query.
Back to top
View user's profile Send private message MSN Messenger
Stratadrake
Elder Than Dirt


Joined: 05 May 2004
Posts: 13721
Location: Moo

PostPosted: Sun Aug 31, 2008 4:55 pm    Post subject: Reply with quote

But the search module doesn't work that way (strips special characters by default).

The only way to search for special characters would be with exact-phrase searching, which is not implemented yet.
_________________
Strata here: [url=http://www.nanowrimo.org/eng/user/242293]Nanowrimo[/url] - [url=www.fanart-central.net/user-Stratadrake.php]FAC[/url] - [url=http://stratadrake.deviantart.com]dA[/url] - [url=www.furaffinity.net/user/Stratadrake/]FA[/url]
[size=9]Disclaimer: Posts may contain URLs. Click [url=http://tvtropes.org/pmwiki/pmwiki.php/Main/TVTropesWillRuinYourLife]at your own risk.[/url][/size]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.fanart-central.net Forum Index -> FAC Site Discussion All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum