Re: Webboard: Indexing product categories which are dynamically updated from base.

2001-05-17 Thread Alexander Barkov

ðÒÉ×ÅÔ!

ëÁÖÉÓØ ÔÕÔ ËÁË-ÔÏ ÍÏÖÎÏ ÉÚ×ÅÒÎÕÔØÓÑ. ðÏËÁ ËÁË ÉÍÅÎÎÏ
Ñ ÎÅ ÐÏÎÑÌ, ÎÏ ×ÒÏÄÅ ÍÏÖÎÏ. á ÎÁ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ ÞÔÏ 
ÌÅÖÉÔ É × ËÁËÏÍ ×ÉÄÅ?


ðÏ ×Ï×ÏÄÕ , ÍÏÖÎÏ ÎÅ ×ÅÓØ search.htm ÇÅÎÅÒÑÔØ,
Á ÔÏÌØËÏ ÞÁÓÔØ. á ÅÅ ×ËÌÀÞÁÔØ ÞÅÒÅÚ $if(/file/to/select.htm)
á ÅÝÅ ÍÏÖÎÏ ×ËÌÀÞÉÔØ ÅÅ ËÁË ×ÎÅÛÎÉÊ URL: 
$iurl(http://www.blalba.ru/select.sgi)



>Author: Alexander  
>Email: [EMAIL PROTECTED] 
>Message:   
>íÎÅ ÎÅÏÂÈÏÄÉÍÏ ÐÒÉËÒÕÔÉÔØ ËÁËÕÀ-ÎÉÂÕÄØ ÐÏÉÓËÏ×ÕÀ ÓÉÓÔÅÍÕ Ë ÜÌÅËÔÒÏÎÎÏÍÕ
>ÍÁÇÁÚÉÎÕ (ÐÏÉÓË ÐÏ ÔÏ×ÁÒÁÍ). ñ ÏÓÔÁÎÏ×ÉÌ Ó×ÏÊ ×ÙÂÏÒ ÎÁ íÎÏÇÏÓÅÒÞÅ. ïó: 
>Linux, âä: Oracle. ñ ×ÓÅ ÕÓÔÁÎÏ×ÉÌ, ×ÒÏÄÅ ÂÙ ×ÓÅ ÒÁÂÏÔÁÅÔ. 
>   
>îÏ ÅÓÔØ ÎÅËÏÔÏÒÙÅ ÐÒÏÂÌÅÍÙ.
>   
>1.éÎÄÅËÓÉÒÏ×ÁÔØ ÔÏ×ÁÒÙ ÎÁÄÏ ÐÏ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÅ, Á ÎÅ ÐÏ www.  
>2.îÅÏÂÈÏÄÉÍÏ ÓÏÚÄÁÔØ ÐÏÉÓË ÐÏ ÒÁÚÄÅÌÁÍ (Ó ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍ select'ÏÍ),  
>ËÏÔÏÒÙÅ _ÄÉÎÁÍÉÞÅÓËÉ_ ÏÂÎÏ×ÌÑÀÔÓÑ ÉÚ ÂÁÚÙ (ÒÁÚÄÅÌ ÐÏÉÓËÁ == ÒÁÚÄÅÌ 
>ËÁÔÁÌÏÇÁ ÔÏ×ÁÒÏ×). ñ ÉÓÐÏÌØÚÏ×ÁÌ ÄÌÑ ÜÔÏÇÏ ÐÏÌÅ category.  
>   
>óÏ×ÍÅÓÔÉ× 1. É 2., Ñ ÎÁÐÉÓÁÌ ÓËÒÉÐÔ, ËÏÔÏÒÙÊ ÐÏ ÏÞÅÒÅÄÉ ÄÌÑ ËÁÖÄÏÊ 
>ËÁÔÅÇÏÒÉÉ: 
>   
>- ÇÅÎÅÒÉÔ ÆÁÊÌÏ×ÏÅ ÄÅÒÅ×Ï (ÆÁÊÌÙ ×ÉÄÁ  
>"../perl-cgi/product_card?prod_id=nnn" ), ÄÏÓÔÁ×ÁÑ ÉÚ ÂÁÚÙ ÎÅÏÂÈÏÄÉÍÕÀ 
>ÉÎÆÏÒÍÁÃÉÀ Ï ÔÏ×ÁÒÁÈ, ÐÏÄÌÅÖÁÝÉÈ ÉÎÄÅËÓÁÃÉÉ (ÏÐÉÓÁÎÉÅ, ÃÅÎÁ É Ô.Ä.).   
>ËÁÖÄÙÊ ÆÁÊÌ "product_card?prod_id=nnn" ÓÏÄÅÒÖÉÔ HTML-ÄÏËÕÍÅÎÔ Ó title, 
>ËÌÀÞÅ×ÙÍÉ ÓÌÏ×ÁÍÉ, ÏÐÉÓÁÎÉÅÍ ÔÏ×ÁÒÁ É Ô.Ð. îÁ www ÌÅÖÁÔ ËÁÒÔÏÞËÉ ÔÏ×ÁÒÏ×   
>Ó ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÐÕÔÑÍÉ (
>http://www.blablabla.ru/perl-cgi/product_card?prod_id=nnn);
>   
>- ÇÅÎÅÒÉÔ indexer.conf, ×ÓÔÁ×ÌÑÑ ÔÕÄÁ ÔÅËÕÝÕÀ ËÁÔÅÇÏÒÉÀ × ÐÏÌÅ Category;   
>   
>- ÚÁÐÕÓËÁÅÔ ÉÎÄÅËÓÁÔÏÒ.
>   
> üÔÏ ×ÓÅ ÐÏ×ÔÏÒÑÅÔÓÑ ÄÌÑ ËÁÖÄÏÊ ËÁÔÅÇÏÒÉÉ ÔÏ×ÁÒÏ×. é ÐÏÄ ËÏÎÅà ÒÁÂÏÔÙ, 
>ÓËÒÉÐÔ ÇÅÎÅÒÉÔ search.htm, ×ÓÔÁ×ÌÑÑ ÔÕÄÁ select-tag ÓÏ ×ÓÅÍÉ ËÁÔÅÇÏÒÉÑÍÉ   
>× ËÁÞÅÓÔ×Å option. 
>   
>üÔÏ ÐÅÒ×ÏÅ, ÞÔÏ ÐÒÉÛÌÏ ÍÎÅ × ÇÏÌÏ×Õ. îÏ ÔÕÔ ÐÒÏÂÌÅÍÁ Ó ÕÄÁÌÅÎÉÅÍ ÉÚ ÂÁÚÙ   
>ÔÏ×ÁÒÏ×: ÉÎÄÅËÓÁÔÏÒ ÌÉÂÏ ÏÓÔÁ×ÌÑÅÔ ×ÓÅ ÔÏ×ÁÒÙ, ÌÉÂÏ ÕÄÁÌÑÅÔ ÔÏ×ÁÒÙ,
>ËÏÔÏÒÙÅ ÂÙÌÉ ÐÒÏÉÎÄÅËÓÉÒÏ×ÁÎÙ ÄÌÑ ÐÒÅÄÙÄÕÝÉÈ ËÁÔÅÇÏÒÉÊ. é ×ÏÏÂÝÅ ËÁË-ÔÏ
>ÎÅÍÎÏÇÏ ËÒÉ×Ï: ÓÏÚÄÁ×ÁÔØ ËÁÖÄÙÊ ÒÁÚ indexer.conf, ÚÁÐÕÓËÁÔØ ÍÎÏÇÏ ÒÁÚ
>ÉÎÄÅËÓÁÔÏÒ É Ô.Ä... :(
>ëÁË ÍÎÅ ÌÕÞÛÅ ÐÏÓÔÕÐÉÔØ? úÁÒÁÎÅÅ ÓÐÁÓÉÂÏ.
___
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]




Webboard: Indexing product categories which are dynamically updated from base.

2001-05-15 Thread Alexander

Author: Alexander
Email: [EMAIL PROTECTED]
Message:
Ìíå íåîáõîäèìî ïðèêðóòèòü êàêóþ-íèáóäü ïîèñêîâóþ ñèñòåìó ê ýëåêòðîííîìó ìàãàçèíó 
(ïîèñê ïî òîâàðàì). ß îñòàíîâèë ñâîé âûáîð íà Ìíîãîñåð÷å. ÎÑ: Linux, ÁÄ: Oracle. ß âñå 
óñòàíîâèë, âðîäå áû âñå ðàáîòàåò.

Íî åñòü íåêîòîðûå ïðîáëåìû.

1.Èíäåêñèðîâàòü òîâàðû íàäî ïî ôàéëîâîé ñèñòåìå, à íå ïî www.
2.Íåîáõîäèìî ñîçäàòü ïîèñê ïî ðàçäåëàì (ñ ñîîòâåòñòâóþùèì select'îì), êîòîðûå 
_äèíàìè÷åñêè_ îáíîâëÿþòñÿ èç áàçû (ðàçäåë ïîèñêà == ðàçäåë êàòàëîãà òîâàðîâ). ß 
èñïîëüçîâàë äëÿ ýòîãî ïîëå category.

Ñîâìåñòèâ 1. è 2., ÿ íàïèñàë ñêðèïò, êîòîðûé ïî î÷åðåäè äëÿ êàæäîé êàòåãîðèè:

- ãåíåðèò ôàéëîâîå äåðåâî (ôàéëû âèäà "../perl-cgi/product_card?prod_id=nnn" ), 
äîñòàâàÿ èç áàçû íåîáõîäèìóþ èíôîðìàöèþ î òîâàðàõ, ïîäëåæàùèõ èíäåêñàöèè (îïèñàíèå, 
öåíà è ò.ä.). êàæäûé ôàéë "product_card?prod_id=nnn" ñîäåðæèò HTML-äîêóìåíò ñ title, 
êëþ÷åâûìè ñëîâàìè, îïèñàíèåì òîâàðà è ò.ï. Íà www ëåæàò êàðòî÷êè òîâàðîâ ñ 
ñîîòâåòñòâóþùèìè ïóòÿìè (http://www.blablabla.ru/perl-cgi/product_card?prod_id=nnn);

- ãåíåðèò indexer.conf, âñòàâëÿÿ òóäà òåêóùóþ êàòåãîðèþ â ïîëå Category;

- çàïóñêàåò èíäåêñàòîð.

 Ýòî âñå ïîâòîðÿåòñÿ äëÿ êàæäîé êàòåãîðèè òîâàðîâ. È ïîä êîíåö ðàáîòû, ñêðèïò ãåíåðèò 
search.htm, âñòàâëÿÿ òóäà select-tag ñî âñåìè êàòåãîðèÿìè â êà÷åñòâå option.

Ýòî ïåðâîå, ÷òî ïðèøëî ìíå â ãîëîâó. Íî òóò ïðîáëåìà ñ óäàëåíèåì èç áàçû òîâàðîâ: 
èíäåêñàòîð ëèáî îñòàâëÿåò âñå òîâàðû, ëèáî óäàëÿåò òîâàðû, êîòîðûå áûëè 
ïðîèíäåêñèðîâàíû äëÿ ïðåäûäóùèõ êàòåãîðèé. È âîîáùå êàê-òî íåìíîãî êðèâî: ñîçäàâàòü 
êàæäûé ðàç indexer.conf, çàïóñêàòü ìíîãî ðàç èíäåêñàòîð è ò.ä... :(

Êàê ìíå ëó÷øå ïîñòóïèòü? Çàðàíåå ñïàñèáî.



Reply: 

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




Webboard: Indexing product categories which are dynamically updated from base.

2001-05-15 Thread Alexander

Author: Alexander
Email: [EMAIL PROTECTED]
Message:
I need to add some search engine to internet shop (searching in products). I stopped 
my choise at mnoGoSearch. My OS: Linux, DB: Oracle. I've installed it, it works. But I 
have some problems.

1. I must index products from file system not from web.
2. I want make searching in categories (with according select-tag in html), which are 
__dynamically__ updated from base (category == product category in base). I used  
mnoGoSearch category-tag.

To make 1. and 2. I wrote a script, which by turns for each category :

- making file tree (group of files like "../perl-cgi/product_card?prod_id=nnn". Every 
"product_card?prod_id=nnn" file contains an HTML-document with title, keywords, 
product description and price). And certainly there are appropriate locations at web 
(http://www.blabla.ru/perl-cgi/product_card?prod_id=nnn)

- making indexer.conf (it inserts necessary Category-tag value)
- runs indexer.

But here is a problem with deleting old products from index-base.
Indexer leaves all goods or deletes goods which were successfully indexed for previous 
categories.

How should i do it? Thanx.

I'll post a russian version of this message in next message.


Reply: 

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