Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 30th, 2003, 11:20 AM
diogoacs diogoacs is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brazil
Posts: 10 diogoacs User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to diogoacs
FULLTEXT not working

hey guys!

I'm trying to make a "fulltext" search type, but it isn't working

the query (i echo it off) is:
php Code:
Original - php Code
  1.  
  2. $somequery = sprintf("SELECT * FROM table WHERE MATCH(Field1,Field2) Against('%s') ORDER BY Field3",$search);


When i execute this query it return a empty set, but it's wrong...

And YES!!! it has a "FULLTEXT search (Field1,Field2)" on the "SHOW CREATE TABLE table"...

What's wrong?!

Thanx!

Reply With Quote
  #2  
Old September 30th, 2003, 02:05 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,326 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 15677 Folding Title: Novice Folder
Time spent in forums: 6 Days 9 h 32 m 40 sec
Reputation Power: 4
RE: FULLTEXT not working

Notice that if your FULLTEXT search returns more than half of the rows in your table, it returns zero rows.

Reply With Quote
  #3  
Old October 1st, 2003, 03:39 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: FULLTEXT not working

or in other words, if you are searching for the words "the" and "blue", and if text in your table is in english, than almoust all of the rows will have the word "the", so that word will be ignored (just as you searched for only "blue").

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > FULLTEXT not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway