Author: Vladimir
Email: [EMAIL PROTECTED]
Message:
I've met the following  problem.
Our web-site is developed on PHP using MySQL data base. Now we need to
arrange search through the site and decided to take MnoGoSearch search
system (htdb:/). The problem is that we need to index two or more
fields by Primary Key in one table. In fact, we have indexed only one field
,the second field is ignored. Our configuration file indexer.conf is
given below:

######################################################################
# begin
######################################################################
DBAddr  mysql://root:@alar-s.com/knp1/
DBMode  single
Robots no
DeleteBad yes

# First table  - field content
HTDBList SELECT concat("http://knp1.alar-s.com/about.php?op=";, bkey) \
FROM knp_about

HTDBDoc \
SELECT concat( \
 'HTTP/1.0 200 OK\\r\\n',\
 'Content-type: text/plain\\r\\n',\
 '\\r\\n',\
content) \
FROM knp_about \
WHERE bkey='$1'


Server htdb:/1/
Realm  http://knp1.alar-s.com/about.php?op=*
Alias  http://knp1.alar-s.com/about.php?op=  htdb:/1/

# Second table - field hometext
HTDBList SELECT concat("http://knp1.alar-s.com/news.php?nid=";, nid) \
FROM knp_news

HTDBDoc \
SELECT concat( \
'HTTP/1.0 200 OK\\r\\n',\
'Content-type: text/plain\\r\\n',\
'\\r\\n',\
hometext) \
FROM knp_news \
WHERE nid='$1'

Server htdb:/2/
Realm  http://knp1.alar-s.com/news.php?nid=*
Alias  http://knp1.alar-s.com/news.php?nid=  htdb:/2/

# Second table - field title
HTDBList SELECT concat("http://knp1.alar-s.com/news.php?nid=";, nid) \
FROM knp_news

HTDBDoc \
SELECT concat( \
 'HTTP/1.0 200 OK\\r\\n',\
 'Content-type: text/plain\\r\\n',\
 '\\r\\n',\
bodytext) \
FROM knp_news \
WHERE nid='$1'

Server htdb:/3/
Realm  http://knp1.alar-s.com/news.php?nid=*
Alias  http://knp1.alar-s.com/news.php?nid=  htdb:/3/

#####################################################################
# end
#####################################################################

this way there is no indexing by htdb:/3/.

Maybe somebody has already met the similar problem - I would
appreciate any assistance or advice.


Reply: <http://www.mnogosearch.org/board/message.php?id=3113>

___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]

Reply via email to