koniu / recoll-webui

web interface for recoll desktop search
275 stars 55 forks source link

Set different Recoll-Database #30

Closed Percent01 closed 10 years ago

Percent01 commented 10 years ago

Hi everybody!

Is there any chance to set which recoll database use recoll-webui? For example the default recoll database located under /root/.recoll/

I would like to set different database location.

Thank you for your cooperation.

ghost commented 10 years ago

Setting RECOLL_CONFDIR in the server's environment should work.

Percent01 commented 10 years ago

Thank you the answer, but I would like to run more recoll-webui in parallel. If I modify "RECOLL_CONFDIR" and start recoll-webui on different port, the program still use same database.

ghost commented 10 years ago

How are you running the webui ? The following works for me:

RECOLL_CONFDIR=somedirectory webui-standalone -p someport 
Percent01 commented 10 years ago

I start with this command, and this use /root/.recoll database python ./webui-standalone.py -p I would like to start another webui-standalone simultaneously, where I can use different database

There is no "RECOLL_CONFDIR" local environment - printenv

ghost commented 10 years ago

Please try what I say. The following command line sets RECOLL_CONFDIR only for the command which follows (man sh for more explanations):

  RECOLL_CONFDIR=somedirectory python ./webui-standalone.py -p someport

Please try it instead of discussing why it would not work.

Percent01 commented 10 years ago

It works :) RECOLL_CONFDIR= python < webui-standalone location> -p < port>

You are awesome ;)