![]() |
i have +8million lines and 165 megs committed to postindex with +500k posts
i've felt searching drags my server so much, would this be a better alternative? |
Quote:
AGAINST ('$query".$isboolean.") unmatched single quota. It should be: AGAINST ('$query' ".$isboolean.") |
Erwin,
Yes copied exactly. I thik there is a single quote missing here PHP Code:
|
Quote:
The code that I've posted works as it is - don't ask me why. You might have to modify it for your site. |
yup, i added the single quote and it works no prob, and fast
Showing results 1 to 25 of 342 Search took 0.06 seconds. it's extremely weird that it works on your site. it's invalid SQL. |
It just means there's matching single quote added either at the end of $query variable or at the beginning of $isboolean somewhere.
|
Thanks for update!
[high]* cerebro install :D[/high] |
Nice mod...really nice, help a lot. Thanks Erwin for Sharing.
What d u think about stats cache...for optimize forum home. https://vborg.vbsupport.ru/showthread.php?t=61581 some one install this hack and bollean search? |
Okay, I've made the hack work for "Search Forum" now as well as "Search Thread" - before, "Search individual forums" did not work.
I've also cleaned up the code a lot more. Plus optimized the search query by removing the JOIN function when it is not required (unlike before when you had a JOIN query for every search for no real reason). I also removed relevance and other bits that slowed the search down and increased server load. Straight searching should be faster with this. Remove my previous codes. Then, open search.php and replace the line beginning with: $fulltext_sql = with this: PHP Code:
('$query".$isboolean.") It works for me, but some others have had to modify this bit by removing or adding quotation marks - not sure why. Hope it works for you! It's working well for me - Search Threads and Search Forums are now working well finally! Plus search is optimized even more! |
Note, when I said removed my previous code above that applies only to people who have applied my prevuous Search Thread bug fix.
When I say the query is optimized even more, it's optimized compared to the original fulltext_sql query - it's basically similar to my previous fix, but written slightly different. Just to clarify. :) |
All times are GMT. The time now is 05:26 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|