Git Product home page Git Product logo

recoll-webui's People

Contributors

biolds avatar dsheyp avatar jobe451 avatar jronallo avatar koniu avatar medoc92 avatar yvesf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

recoll-webui's Issues

Settings page (relative paths)

Hi,

First of all thanks for such a wonderful script!

I'm trying to install it as a wsgi under apache and encountered a problem with relative paths. I'm running it as http://webserver/recoll not as http://webserver. Three changes should be made:

  1. views/settings.tpl
    <a href="./"><input type="button" value="Cancel"></a>
    insetad of
    <a href=".."><input type="button" value="Cancel"></a>

  2. views/search.tpl
    <a href="./" tabindex="-1"><input type="button" value="Reset"></a>&nbsp;
    instead of
    <a href=".." tabindex="-1"><input type="button" value="Reset"></a>&nbsp;

  3. webui.py
    bottle.redirect('./')
    instead of
    bottle.redirect('..')
    in def set():

Your recommendations about apache/wsgi configuration are welcome as well.

Nika

CGI Guidelines

Hi

I am looking to use the python scripts via CGI only (not WSGI or FCGI).
Any change you can give some pointers on how to set this up?

thx!

Safe to face the internet?

Hi, is this py server safe to face toward the internet? And/or, what steps would you take before publicly sharing this resource/port to the Net?

Thanks,
Chris

PS - nevermind... PY bottle server way too slow. :(

Recoll WebUI returns 0 results when search folder other than <all> is chosen

Hi! Marvelous work on this project, I just discovered recoll & webui and am absolutely delighted at its power.

I discovered something odd today, though, while using the webUI: when constraining the search scope to a subdirectory (rather than ), the search will return 0 results, in every case, in every directory. The Recoll search GUI itself will return expected results.

Searching for the same term from will properly find the search terms, even from within the directories that return 0 when searched exclusively.

I've reinstalled both, just in case there was a problem there somewhere, but the problem is easily duplicated.

I'm using Fedora 20 x64, Recoll 1.19.19 + Xapian 1.2.15. WebUI version was whatever was up on January 18th, about 12 GMT. The web browser is Firefox 25.0. I also tried it in chrome 32.0.1700.76 m with the same results.

The searched material is on a CIFS share mounted on the Fedora machine. WebUI is started from the same account that owns the index (non-root).

Here is a comparison of a search for "balance" in a folder called ENG Doc Control/Docs. The base of the searched directories is mw-ksb.

recoll query:
(((balance:(wqf=11) OR balancing OR balanced OR balancer OR balances OR balancers) AND (XP PHRASE 4 XPmw-ksb PHRASE 4 XPENG Doc Control PHRASE 4 XPDOCs)))

webui query:
"GET /results?query=balance&dir=mw-ksbENG+Doc+ControlDOCs&after=&before=&sort=relevancyrating&ascending=0&page=1 HTTP/1.1" 200 9665

The web query in this example returned 0 results, while the Recoll UI, which was constrained to the same subfolder, returned 239.

Here's what the webUI returns when set to for the same search term:

"GET /results?query=balance&dir=%3Call%3E&after=&before=&sort=relevancyrating&ascending=0&page=1 HTTP/1.1" 200 70209

Please let me know if I can provide more information. Your help is greatly appreciated!

Not sure where esle to post this...so, can someone explain this in some more depth, I am not sure how to work around this

Can't open files when Recoll WebUI is running on a server

By default links to files in the result list correspond to the file's physical location on the server. If you have access to the file tree via a local mountpoint or eg. ftp/http you can provide replacement URLs in the WebUI settings. If in doubt, ask your network administrator.

Recoll WebUI is running on server, on debian. No local mount points exist on the windows machines.

abstract highlighting to work with stemming

Replace dummy highlighting with one using makedocabstract().

In recent Recoll versions (from 1.18.2 I think), the Query class has a
makedocabstract() method which can perform proper highlighting. See
http://www.lesbonscomptes.com/recoll/usermanual/RCL.PROGRAM.API.html#RCL.PROGRAM.API.PYTHON

The Query method replaces and augments the Db one (which still exists).

File name search

Hi!

In Recoll I can search for only the filename/folder. Is there a way to do only that in the webgui? Right now if I search for *.pdf, it will match regex for the characters within files instead of the filenames themselves (which is a great function). But I want to be able to choose to search only for filenames. Any ideas?

Thanks in advance!!

How to open files directly from browser?

I am able to open the folder location from the recoll webui interface, but I am not able to open the local file. Instead, the dialog gives me the option to download the file, which isn't what I want. I've tried this in both Chrome (using the extension) and Firefox (using the user.js) file. Am I missing something?

HTTPS connection

Hello everybody,

Are there any solution to use recoll-webui on HTTPS connection.
I only use with self-signed ssl certificate and secure connection.

Really thank for the reply!

Missing file extension when downloading .docx files

Ok, just another one. When I download (via "Open/Download) a .docx document, I get the file without the file extension. The same happens with .doc files.

for example: "Document.docx" -> "Document"

In the case of open document files (.odt), they just don't work. The browser cannot find the file, as if the URL was wrong.

thanks in advance!

errors after fresh install

Hello,

I have just found this interesting project and planning to use it in combination with recoll to setup a server-side search engine for our PDF and Office files.

I have pulled the files from git and gave the webgui-standalone.py a try but run into the following issue:

  • the search-page gets loaded in the browser as expected, but when I enter a search text and initiate a search the following error is shown:

Error 500: Internal Server Error

Sorry, the requested URL 'http://10.44.121.220:8080/results?query=&dir=%3Call%3E&after=&before=&sort=relevancyrating&ascending=0&page=1' caused an error:

Internal Server Error
Exception:

EnvironmentError("Configuration could not be built:\nExplicitly specified configuration directory must exist (won't be automatically created). Use mkdir first",)
Traceback:

Traceback (most recent call last):
File "/var/lib/recoll/recoll-webui/bottle.py", line 744, in _handle
return route.call(*_args)
File "/var/lib/recoll/recoll-webui/bottle.py", line 1479, in wrapper
rv = callback(_a, *_ka)
File "/var/lib/recoll/recoll-webui/bottle.py", line 2850, in wrapper
result = func(_args, **kwargs)
File "/var/lib/recoll/recoll-webui/webui.py", line 243, in results
res, nres, timer = recoll_search(query)
File "/var/lib/recoll/recoll-webui/webui.py", line 182, in recoll_search
query = recoll_initsearch(q)
File "/var/lib/recoll/recoll-webui/webui.py", line 159, in recoll_initsearch
db = recoll.connect(config['confdir'])
EnvironmentError: Configuration could not be built:
Explicitly specified configuration directory must exist (won't be automatically created). Use mkdir first

I have started the webgui with the same user which created the recoll index files.
Linux version is Ubuntu Trusty 14.04.2, recoll is 1.20.X from the ppa.

Does anyone know what could be the issue ?

Thank you for your kind help.

regards

Andreas

Internal Server Error (ubuntu 13.04)

I've tried to use this in Ubuntu 13.04 (Recoll 1.19.2-1ppa1raring1 install via PPA), but I get the following error:

Internal Server Error

Exception:

KeyError('topdirs',)

Traceback:

Traceback (most recent call last):
File "/home/andrei/Downloads/recoll-webui/bottle.py", line 744, in _handle
return route.call(*_args)
File "/home/andrei/Downloads/recoll-webui/bottle.py", line 1479, in wrapper
rv = callback(_a, *_ka)
File "/home/andrei/Downloads/recoll-webui/bottle.py", line 2850, in wrapper
result = func(_args, **kwargs)
File "/home/andrei/Downloads/recoll-webui/webui.py", line 212, in main
config = get_config()
File "/home/andrei/Downloads/recoll-webui/webui.py", line 118, in get_config
config['dirs'] = shlex.split(rc['main']['topdirs'])
KeyError: 'topdirs'

Problem with running webui-standalone.py in windows

I got recoll-webui and ran webui-standalon.py on cmd, but I get this error. Traceback (most recent call last):
File "./webui-standalone.py", line 3, in
import webui
File "/media/daten/download/recoll-webui/webui.py", line 6, in
import recoll
ImportError: No module named recoll
Does this work on Windows? I'm not sure about this. Clarify

Query to recoll string, foldert name utf-8

If a folder name is not ascii and the user selects this folder, then a UnicodeError exception happens, This can be easily fixed by replacing line 151 of webui.py with

qs += " dir:"%s" " % q['dir'].decode('utf-8')

localhost too slow

Hey koniu, thanks for creating this great tool.
I'm using the webui with recoll within a virtualbox hosted lubuntu.
Both latest versions. Problem is that compared to the recoll client the webui is significantly slower,
takes maybe 10x times to present the search results.
Any way to speed it up?
Thanks in advance.
sklpns

Error 500: Internal Server Error - After !!202!! search

I use Recoll 1.19.14 with XapianDB 1.2.17

I start webui this command: "nohup python ./webui-standalone.py >/dev/null 2>&1&"

I get this error message after !!202!! searching (I test many times and I always get error message after 202. webui search):

Sorry, the requested URL 'http://X.X.X.X/results?query=asdf&dir=%3Call%3E&after=&before=&sort=relevancyrating&ascending=0&page=1' caused an error:

Internal Server Error

Exception:

EnvironmentError("Can't open index",)

Traceback:

Traceback (most recent call last):
File "/opt/recoll/recoll-webui-master/bottle.py", line 744, in _handle
return route.call(*_args)
File "/opt/recoll/recoll-webui-master/bottle.py", line 1479, in wrapper
rv = callback(_a, *_ka)
File "/opt/recoll/recoll-webui-master/bottle.py", line 2850, in wrapper
result = func(_args, **kwargs)
File "/opt/recoll/recoll-webui-master/webui.py", line 241, in results
res, nres, timer = recoll_search(query)
File "/opt/recoll/recoll-webui-master/webui.py", line 180, in recoll_search
query = recoll_initsearch(q)
File "/opt/recoll/recoll-webui-master/webui.py", line 157, in recoll_initsearch
db = recoll.connect(config['confdir'])
EnvironmentError: Can't open index

cant start recoll-webui

hi there

when i'm trying to start the webui on my debian squeeze i get this message:

python ./webui-standalone.py
Traceback (most recent call last):
File "./webui-standalone.py", line 3, in
import webui
File "/media/daten/download/recoll-webui/webui.py", line 6, in
import recoll
ImportError: No module named recoll

is it my fault?

cu
netlord

Preview/Download is absent

Hello koniu,

I've installed recoll & the webui on Debian 7 and for the most part, it works right out of the box. In a previous installation on a different machine, I had the ability to preview or download files via the browser. Upon mousever, a blue Preview/Download link would would appear next to the search result.

This newest installation finds that element absent. Is there something further that needs doing to enable this, or perhaps I've missed a step documented somewhere...?

Thank you for your help,
h

Different results in webui and recoll

I've been testing the webui for a while, and I realised that the search results differ from what I get in recoll. I guess that recoll-webui doesn't use language stemming like recoll does.

These are the differences between the two queries. First recoll's query:

Query details: (((neuropsychological OR neuropsychology:(wqf=11) OR neuropsychologic OR neuropsychologically OR neuropsychologi OR neuropsycholog) AND (alcohol:(wqf=11) OR alcoholism OR alcoholics OR alcoholicos OR alcoholismo OR alcoholic OR alcoholica OR alcoholico OR alcoholicas OR alcohola OR alcoholic's))) 

(note that my recoll's query includes both english and spanish words, because the two languages are configured in recoll.)

And this is recoll-webui's query:

results?query=neuropsychology+alcohol&dir=<all>&after=&before=&sort=relevancyrating&ascending=0&page=1

Also, I feel that the results should be sorted by relevance by default (instead of being sorted by date)

Problem with running webui-standalone.py

I have downloaded and unpacked "recoll-webui-master.zip" and I try to start the standalone version by running the command ./webui-standalone.py on a bash command line, but I receive the following output:
Traceback (most recent call last):
File "./webui-standalone.py", line 4, in
import webui
File "/home/eichner/Desktop/recoll-webui-master/webui.py", line 23, in
import recoll
ImportError: No module named recoll
I have also tried adding the command line arguments "-a" and "-p", but that does not resolve the issue. What do I do wrong? System information: recoll 1.13.7 + Xapian 1.2.22 are running successfully on a machine with Linux Mint 18.3 (64bit) and Mate 1.18.0 (Linux Kernel 4.10.0-38-generic x86_64).

I have just seen that a similar issue was posted long ago. The solution seems to have been to remove and reinstall python. I have python version 2.7.12 installed on my system. I would rather not remove it because I am afraid that this may lead to unwanted side effects. Is there another way to fix this?

Installation

Hi, sorry for the newbie question, however I have trouble to run it.
1st. I did install phyton 2.7.5
2nd I've downloaded the zip file and extracted it (in the downloads directory)
3rd I've tried to run in terminal webui-standalone.py and I am getting following message : Failed to execute child process "/home/user/Downloads/recoll/webui-standalone.py" (No such file or directory)
Any Idea what I am doing wrong? Recoll is running and successfully indexing..

-> Ubuntu 12.04 & Cinamon

Installation - Server error - Recoll compat: PLEASE READ THIS

If the server gives you an error on startup like the following:
ImportError: No module named recoll
or:
AttributeError("'module' object has no attribute 'connect'",)
or:
AttributeError: 'recoll.Query' object has no attribute 'rowcount'

You probably have a Recoll version compatibility issue.

The main branch in koniu/recoll-webui is currently compatible only with recoll versions 1.18.2 and newer.

If you are running Recoll 1.18.1 or older, please use the code in https://github.com/medoc92/recoll-webui

problems with anchored searches

I'm doing an anchored search (see manual for anchored searches ) like the following:

filename:"^My_File_Name" ext:pdf Hello dir:"home/abel/documents/my folder"

It will result in crashing the docker container where my recoll and recoll-webui runs. While the following works:

filename:"My_File_Name" ext:pdf Hello dir:"home/abel/documents/my folder"

The only difference is the ^ in front of the file name.

I'm not sure whether it is webui or recoll itself that produces the crash.

hide web interface options

Hello, I'm using recollWebUI and would like to know how to lock or hide the "settings" and "Dates" button of the web interface. I'm starting programming.

best regards!

Set different Recoll-Database

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.

SystemD/NGINX documentation

I just got everything set up in a stack similar to this, some documentation would be really helpful for those that would like to set this up in a similar environment.

I can get a pull request modifying the readme to include these, as well as a uwsgi daemon ini thingy, if you'd like.

Option to disable Settings

To be able to serve a full-text searchable PDF download server, It would nice to have a config file where I can disable the settings page.

Updating index from webUI

This is neither a bug nor a request, it is just a suggestion.

I think it would be convenient to have an option to update the index from the settings menu, for those cases when recoll is running in a headless server (and a cron job is not scheduled). It would allow users to have more control over their database without the need of running the client.

Option to hide Subdirectories in „Folder“-Filter

Thank you for this neat little tool!

I have two top directories and many many subfolders within. This results in a lot of scrolling to filter for one of the two top directories.

I would appreciate an option to only show the top directories in the filter dropdown.

How to open mail attachments from search results?

Though recoll webui shows indexed mail attachments from maildir files as seperate search results, the link references the maildir file itself. Is it possible somehow to download only the attachment from the search result rather than the raw maildir file?

Is there some "decode attachment from maildir file to temp file and deliver the temp file to the user" procedure already implemented in recoll webui similar to the recoll desktop application and I just missed it in the readme or in the settings or isn't such a feature implemented (yet).

"Folders" feature should expand tilde

tilde is expanded in recoll.conf but not by the 'Folders' code. The latter does not work if topdirs entries begin with tilde (as far as I can see).

Indexed Files remain in webui after deleting them on harddisk

The topdirs config entry points to local folder on my raspberry-pi (jessie). These folder is the mountpoint to my nas.
Ocrmypdf creates searcheable pdf's and stores them to the local folder, which is the mountpoint. A cronjob calls recollindex -s german, everything is fine.
Now i'm going to delete (or rename) a pdf on my nas. A new call to recollindex -s german will not delete (rename) the entry on the webui, only recollindex -z -s german solves the problem. But this takes much time to reindex.

What can i do to solve this problem?

AttributeError: 'module' object has no attribute 'connect'

I have tried to setup the recoll-webui on a CentOS 6.x server with python 2.6.6 installed and each time I am executing a search query through the WSCGI interface I get:

[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20] Traceback (most recent call last):
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]   File "/var/www/html/recoll-webui.home/bottle.py", line 744, in _handle
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]     return route.call(**args)
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]   File "/var/www/html/recoll-webui.home/bottle.py", line 1479, in wrapper
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]     rv = callback(*a, **ka)
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]   File "/var/www/html/recoll-webui.home/bottle.py", line 2850, in wrapper
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]     result = func(*args, **kwargs)
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]   File "/var/www/html/recoll-webui.home/webui.py", line 243, in results
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]     res, nres, timer = recoll_search(query)
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]   File "/var/www/html/recoll-webui.home/webui.py", line 182, in recoll_search
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]     query = recoll_initsearch(q)
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]   File "/var/www/html/recoll-webui.home/webui.py", line 159, in recoll_initsearch
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20]     db = recoll.connect(config['confdir'])
[Thu Oct 01 22:46:14 2015] [error] [client 192.168.0.20] AttributeError: 'module' object has no attribute 'connect'

No previews in search results

Love the screenshot, which is why I spent the last 2 hours trying to decipher the error codes and helper crap. Anyway, all good, it now indexes doc, docx, rtf without spitting crazy errors at me.

However, the results display no context whatsoever. It's like a blind grep that only spits file names back. I really, really wanted that text preview with a context. How do I get that? The settings say it should do it.

Python3 port

I've been using the script for a couple of days in a docker container. I unfortunately have to install python 3. recoll-webui is not working out of the box with it. Tried some fast cheats... but it did not help.
Maybe you have some time to port it to Python3! Please!
BR
Viktor

changing fields displayed in search results (theming?)

it seems to be pulling the info from the " <meta name="Author"" tag and displaying it.
Unfortunately that is rarely set to anything useful and need to remove it from the result listing. I don’t mind it being search-able, I just don’t want it listed in the search results.

Know this is more of a request, but if you can tell me where in the code to modify I will just do it there till you guys get around to making an option for this.

Cannot Download/Open files with special characters in the filename

The title says it all. I have several files which include diacritical marks (àáüïè·ó...), and I am unable to open them from recoll-webui (Error code: ERR_FILE_NOT_FOUND). They work fine in the standard Recoll interface.

Examples of filenames that cause that error are:

  • "Clozapina. Història i característiques.pdf"
  • "Resum projecte pràcticum.odt"
  • "futur a nivell col·lectiu.odt"

It seems to affect all kinds of file formats and extensions.

Tell me if you can't reproduce the error

(Recoll 1.19.3 in Debian 7. Index was just rebuilt from scratch)

PS: This is what appears in recoll-webui console

Traceback (most recent call last):
  File "/root/recoll-webui-master/bottle.py", line 744, in _handle
    return route.call(**args)
  File "/root/recoll-webui-master/bottle.py", line 1479, in wrapper
    rv = callback(*a, **ka)
  File "/root/recoll-webui-master/webui.py", line 307, in edit
    'attachment; filename=%s' % os.path.basename(path)
  File "/root/recoll-webui-master/bottle.py", line 1692, in __setitem__
    def __setitem__(self, key, value): self.dict[_hkey(key)] = [str(value)]
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb7' in position 39: ordinal not in range(128)
192.168.1.130 - - [15/Sep/2013 12:40:36] "GET /edit/46?sort=relevancyrating&before=&query=odt&after=&page=2&dir=%3Call%3E&ascending=0 HTTP/1.1" 500 1800

UnicodeDecodeError - Error 500

Hi,

I get his error message, when I would like to search something in specific directory. (the directory include special eastern europe character)

Error 500: Internal Server Error
Sorry, the requested URL 'http://xxxxxx.com/results?query=&dir=search_directory%2FPodiv%C3%ADnsk&after=&before=&sort=relevancyrating&ascending=0&page=1' caused an error:

Internal Server Error
Exception:

UnicodeDecodeError('ascii', ' dir:"output/Podiv\xc3\xadnsk" ', 45, 46, 'ordinal not in range(128)')
Traceback:

Traceback (most recent call last):
File "/Desktop/recoll/recoll-webui/bottle.py", line 744, in _handle
return route.call(*_args)
File "/Desktop/recoll/recoll-webui/bottle.py", line 1479, in wrapper
rv = callback(_a, *_ka)
File "/Desktop/recoll/recoll-webui/bottle.py", line 2850, in wrapper
result = func(_args, **kwargs)
File "/Desktop/recoll/recoll-webui/webui.py", line 240, in results
qs = query_to_recoll_string(query)
File "/Desktop/recoll/recoll-webui/webui.py", line 151, in query_to_recoll_string
qs += " dir:"%s" " % q['dir']
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 45: ordinal not in range(128)


I modified the pasted URL.

Apache WSGI documentation improvement

Hi,
thanks for producing this UI!

To make it work with apache I had to create a new virtual host since when I ran it as http://server/recoll the search would link the result to http://server/result... and not http://server/recoll/result.

Also I needed to add "Require all granted" in the directory context.
Running with apache 2.4.10 on Debian 8:

<VirtualHost *:80>
        ServerName volltextsuche
        DocumentRoot "/opt/recoll-webui-master/"
        CustomLog "/var/log/apache2/recoll_access.log" "%h %l %u %t \"%r\" %>s %b"
        ErrorLog "/var/log/apache2/recoll_error.log"
        ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var

        # recoll volltextsuche webui
        WSGIDaemonProcess recoll user=www-data group=users threads=5 display-name=%{GROUP} python-path=/opt/recoll-webui-master/
        WSGIScriptAlias / /opt/recoll-webui-master/webui-wsgi.py
        <Directory /opt/recoll-webui-master/>
                WSGIProcessGroup recoll
                Order allow,deny
                allow from all
                Require all granted
        </Directory>
</VirtualHost>

I also had an issue with the provided bottle webserver when trying to open a file with spaces in the filenames but I cannot reproduce it now. I remember it said permission denied in the logfile but the permissions are correct.

'recoll.Query' object has no attribute 'rowcount'

Running the painfully slow PY standalone, upon running a search, it answers with 500 internal server error and the below:

Note that I can run recoll -t mysearch from the command line and see the proper results. So far, the "install" is that I copied this project's files into ~/.recoll/ directory and evoked the standalone from the command line while in the ~/.recoll/ directory.

I can open port 8080 and the folder dropdown shows the folders I setup recoll to index upon...

Traceback (most recent call last):
File "/home/ccw/.recoll/bottle.py", line 744, in _handle
return route.call(*_args)
File "/home/ccw/.recoll/bottle.py", line 1479, in wrapper
rv = callback(_a, *_ka)
File "/home/ccw/.recoll/bottle.py", line 2850, in wrapper
result = func(_args, **kwargs)
File "/home/ccw/.recoll/webui.py", line 243, in results
res, nres, timer = recoll_search(query)
File "/home/ccw/.recoll/webui.py", line 183, in recoll_search
nres = query.rowcount
AttributeError: 'recoll.Query' object has no attribute 'rowcount'

Not finding anything when MIME type is defined in recoll.conf

Hello!

I'm using webui + recoll in a jail on my FreeNAS server.
I don't need to index file contents, so I enabled 'indexallfilenames' in recoll.conf and i set 'indexedmimetypes' to text/calendar.

Following recoll's documentation this enables recoll to index all filenames, but no contex, besides the content of text/calendar, but that doesn't matter because I have no calendar files.

So this creates an index conatining only file names.
But when I try searching the index with webui. it won't find anything.
Without setting 'indexedmimetypes' it's working fine, but of course also contents of all known filetypes are indexed, thus making the index process lengthy and resource intensive.

I can see, that the indexing by recoll itself seems to be working fine, because directly opening tha xapiandb files shows me all the filenames.
But there has to be a reason, why webui won't show index filenames with no content.

Could you fix this please?

Thank you :)

Cannot Download/Open when HTML inside ZIP

Hi,

I found another problem. When I click on "Download/Open" on a HTML document inside a ZIP file, instead of downloading or showing the html, I get an error message:

Error 500: Internal Server Error

Sorry, the requested URL 'http://server:8080/edit/8?query=hello&dir=%3Call%3E&after=&before=&sort=relevancyrating&ascending=0&page=1' caused an error:

Internal Server Error

Exception:

AttributeError('interntofile failure',)

Traceback:

Traceback (most recent call last):
  File "/root/recoll-webui-master/bottle.py", line 744, in _handle
    return route.call(**args)
  File "/root/recoll-webui-master/bottle.py", line 1479, in wrapper
    rv = callback(*a, **ka)
  File "/root/recoll-webui-master/webui.py", line 304, in edit
    path = xt.idoctofile(doc.ipath, doc.mimetype)
AttributeError: interntofile failure

Sorry for keeping you busy, and thanks in advance!

Internal Server Error | File contains parsing errors: <???>

I was going to try to code a simple webserver for Recoll, which is a great tool, when a quick google search showed me that you had the same idea before me. Great then!

Anyway, I tried your webserver, but it doesn't work for me. Just going to http://localhost:8080 shows a "Error 500: Internal Server Error". I suspect it might be caused by the use of non-international characters (like àèíóóú). Here it is content of the error:

Exception:

File contains parsing errors: <???>
    [line 13]: '"/home/user/Documents/Apunts/Llic. Psicologia" "/home/user/D\\\n'
    [line 14]: 'ocuments/Apunts/M\xc3\xa0ster en Psicologia Cl\xc3\xadnica i de la Salut\\\n'
    [line 15]: '" /home/user/Documents/eBooks/Psico /home/user/Documents/eBo\\\n'
    [line 16]: 'oks/Psicologia\n'
    [line 19]: 'rors .zotero-ft-cache *~ #* bin Cache cache* caughtspam CVS \\\n'
    [line 20]: 'loop.ps recoll.conf recollrc tmp xapiandb\n'

Traceback:

Traceback (most recent call last):
  File "/home/user/Baixades/recoll-webui-master/bottle.py", line 744, in _handle
    return route.call(**args)
  File "/home/user/Baixades/recoll-webui-master/bottle.py", line 1479, in wrapper
    rv = callback(*a, **ka)
  File "/home/user/Baixades/recoll-webui-master/bottle.py", line 2850, in wrapper
    result = func(*args, **kwargs)
  File "/home/user/Baixades/recoll-webui-master/webui.py", line 212, in main
    config = get_config()
  File "/home/user/Baixades/recoll-webui-master/webui.py", line 117, in get_config
    config['confdir'], rc = recoll_get_config()
  File "/home/user/Baixades/recoll-webui-master/webui.py", line 104, in recoll_get_config
    rc_ini.readfp(rc_ini_fp)
  File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ParsingError: File contains parsing errors: <???>
    [line 13]: '"/home/user/Documents/Apunts/Llic. Psicologia" "/home/user/D\\\n'
    [line 14]: 'ocuments/Apunts/M\xc3\xa0ster en Psicologia Cl\xc3\xadnica i de la Salut\\\n'
    [line 15]: '" /home/user/Documents/eBooks/Psico /home/user/Documents/eBo\\\n'
    [line 16]: 'oks/Psicologia\n'
    [line 19]: 'rors .zotero-ft-cache *~ #* bin Cache cache* caughtspam CVS \\\n'
    [line 20]: 'loop.ps recoll.conf recollrc tmp xapiandb\n'

Error 500: Internal Server Error

Hello,

I must have been doing something wrong, but when I try to test the latest version of recoll-webui, after I open the website and do a search, I always get the same error:

Sorry, the requested URL 'http://xxx.xxx.xxx.xxx:8080/results?query=hello&dir=%3Call%3E&after=&before=&sort=relevancyrating&ascending=0&page=1' caused an error:

Internal Server Error


Exception:

AttributeError("'module' object has no attribute 'connect'",)


Traceback:

Traceback (most recent call last):
  File "/home/user/recoll-webui-master/bottle.py", line 744, in _handle
    return route.call(**args)
  File "/home/user/recoll-webui-master/bottle.py", line 1479, in wrapper
    rv = callback(*a, **ka)
  File "/home/user/recoll-webui-master/bottle.py", line 2850, in wrapper
    result = func(*args, **kwargs)
  File "/home/user/recoll-webui-master/webui.py", line 253, in results
    res, nres, timer = recoll_search(query)
  File "/home/user/recoll-webui-master/webui.py", line 193, in recoll_search
    query = recoll_initsearch(q)
  File "/home/user/recoll-webui-master/webui.py", line 177, in recoll_initsearch
    db = recoll.connect(config['confdir'])
AttributeError: 'module' object has no attribute 'connect'

I am using it together with recoll 1.19.5. Is there something I am doing wrong?

Thanks in advance

File extension .zip instead of .pdf when "Downloading/Open"

Hello,

I noticed that when I try to download a pdf document that recoll found inside a zip file, I get a Zip file that cannot be opened. That is because in fact, it is a pdf file.
If I rename that file to .pdf I can open it correctly.

Search Criteria

I noticed that in the Recoll app they have the ability to select results by type -- check boxes for things like media, messages, presentations, spreadsheets, text, all and other. That's rather handy IMHO.

Has anyone ever done that in recoll-webui?

Any thoughts on how to do it? I know very little about python but wouldn't be opposed to trying it if it's not too big of a deal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.