Author: Martin
Email: [EMAIL PROTECTED]
Message:
Hello neha,

I know it's been a while since you posted this but did you ever get this working ?  
I'm trying the same thing without much success so far.

I added a second Server section at the bottom of my working config and specified 
HTDBList, HTDBDoc, etc. exactly as shown in the sample htdb.conf file, substituting my 
values as appropriate.  The indexer adds the URL for the Server into the database, but 
errors out with the message "Query was empty".

I tracked this down to the UdmHTDBGet call in indexer.c.  It appears that the CurSrv 
variable still contains values from the first server I defined, so htdb_list and 
htdb_doc are null.

As a more general question, can someone explain how multiple servers are supposed to 
be configured ?  Does the Server statement BEGIN or END a server definition or am I 
completely missing something ?

Thanks in advance.

> hi,
> 
> 
> here is my configuration file:it is working for file system as well as for database 
>search but one at a time.can anybody tell me what i need to do to combine these two 
>features of mnogosearch.
> either it will search through html files or through databse.
> 
> 
> DBAddr  mysql://username:password@localhost/mnogosearch/
> 
> DBMode  single
> Server  http://www.servername.ch/d/
> 
> 
> # Allow some known extensions and directory index
> Allow \.php$ \.html$ \.htm$ \.shtml$ \.txt$ \/$ 
> # Disallow everything else
> Disallow .*
> 
> Server        http://www.servername.ch/beta/neha/maedchentreff/
> HTDBList SELECT 
>concat("http://www.servername.ch/beta/neha/maedchentreff/poesie_anschauen.php?UID=",UID)\
>  FROM mnogosearch.PoesieAlbum 
> 
> # Documents which will be generated for each "htdb:/XXX"  documents
> # where XXX is 'messages' table PRIMARY KEY value.
> 
> HTDBDoc SELECT concat(\
> 'HTTP/1.0 200 OK\\r\\n',\
> 'Content-type: text/plain\\r\\n',\
> '\\r\\n',\
> name,'\\n'\
> ) \
> FROM PoesieAlbum WHERE UID='$1'
> 
> Server htdb:/
> Realm  http://www.servername.ch/beta/neha/maedchentreff/poesie_anschauen.php?UID=*
> Alias  http://www.servername.ch/beta/neha/maedchentreff/poesie_anschauen.php?UID= 
>htdb:/
> 
> 
> 
> 
> 
> 

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

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

Reply via email to