Hi,

I'm indexing one table with this structure:

mnogosearch=# \d searchable_records      
   Table "searchable_records"
 Attribute |  Type   | Modifier 
-----------+---------+----------
 id        | integer | 
 type      | text    | 
 title     | text    | 
 body      | text    | 
 url       | text    | 


and the url is a primary key. the id is a key for each type.
I have used for test two different indexer.conf files and in both
cases is working fine:

---------------test1.conf
DBAddr          pgsql://chiara@localhost/mnogosearch/
DBMode          multi
HTDBList SELECT url FROM searchable_records WHERE type='conferences'

HTDBDoc SELECT ('HTTP/1.0 200 OK\\r\\n'||'Content-type:
text/html\\r\\n'||'\\r\\n'||'<HTML><HEAD>'||'<TITLE>'|| title ||
'</TITLE>' || '</HEAD>\\n'||'<BODY>\\n'|| body || '\n</BODY></HTML>')
FROM searchable_records WHERE id='$1' and type='conferences'

Server htdb:/

Realm  http://site/user/conferences.pcg?id=*

Alias  http://site/user/conferences.pcg?id=  htdb:/

---------------test2.conf
DBAddr          pgsql://chiara@localhost/mnogosearch/
DBMode          multi
HTDBList SELECT url FROM searchable_records WHERE type='jobs'

HTDBDoc SELECT ('HTTP/1.0 200 OK\\r\\n'||'Content-type:
text/html\\r\\n'||'\\r\\n'||'<HTML><HEAD>'||'<TITLE>'|| title ||
'</TITLE>' || '</HEAD>\\n'||'<BODY>\\n'|| body || '\n</BODY></HTML>')
FROM searchable_records WHERE id='$1' and type='jobs'

Server htdb:/

Realm  http://site/user/jobs.pcg?id=*

Alias  http://site/user/jobs.pcg?id=  htdb:/


---------------------------------------------------

If I put them in the same file (as the doc HTDB.txt suggest "You may use
several HTDBDoc/List commands in one indexer.conf with corresponding
Server commands, I have a segmentation fault.

indexer[17252]: [1] URL: htdb:/
indexer[17252]: [1] Server 'htdb:/'
indexer[17252]: [1] Allow by default
Segmentation fault

Where am I wrong?

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

Reply via email to