Go Back   vb.org Archive > Community Discussions > Forum and Server Management
  #711  
Old 08-17-2009, 03:35 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amcd View Post
moved/merged/edited/deleted posts are a huge reason to regenerate the whole index periodically.
Oh jeez...yeah, you're right! I didn't even think of that!
Reply With Quote
  #712  
Old 08-24-2009, 05:48 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedWingFan View Post
Here is something else: http://www.sphinxsearch.com/docs/cur...nf-enable-star . You can search Sphinx using the asterisk ("star") as a wildcard. I have thought of enabling this, but I am thinking that the search_sphinx.php file (or vB itself) would strip out the asterisk and make no difference during searches. This would be a neat addition. Has anyone else here tried it?
Just curious if anyone has tried this at all. (This was buried in my last lengthy post.) I believe Sphinx also has phrase searching, where you enter search terms in quotes, but I have a feeling that vB strips out anything that's not alphanumeric...

Both of these would be a welcome addition to vB search.
Reply With Quote
  #713  
Old 09-09-2009, 07:47 PM
columbusgeek's Avatar
columbusgeek columbusgeek is offline
 
Join Date: Sep 2007
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

RedWingFan are you using this on your music forum? Was trying to find examples of people using it, but having a hard time trying to find out if they are or not. Its a lot of work to get this installed on the forum, I want to make sure its worth it.
Reply With Quote
  #714  
Old 09-09-2009, 08:27 PM
RedWingFan's Avatar
RedWingFan RedWingFan is offline
 
Join Date: Oct 2004
Location: Canton, MI USA
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, we're using it, and aside from a few minor quirks (which I can't even remember right now), it is working great! I don't know if it helped server loads or not (we had to do several changes at once to get us out of our overloads), but it returns searches much faster than using vB's own built-in search.

I still with vB would develop something official for this. The built-in searching (using vB or fulltext) is just too hard on the server resources...
Reply With Quote
  #715  
Old 09-10-2009, 06:24 AM
amcd amcd is offline
 
Join Date: Oct 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by columbusgeek View Post
RedWingFan are you using this on your music forum? Was trying to find examples of people using it, but having a hard time trying to find out if they are or not. Its a lot of work to get this installed on the forum, I want to make sure its worth it.
Believe me, it is worth the trouble.
Reply With Quote
  #716  
Old 09-29-2009, 01:24 AM
cobaku cobaku is offline
 
Join Date: Oct 2005
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i somehow managed to set it up was difficult for me cause it was with latest stable version of sphinx

I have 1 problem i can only search latest data
is the problem this line
$cl->SetLimits(0, $vbulletin->config['Sphinx']['limit'], 1000);


indexer --config /etc/sphinx/sphinx.conf --all

did not work for me

do you see anything strange below ?

PHP Code:
search araba
Sphinx 0.9.8.1
-release (r1533)
Copyright (c2001-2008Andrew Aksyonoff

using config file 
'/etc/sphinx/sphinx.conf'...
index 'post'query 'araba 'returned 1000 matches of 7898 total in 0.004 sec

displaying matches
:
1. document=80773weight=2forumid=994threadid=390272userid=16943postuserid=16943dateline=1240060017
2. document
=84269weight=2forumid=1086threadid=391331userid=16952postuserid=16952dateline=1240498824
3. document
=86419weight=2forumid=955threadid=391866userid=16974postuserid=16974dateline=1240837075
4. document
=91826weight=2forumid=955threadid=393613userid=16974postuserid=16974dateline=1241437858
5. document
=94475weight=2forumid=955threadid=394697userid=16974postuserid=16974dateline=1241693582
6. document
=97095weight=2forumid=955threadid=395466userid=18089postuserid=18089dateline=1241947814
7. document
=102383weight=2forumid=986threadid=396996userid=18498postuserid=18498dateline=1242514332
8. document
=103128weight=2forumid=989threadid=397406userid=17130postuserid=17130dateline=1242605991
9. document
=107136weight=2forumid=955threadid=399391userid=18089postuserid=18089dateline=1242998153
10. document
=116811weight=2forumid=1152threadid=402536userid=16952postuserid=16952dateline=1244043857
11. document
=123798weight=2forumid=926threadid=404828userid=16952postuserid=16952dateline=1244710168
12. document
=128288weight=2forumid=955threadid=406456userid=17037postuserid=17037dateline=1245165814
13. document
=148144weight=2forumid=1190threadid=413235userid=21936postuserid=21936dateline=1208151468
14. document
=210224weight=2forumid=955threadid=427389userid=16952postuserid=16952dateline=1246699018
15. document
=210783weight=2forumid=939threadid=427756userid=16974postuserid=16974dateline=1246781891
16. document
=214556weight=2forumid=944threadid=430330userid=18089postuserid=18089dateline=1247149305
17. document
=227784weight=2forumid=955threadid=438935userid=18089postuserid=18089dateline=1248347435
18. document
=243160weight=2forumid=1220threadid=451956userid=25234postuserid=25234dateline=1249068635
19. document
=246529weight=2forumid=1220threadid=455202userid=25234postuserid=25234dateline=1249081047
20. document
=258231weight=2forumid=946threadid=466152userid=25264postuserid=25264dateline=1249240240

words
:
1. 'araba'7898 documents11201 hits

index 
'postdelta'query 'araba 'returned 0 matches of 0 total in 0.000 sec

words
:
1. 'araba'0 documents0 hits

index 
'thread'query 'araba 'returned 772 matches of 772 total in 0.001 sec

displaying matches
:
1. document=372217weight=1forumid=956dateline=1222623543replycount=0postuserid=16925firstpostid=30496lastpost=1222623543
2. document
=374052weight=1forumid=1152dateline=1224631688replycount=0postuserid=16943firstpostid=35303lastpost=1224631688
3. document
=374598weight=1forumid=955dateline=1225042981replycount=0postuserid=16930firstpostid=36528lastpost=1225042981
4. document
=375077weight=1forumid=989dateline=1225303575replycount=0postuserid=17146firstpostid=37667lastpost=1225303575
5. document
=375583weight=1forumid=960dateline=1225568475replycount=13postuserid=17130firstpostid=38699lastpost=1225569202
6. document
=376008weight=1forumid=1066dateline=1225729012replycount=0postuserid=17130firstpostid=39542lastpost=1225729012
7. document
=376943weight=1forumid=962dateline=1226785215replycount=0postuserid=16927firstpostid=42252lastpost=1226785215
8. document
=379723weight=1forumid=1042dateline=1230140294replycount=0postuserid=16922firstpostid=49398lastpost=1230140294
9. document
=380356weight=1forumid=1042dateline=1230341207replycount=1postuserid=16922firstpostid=50241lastpost=1230343991
10. document
=382927weight=1forumid=930dateline=1234112980replycount=0postuserid=18089firstpostid=57175lastpost=1234112980
11. document
=383068weight=1forumid=942dateline=1234249993replycount=0postuserid=16952firstpostid=57670lastpost=1234249993
12. document
=383861weight=1forumid=940dateline=1234901559replycount=3postuserid=16943firstpostid=60303lastpost=1234944063
13. document
=384377weight=1forumid=1128dateline=1235439321replycount=1postuserid=16974firstpostid=61944lastpost=1235511123
14. document
=385050weight=1forumid=1081dateline=1235918502replycount=3postuserid=18089firstpostid=64607lastpost=1235990640
15. document
=386488weight=1forumid=947dateline=1236764155replycount=0postuserid=16974firstpostid=69070lastpost=1236764155
16. document
=387599weight=1forumid=940dateline=1237369853replycount=0postuserid=16974firstpostid=71921lastpost=1237369853
17. document
=390272weight=1forumid=994dateline=1240060017replycount=0postuserid=16943firstpostid=80773lastpost=1240060017
18. document
=391331weight=1forumid=1086dateline=1240498824replycount=1postuserid=16952firstpostid=84269lastpost=1240500212
19. document
=391866weight=1forumid=955dateline=1240837075replycount=0postuserid=16974firstpostid=86419lastpost=1240837075
20. document
=393613weight=1forumid=955dateline=1241437858replycount=0postuserid=16974firstpostid=91826lastpost=1241437858

words
:
1. 'araba'772 documents780 hits

index 
'threaddelta'query 'araba 'returned 0 matches of 0 total in 0.000 sec

words
:
1. 'araba'0 documents0 hits 
is it normal nothing returns from postdelta and threaddelta

--------------- Added [DATE]1254255717[/DATE] at [TIME]1254255717[/TIME] ---------------

if i can ever overcome this problem i will make a post sphinx search for dummies this post is so messed up.
Reply With Quote
  #717  
Old 10-21-2009, 05:06 AM
Raun Raun is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I am installing this on a vbulletin installation that is setup as follows what box would it go on?

1load balancer
4 web servers
1 master DB
1 slave DB
Reply With Quote
  #718  
Old 10-21-2009, 05:35 AM
DaiTengu DaiTengu is offline
 
Join Date: Nov 2005
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Raun View Post
If I am installing this on a vbulletin installation that is setup as follows what box would it go on?

1load balancer
4 web servers
1 master DB
1 slave DB
slave DB server would be your best bet.
Reply With Quote
  #719  
Old 10-21-2009, 07:22 AM
UK Jimbo's Avatar
UK Jimbo UK Jimbo is offline
 
Join Date: Sep 2002
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Raun View Post
If I am installing this on a vbulletin installation that is setup as follows what box would it go on?

1load balancer
4 web servers
1 master DB
1 slave DB
It depends on the load on the two db servers. My guess would be that the least loaded in this configuration will be the master db server. Both master and slave are handling the same number of write (INSERT/UPDATE/DELETE) queries but the slave will be handling a load of reads too.

With a bit of scripting wrapping index copying (rsync probably) and restarting searchd you could generate the indexes on one machine and then copy them out to another one. This might be handy if you want to build some kind of redundancy into your setup or be able to balance sphinx traffic.
Reply With Quote
  #720  
Old 10-21-2009, 02:32 PM
Raun Raun is offline
 
Join Date: Mar 2009
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I were to install it on both DBs would that work the same as copying the indexes?
Reply With Quote
Reply

Thread Tools
Display Modes

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 08: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
  • Page Generation 0.04570 seconds
  • Memory Usage 2,375KB
  • Queries Executed 12 (?)
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
  • (1)bbcode_php
  • (5)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
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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