The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||||
|
||||||
![]() Quote:
Quote:
![]() Maybe you have some ideas on the issues: morphology = none stopwords = min_word_len = 3 charset_type = sbcs } What do morphology and stopwords do / offer and how to best use them. and mem_limit = 256M } mem_limit for creating the index anyone have any views as to sensible optimum answer for this we are running this on a machine with 8Gb of RAM and as it started as 32M I didn't want to make it too big but it still complains it could be better ![]() ============== Looking in the original configuration file I think I have a handle on the morphology, word_len and char set. Would I be right in saying that the stopwords file is a list of words NOT to index? If so does anyone have a good list of 2 and 3 letter words that can happily be removed from an index ![]() ============== Looking on the sphinxsearch forums there is discussion on creating stop words and the indexer can produce list of most used words for you to work with ie /usr/local/bin/indexer --config sphinx.conf --rotate --buildstops sphinx-stop.txt 1000 --buildfreqs This builds a file with the most commonly used words in the index and the frequencythat they are in your index. If I understand this correctly it should allow you to remove a few of the obvious things. Quote:
Looking at the code in sphinx.php: Code:
if ($titleonly) { // searching thread titles $sphinx_index = $sphinx_thread_index_name; $sphinx_groups2 = $sphinx_userids; $sphinx_forumid_group = 'group'; $sphinx_switch_group = 'group3'; //firstpostid $sphinx_userid_group = 'group2'; // only titles, nothing to weight $sphinx_weights = array ( 1 ); } As far as I can tell one needs the results of the various items above to be so processed. or do you implement it: Code:
$cl = new SphinxClient (); $cl->SetServer ( $sphinx_server, $sphinx_port ); $cl->SetWeights ( $sphinx_weights ); // $cl->SetLimits ( 0, $vboptions['maxresults'] ); $cl->SetLimits ( intval(0), intval($vboptions['maxresults']) ); $cl->SetMatchMode ( SPH_MATCH_ALL ); $cl->SetGroups ( $sphinx_groups ); $cl->SetGroups2 ( $sphinx_groups2 ); $cl->SetGroups3 ( $sphinx_groups3 ); $cl->SetGroups4 ( $sphinx_groups4 ); $cl->SetGroups5 ( $sphinx_groups5 ); $cl->SetSortMode ( $sphinx_sort ); $cl->SetGroups4 ( (array_walk( $sphinx_groups4, "intvalArray") ); I assume it doesn't matter that sometimes the array will be one element long. ===================================== Quote:
Is there a reason you didn't code that using Sphinx? |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|