Notifications
Clear all

Full Text Search not working

19 Posts
6 Users
0 Reactions
4,647 Views
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

URL to your eFiction: www.spntwisted.com
Version of eFiction: 3.2
Have you bridged eFiction, if so with what?: no
Version of PHP: PHP Version 5.1.4
Version of MySQL: 4.0
Have you searched for your problem: yes
If so, what terms did you try: categories, search, full text and a few others
State the nature of your problem: See below
Do you have a test account for us? Tammy has an account created.
Mods? I have the Recommendations module, Story End module, and Beta Reader search mods from Tammy's site installed. Also this mod by jrabbit is installed: https://efiction.org/forums/index.php?topic=4743.0

I don't know if these problems were there before I upgraded from 3.1.1 or not but I'm pretty sure they weren't.

1. Full Text Search does not work. Penname, title, and summary searches seem to work fine. If I try to search using full text search mode it says 0 results


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 05/03/2007 2:43 pm
(@carissa)
Posts: 791
Member Moderator
 

If you are storing stories in files instead of the database, I don't think full text will work.


 
Posted : 05/03/2007 2:55 pm
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

I'm using the database.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 05/03/2007 3:02 pm
(@jrabbit)
Posts: 64
Trusted Member
 

It doesn't even display the option to use full text search unless the stories are in the database.

I haven't tested this as I don't have access to a site where stories are in the database but it looks like the count query is corrupt in search.php. Line 52 should read:


$countquery = "SELECT count(stories.sid) FROM ".$tableprefix."fanfiction_stories as stories, ".$tableprefix."fanfiction_chapters as chapter WHERE chapter.storytext LIKE '%$searchterm%' AND chapter.sid = stories.sid GROUP BY stories.sid";


 
Posted : 05/03/2007 7:31 pm
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

I tried that and got this. Of course there is always the chance I did something wrong. In fact it's probably likely I did something wrong. If you want access to my site just let me know jrabbit. I changed it back to the original search.php after the error.

A fatal MySQL error was encountered.
Query: SELECT stories.*, author.penname as penname, DATE_FORMAT(stories.date, 'M d, Y') as date, DATE_FORMAT(stories.updated, 'M d, Y') as updated, , DATE_FORMAT(stories.updated, '%Y.%m.%d') as updatesort FROM fanfiction_authors as author, fanfiction_stories as stories, fanfiction_chapters as chapter WHERE chapter.storytext LIKE '%yet%' AND chapter.sid = stories.sid ORDER BY updated DESC LIMIT 0, 25
Error: (1064) You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' DATE_FORMAT(stories.updated, '%Y.%m.%d') as updatesort FROM fa


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 06/03/2007 2:11 am
(@tammy)
Posts: 2577
Member Moderator
 

There's an extra comma after updated.  I'm working on fixing it.


 
Posted : 06/03/2007 11:05 am
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

Thanks Tammy.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 06/03/2007 3:20 pm
(@tammy)
Posts: 2577
Member Moderator
 

Are you good with this issue now Saturn?


 
Posted : 25/03/2007 3:10 am
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

Was this fixed in 3.2.1? I'll post again to let you know if it works after I upgrade.


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 25/03/2007 3:44 am
(@tammy)
Posts: 2577
Member Moderator
 

Yes, this should be fixed with 3.2.1


 
Posted : 25/03/2007 3:58 am
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

http://www.spntwisted.com/search.php

I used the full text feature and it does indeed work but it still has a bug. I searched for a few different words to verify but here's what happens now.

I searched for the word Wishnik since I knew it would only be in one story.
1.The dates are wrong, but only on the search result page that I can tell. All the results showed:  Published: Dec 31, 1969 Updated: Dec 31, 1969
2.It seems to return an entry for the story but shows it multiple times by every author on the site. (It might not be EVERY author but it looks like it)


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 25/03/2007 7:05 pm
(@saturn)
Posts: 45
Eminent Member
Topic starter
 

Any update on this?


My site: www.spntwisted.com
eFiction: 3.5.1
Have you bridged eFiction?: no
PHP Version 4.3.11
MySQL: 5.0
Mods? Recommendations mod, Story End mod, Beta Reader mod, challenges mod

 
Posted : 04/04/2007 3:09 am
(@tammy)
Posts: 2577
Member Moderator
 

Change the query on line 51 to:


$query = "SELECT stories.*, "._PENNAMEFIELD." as penname, UNIX_TIMESTAMP(stories.date) as date, UNIX_TIMESTAMP(stories.updated) as updated FROM "._AUTHORTABLE.", ".TABLEPREFIX."fanfiction_stories as stories, ".TABLEPREFIX."fanfiction_chapters as chapter WHERE chapter.storytext LIKE '%$searchterm%' AND chapter.sid = stories.sid AND stories.uid = "._UIDFIELD;


 
Posted : 04/04/2007 11:51 am
(@tammy)
Posts: 2577
Member Moderator
 

Bump.  Can someone confirm this is fixed now?


 
Posted : 01/07/2007 1:05 am
(@tammy)
Posts: 2577
Member Moderator
 

Bump again. 


 
Posted : 15/10/2007 5:20 pm
Page 1 / 2
Share: