- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: pey0t
Subject: Re: ПРоблема с выводом результатов

Maxime, искреннее спасибо за быстрый ответ и уделяемое внимание.

1. Я так запутался, что решил всё проделать заново. Итак:
2. dbmode я решил использовать cache, сужу по распространённости на данном 
форуме. 
3. Во всех четытёх конфигах (indexer.conf, cache.conf, search.htm, 
searchd.conf) должна быть следующая строка :
DBAddr mysql://searcher:<ПАРОЛЬ_searcher>@localhost/searchdb/?dbmode=cache
правильно ли это?

Привожу конфиги.
а) cached.conf
DBAddr mysql://seerch:vAA:[EMAIL PROTECTED]/search/?dbmode=cache
LogsOnly yes
WrdFiles 4096
OptimizeAtUpdate yes
URLDataFiles 256
OptimizeRatio 5

б) indexer.conf
DBAddr          mysql://seerch:vAA:[EMAIL PROTECTED]/search/?dbmode=cache
LocalCharset koi8-r
Server http://***.biz/
Include stopwords.conf
Include langmap.conf

в) searchd.conf
DBAddr mysql://seerch:vAA:[EMAIL PROTECTED]/search/?dbmode=cache
Include sections.conf
NumSections 15

г) search.htm
DBAddr mysql://seerch:vAA:[EMAIL PROTECTED]/search/?dbmode=cache
Cache yes
DetectClones yes
LocalCharset   koi8-r
BrowserCharset koi8-r

4. Итак приступаем ./indexer , затем 

[EMAIL PROTECTED]:~/dpsearch/sbin$ ./indexer -S

          Database statistics

Status    Expired      Total
   -----------------------------
     0        107        162 Not indexed yet
   200          0         23 OK
   302          0          2 Moved Temporarily
   415          0          2 Unsupported Media Type
   -----------------------------
 Total        107        189

indexer[8527]: {00} Sun 13 17:28:35 [8527] Flushing all buffers...
indexer[8527]: {00} Done

[EMAIL PROTECTED]:~/dpsearch/sbin$ ./indexer -THW
indexer[8531]: {00} indexer from dpsearch-4.47-13052007-mysql, config test OK 
with '/var/www/htdocs/serpuhov.biz/search/dpsearch/etc/indexer.conf'
indexer[8531]: {00} Writing url data and limits for mysql://search:[EMAIL 
PROTECTED]/search/?dbmode=cache...
indexer[8531]: {00} url data and limits Done
indexer[8531]: {00} Sun 13 17:28:42 [8531] Flushing all buffers...
indexer[8531]: {00} Done
indexer[8531]: {00} Cached buffers flush Done

5. Затем очищаю директорию var/cache (это нужно делать? и как часто?)
И вуаля, поиск работает, но с кодировкой проблема в выводах результата.

6. Поэтому запускаю ./indexer -v 5 n 1,и  вот как я понимаю кусок ответа от 
сервера dpsearch-у
...
indexer[12053]: {01} Request.User-Agent: DataparkSearch/4.47-13052007 
(+http://dataparksearch.org/bot)
indexer[12053]: {01} Response.body: <NULL>
indexer[12053]: {01} Response.case_sense: 1
indexer[12053]: {01} Response.Charset: <NULL>
indexer[12053]: {01} Response.Connection: close
indexer[12053]: {01} Response.Content-Language: <NULL>
indexer[12053]: {01} Response.Content-Length: 0
indexer[12053]: {01} Response.Content-Type: text/html
indexer[12053]: {01} Response.crc32: 0
indexer[12053]: {01} Response.crc32old: 0
indexer[12053]: {01} Response.crosswords: <NULL>
...
Тоесть ответа о кодировке нет, как быть, самому подбирать? Повторюсь сейчас 
везде стоит koi8-r.

7. Каков поочерёдный порядок запусков cached,searchd,indexer? Или достаточно 
только indexer?

У меня пока всё :). Максим, надеюсь на вашу помощь.
- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=05;topic_id=1179000268

Reply via email to