Go Back   vb.org Archive > Community Discussions > Forum and Server Management
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #401  
Old 08-28-2007, 11:19 AM
Rayn21 Rayn21 is offline
 
Join Date: Sep 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm finding that my sphinx search is only returning results to vbulletin from the last month or so, regardless of the advanced search settings. When I run commands directly to search on the command line, I get many, many more results ... but when interacting with vbulletin something goes wrong.

Any immediate ideas?
Reply With Quote
  #402  
Old 08-28-2007, 11:55 AM
telescopi telescopi is offline
 
Join Date: Sep 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works here - I just followed the instructions on obans post on page 26.

Could your vbulletin max results be limiting what sphinx is returning?

What happens if you sort ascending?
Reply With Quote
  #403  
Old 08-28-2007, 01:49 PM
Rayn21 Rayn21 is offline
 
Join Date: Sep 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I set the vbulletin max results to 6000 just to see what happens and I wound up with more posts, but still I am missing some. I am wondering what I am missing. It had been working for me as far as I know, it's just that the popular search terms seem to have a hidden time constraint on them ... maybe because they return so many results.

If I search for a popular search term, I'll get back maybe 300 results all from a recent time frame (about a month). If I search for a less popular search term, I'll get results going all the way back to 2000 like I should. I will have to go through and re-examine all the scripts again, but something is funny going on.

What could limit my results between the search command line and vbulletin itself ... because there are many more results returns on the command line.

If I search for a popular term like 'Kurayami' a popular poster who is mentioned often ... with 6000 max results in vB and 1200 max results in sphinx.conf ... I'll max out at 1000 results all very recent. Weird but understandable. If I search 'Rayn' ... a few results but many less than 1000 ... all within a relatively recent time frame. There should be more, the command line returns thousands of posts.

I cannot locate the source of this discrepancy.

http://www.tribalwar.com/forums/search.php
Reply With Quote
  #404  
Old 08-28-2007, 01:59 PM
mlx's Avatar
mlx mlx is offline
 
Join Date: Jan 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think the problem with the instructions posted here is that the search result isn't grouped by threadid if you are searching for threads only.

i.e. Sphinx' API only returns 500 posts but not threads containing the search query (or whatever you are using as the vb search limit).

I think we have fixed this at our forum, I can post our improved sphinx.php once I'm back home.
Reply With Quote
  #405  
Old 08-28-2007, 02:32 PM
Rayn21 Rayn21 is offline
 
Join Date: Sep 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What you are describing is consistent with what I am observing right now. I'd love to see what solution you found to the issue if you remember to post it later.
Reply With Quote
  #406  
Old 08-29-2007, 06:20 PM
mlx's Avatar
mlx mlx is offline
 
Join Date: Jan 2002
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by orban View Post
I'm leaving this place if somebody wants to take over this thread and keep the guide up to date feel free to do so it's on page 26 I think. Bye.
So I guess it's OK to post our improved sphinx.php here. Thanks to orban and everyone else contributing to this thread for their work!

I have added some code to group the search results by threadid and to actually sort the results just like vBulletin's default search engine does.

I think the code should work fine with the config posted by orban on page 26. Let me know if you have any problems though.
Attached Files
File Type: php sphinx.php (6.4 KB, 110 views)
Reply With Quote
  #407  
Old 08-30-2007, 12:48 AM
Rayn21 Rayn21 is offline
 
Join Date: Sep 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code works wonderfully for most of my users, but for some users I get an empty searchd result back if - and only if - I am returning results as threads. (When searching for posts). When I use the search command line with the threadid as the groupby and the same index, I get results. I looked through the code, but I am not sure what would cause this particular issue. Have any ideas? I love the improvements.
Reply With Quote
  #408  
Old 09-02-2007, 09:09 AM
Jon Jon is offline
 
Join Date: Mar 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sphinx works fine on our forums when displaying results as threads. Displaying results as posts however returns an incomplete set of results, but only with terms that occur often (which is not hard with > 8M posts ). On top I get results with a match on the title only (why..?), and those are followed by older results with a match on posts. Recent posts seem to be missing in the result set.

Any hints on how to get the search to behave properly?
Reply With Quote
  #409  
Old 09-02-2007, 06:21 PM
amcd amcd is offline
 
Join Date: Oct 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe your post delta is not being updated properly.
Reply With Quote
  #410  
Old 09-02-2007, 07:45 PM
Jon Jon is offline
 
Join Date: Mar 2002
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, the indexer works fine. There could be up to hundreds of posts not included. Say I'm searching for a term, with a match on posts, displayed as posts, I first get 3 pages of matches on title, ranging from 2007 to 2005. After that I get matches on post, ranging from 2005 to 2003. Recent posts are nowhere to be found.
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 07:46 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04494 seconds
  • Memory Usage 2,269KB
  • 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_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
  • (2)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
  • (1)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete