- - - - - - - - - - - - - - - - - - - - - - - - - - - - Name: RageLT Subject: Tag & ServerWeight
Доброе вермя суток. Застрял на Tag и ServerWeight. Вот мои конфиги: dpsearch-4.48-24102007 ./configure \ --with-mysql \ --with-openssl \ --with-extra-charsets=all \ --with-zlib ***cached.conf*** Listen 127.0.0.1:7000 DBAddr mysql://[EMAIL PROTECTED]/sk/?dbmode=cache WrdFiles 600 URLDataFiles 1056 Limit t:tag ***indexer.conf*** DBAddr mysql://[EMAIL PROTECTED]/sk/?dbmode=cache&cached=localhost:7000 LocalCharset UTF-8 CollectLinks yes Include stopwords.conf Include langmap.conf MaxDocSize 262144 IndexDocSizeLimit 65536 Disallow *.b *.sh *.md5 *.rpm Disallow *.arj *.tar *.zip *.tgz *.gz *.z *.bz2 Disallow *.lha *.lzh *.rar *.zoo *.ha *.tar.Z Disallow *.gif *.jpg *.jpeg *.bmp *.tiff *.tif *.xpm *.xbm *.pcx Disallow *.vdo *.mpeg *.mpe *.mpg *.avi *.movie *.mov *.dat Disallow *.mid *.mp3 *.rm *.ram *.wav *.aiff *.ra Disallow *.vrml *.wrl *.png *.psd Disallow *.exe *.com *.cab *.dll *.bin *.class *.ex_ Disallow *.tex *.texi *.xls *.doc *.texinfo Disallow *.rtf *.pdf *.cdf *.ps Disallow *.ai *.eps *.ppt *.hqx Disallow *.cpt *.bms *.oda *.tcl Disallow *.o *.a *.la *.so Disallow *.pat *.pm *.m4 *.am *.css Disallow *.map *.aif *.sit *.sea Disallow *.m3u *.qt *.mov Disallow *D=A *D=D *M=A *M=D *N=A *N=D *S=A *S=D *O=A *O=D Disallow Regex \.r[0-9][0-9]$ \.a[0-9][0-9]$ \.so\.[0-9]$ AddType image/x-xpixmap *.xpm AddType image/x-xbitmap *.xbm AddType image/gif *.gif AddType text/plain *.txt *.pl *.js *.h *.c *.pm *.e AddType text/html *.html *.htm AddType text/rtf *.rtf AddType application/pdf *.pdf AddType application/msword *.doc AddType application/vnd.ms-excel *.xls AddType text/x-postscript *.ps AddType application/unknown *.* ParserTimeOut 300 Period 1d VaryLang "en ru" MaxDocsPerServer 30 Include sections.conf PopRankMethod Neo PopRankFeedBack yes PopRankNeoIterations 10 Tag A ServerWeight 1 Server http://www.yahoo.com/ Tag B ServerWeight 2 Server http://www.msn.com/ ***search.htm*** <!--variables DBAddr mysql://[EMAIL PROTECTED]/sk/?dbmode=cache DBAddr searchd://localhost/ LogLevel 5 Limit t:tag WrdFiles 600 URLDataFiles 1056 LocalCharset UTF-8 BrowserCharset UTF-8 HlBeg <b> HlEnd </b> GrBeg <blockquote> GrEnd </blockquote> Log2stderr yes --> ***searchd.conf*** Listen 127.0.0.1:7003 DBAddr mysql://[EMAIL PROTECTED]/sk/?dbmode=cache&cached=localhost:7000 MaxClients 2 Limit t:tag LocalCharset UTF-8 Include stopwords.conf Include sections.conf NumSections 15 PreloadURLData yes WrdFiles 600 URLDataFiles 1056 ***sections.conf*** Section body 1 256 Section title 2 128 Section meta.keywords 3 128 Section meta.description 4 128 Section url 6 0 Section crosswords 10 Section Charset 11 32 Section Content-Type 12 64 Section Content-Language 13 16 Section attribute.alt 14 128 Section attribute.label 15 128 Section attribute.summary 16 128 Section attribute.title 17 128 Section attribute.longdesc 18 128 ***stopwords.conf*** StopwordFile stopwords/en.big.sl StopwordFile stopwords/en.huge.sl StopwordFile stopwords/en.sl StopwordFile stopwords/ru.sl Запускаю cd sbin ./cached & ./searchd & ./indexer -N 2 -WH ------------------------------------------------------------- mysql> select * from server where command='S'; +------------+---------+-----------------------+-----+----------+---------+-------+------------+--------+------------+ | rec_id | enabled | url | tag | category | command | ordre | parent | weight | pop_weight | +------------+---------+-----------------------+-----+----------+---------+-------+------------+--------+------------+ | 1094449022 | 1 | http://www.yahoo.com/ | A | 0 | S | 117 | 0 | 1 | 0 | | -518216232 | 1 | http://www.msn.com/ | B | 0 | S | 118 | 0 | 1 | 0 | | 1946096080 | 1 | http://yahoo.com/ | A | 0 | S | 117 | 1094449022 | 1 | 0 | +------------+---------+-----------------------+-----+----------+---------+-------+------------+--------+------------+ weight у всех равен 1, хотя помоему он должен быть разный, или я что-то не понял? ls -la var/tree/lim_tag* -rw-r--r-- 1 root wheel 0 Oct 25 11:57 var/tree/lim_tag.dat -rw-r--r-- 1 root wheel 0 Oct 25 11:57 var/tree/lim_tag.ind Соответственно при поиске search.cgi?q=search&t=A search.cgi?q=search&t=B никаких изменений в выдаче результата. - - - - - - - - - - - - - - - - - - - - - - - - - - - - Read the full topic here: http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=05;post=
