View Single Post
  #10  
Old 05-06-2016, 04:59 AM
ginahoy ginahoy is offline
 
Join Date: May 2016
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just registered for the VB4 demo. Unfortunately the search engine in the demo appears to be broken. I couldn't get any search to work, so I'm guessing the index must be empty. I rebuilt the index and search engine appears to now be working.

The sample post set up in the demo includes the following phrase: "administrative facilities available"

First, I searched for those three words without quotes. The search engine correctly returns the post. If I add a nonsense word to the search, it still returns the post. This confirms the search engine works as the logical OR -- i.e, it returns posts that contain any of the search words. Apparently there's no option to search for all words.

Now if I add quotes, it returns an error:

The following words are either very common, too long, or too short and were not included in your search:
"administrative facilities available"


What's happening here is that the word length checking routine evaluates the quoted string as a single word (including the quotes themselves, as it turns out). From the Admin Control Panel I increased the max word length to 40. Now, when I search for that same string, it correctly returns the post.

However, if I remove the middle word like this: "administrative available", it returns returns the post, confirming that the VB4 search engine is still searching for individual words within the quotes in any order (e.g., no exact phrase search capability). Darn. I also confirmed that even with quotes, it process the search as an OR function.

I saw one strangeness I can't explain. The sample post includes the phrase "24 hours after", but if I omit the middle word and search for "24 after" in quotes, it returns no match. (the min. word length is set to 4, and remember, the word length checker evaluates this as a 10-character word). Although this might suggest the quotes are being processed as an exact phrase search, I was unable to replicate that with any other 3 word string from the sample post. Strange indeed.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02500 seconds
  • Memory Usage 1,765KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete