Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-06-2013, 05:08 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Sphinx search for vb 4.x?

Hi, I am currently trying to rebuilt my search index after i upgraded to vb 4.x and it is taking so many hours because i have 4+ million posts.

Then i was searching and i came across this Sphinx search. Other than it is hard to integrate, why didn't vb use something like this that will help with big boards which have millions of posts? It seems vb search function is limited in many ways.

Is there a demo for the sphinx search? I couldn't find one so i can see how it looks or work, is it built inside vb search function?

https://marketplace.digitalpoint.com...tin-4.870/item

Performance & Scalability


Quote:
A rough example of how much resources the default search uses, it took nearly 5 days to index 12M posts with the vB database search. The exact same content took 18 minutes to index with our Sphinx system.
http://www.vbulletin.com/forum/forum...ghlight=sphinx

Is there a faster way to rebuilt search index? The issue i had, is that many of our members could not find results for topics that is already on the forum. I think that is because i never finished rebuilding the forum index.

Currently
Building Search Index Null Type 3008000
Reply With Quote
  #2  
Old 10-06-2013, 09:18 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never seen a demo from Shawn on the Sphinx plugin, you would require ssh access & proper user access in shell to install it on your server.

I would off the vb search as its a pita & slow.

There are obvious restrictions to the Sphinx search due to the vb db design, which will limit your sorting options, which shouldnt really be missed by your users.
Reply With Quote
  #3  
Old 10-06-2013, 09:27 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If i have vbseo running, would it not work or conflict with it? since vbseo support is deceased now, so i have no idea
Reply With Quote
  #4  
Old 10-06-2013, 09:34 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No vbseo isnt a issue.

The new tapatalk also works with shawns plugin as well.
Reply With Quote
  #5  
Old 10-07-2013, 03:42 AM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no demos but if you google for 'Digital Point modules: Sphinx-based search' the copyright from shawn's sphinx search link you will find vB forums using the plugin and get an idea of how fast search is

it's very fast ! alot of my private clients i setup vb4 digitalpoint sphinx search for and it's blistering fast for forums with up to 60 million posts from my own experience !

it isn't built inside specifically, search and search data are handled by sphinx search which you need to install from sphinxsearch.com on your server (hence why it isn't possible by default out of box - it's server software dependent on you installing and configuring properly sphinx search - just like vB is dependent on working apache, php and mysql setup) and search index data is usually on disk separately, default to /home/sphinx-data if you follow shawn's instructions but can be on any disk partition

edit: just quoting myself

Quote:
To give you an idea, I installed this vB4 plugin and Sphinx search http://sphinxsearch.com/about/sphinx/ on a 5.5 million post forum. The difference and load compared to default vB4 search is like night and day.

Before
- vB4 default search took around 57-60 seconds to return a common keyword search term of their forums which locks on MySQL tables affecting all other vB members usage of the forums.

After
- Sphinx search + vB4 sphinx plugin installed to replace vB4 default search, the same search term only took 0.18 to 0.30 seconds to return - that's 333x times faster! And without any negative effect for other vB members' experience on the forums.

Also reindexing search (needed create proper indexes for search terms - without this indexing your vB search feature will not return any results), for

- vB4 default search on 5.5 million post forum took around 3-5 days to reindex. Note while reindexing, majority of search keyword terms will not return any results until the keyword term is added to the indexing. So for 3-5 days search will be essentially broken to members not able to search for keyword terms.
- With Sphinx search plugin, it only takes around 10-15 minutes - that's 720x times faster!
Reply With Quote
  #6  
Old 10-12-2013, 01:31 PM
BoyG BoyG is offline
 
Join Date: Jan 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Eva, how do you reindex the DP Sphinx Plugin? Do you have a step by step walkthrough? Thanks!
Reply With Quote
  #7  
Old 10-12-2013, 02:17 PM
katie hunter's Avatar
katie hunter katie hunter is offline
 
Join Date: May 2007
Posts: 533
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://forums.digitalpoint.com/threads/installation-instructions-changelog.2628794/" target="_blank">https://forums.digitalpoint.com/thre...gelog.2628794/</a>
Reply With Quote
  #8  
Old 10-12-2013, 06:18 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That howto isnt for every system, php's binary isnt always in /usr/local/bin/php, that differs on systems.
Reply With Quote
  #9  
Old 10-13-2013, 01:31 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

katie's linked url shows how to manually reindex. Usually for my private clients, I use a simple shell script I wrote that can automatically reindex sphinx search when run.

And yes as Anthony (snakes1100) has stated you will need to make sure correct php binary path is used.
Reply With Quote
  #10  
Old 04-28-2014, 08:20 AM
hostmela hostmela is offline
 
Join Date: Nov 2008
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get bellow error

Command: /usr/local/sphinx/bin/searchd --config /usr/local/sphinx/etc/vbulletin-sphinx.php
Result
Sphinx 2.1.7-id64-release (rel21-r4638)
Copyright (c) 2001-2014, Andrew Aksyonoff
Copyright (c) 2008-2014, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/usr/local/sphinx/etc/vbulletin-sphinx.php'...
WARNING: key 'port' is deprecated in /usr/local/sphinx/etc/vbulletin-sphinx.php line 962; use 'listen' instead.
FATAL: port 0 is out of range

Please advise
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:33 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
  • Page Generation 0.04358 seconds
  • Memory Usage 2,255KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete