Comments (8)
Hello. Not been able to reproduce - we will need a log/traceback from recoll-webui run.
Don't know much about Docker but I'm told you can get logs with docker logs -f <container>
. Assuming that Docker redirects stdout/stderr to the logs, you can run that before you execute your deadly query and you should see a traceback there.
from recoll-webui.
Hello. Thanks for answering so fast.
I had a look into the recoll log. It says:
:4:../common/rclconfig.cpp:454:RclConfig::initThrConf: autoconf requested
:4:../utils/execmd.cpp:330:ExecCmd::startExec: (0|1) sh {-c} {egrep ^processor /proc/cpuinfo | wc -l}
:4:../utils/execmd.cpp:683:ExecCmd::wait: got status 0x0
:4:../common/rclconfig.cpp:506:RclConfig::initThrConf: chosen config (ql,nt): (2, 4) (2, 2) (2, 1)
:4:pyrecoll.cpp:1552:Db_init
:4:../rcldb/rcldb.cpp:756:Db::open: m_isopen 0 m_iswritable 0 mode 0
:4:pyrecoll.cpp:1611:Db_query
:4:pyrecoll.cpp:828:Query_new
:4:pyrecoll.cpp:850:Query_init
:4:../rcldb/rclquery.cpp:176:Query::setQuery:
:4:../rcldb/searchdata.cpp:183:SearchData::toNativeQuery: stemlang [english german german2]
:4:../rcldb/searchdata.cpp:1091:SearchDataClauseDist::toNativeQuery
:4:../rcldb/searchdata.cpp:875:StringToXapianQ:pUS:: qstr ["^My_File_Name"] fld [filename] mods 0x0 slack 0 near 0
To me it seems the request gets through to recoll and I think the problem is on the recoll side. I guess this is something that I'll have to address with the recoll developper...
from recoll-webui.
Done. :) what recoll version?
I won't be able to do much about it this week anyway, but I'll take a look when I get back
from recoll-webui.
That was fast :-)
I think it was version 1.20.5. But I updated now to 1.21.5, and the crashes are gone! But still it doesn't work exactly as I would expect. If I do the following search:
filename:"^My_File_Name" ext:pdf Hello dir:"home/abel/documents/my folder"
with or without the leading ^ it depends on the length of "My_File_Name", whether it finds the correct file or not. I have a file where "My_File_Name" consists of 41 characters, like this:
Andrea_Donacombar_Selenitectos_Feralenes.pdf
and the above search will only work, when I remove the _Feralenes.pdf
part of the filename. Also the following searches will not work
filename:"Andrea_Donacombar_Selenitectos_Feralenes" ext:pdf Hello dir:"home/abel/documents/my folder"
filename:"Feralenes.pdf$" ext:pdf Hello dir:"home/abel/documents/my folder"
filename:".pdf$" ext:pdf Hello dir:"home/abel/documents/my folder"
while the following will work
filename:"pdf$" ext:pdf Hello dir:"home/abel/documents/my folder"
filename:"Andrea_Donacombar_Selenitectos" ext:pdf Hello dir:"home/abel/documents/my folder"
filename:"Selenitectos_Feralenes.pdf" ext:pdf Hello dir:"home/abel/documents/my folder"
I think the dot . of the file extension might be a problem in anchored searches?
May be there is some sort of limitations of filename length?
Or may be there is just something with my installation of recoll and webui. I use it in a debian docker container on a synology nas (see here for the specs of the container).
from recoll-webui.
Recoll is probably doing something wrong. Will take a better look next week.
from recoll-webui.
@dsheyp some good digging there!
I haven't played as far and deep but can confirm similar problematic behaviour on 1.17.3. This is thru both webui and the QT client. What's worse, I accidentally discovered that they both segfault when you enter a $
as a search term.
from recoll-webui.
I'll only comment on the latest versions (1.21 and trunk), 1.20 and 1.17 will not be updated anyway.
What happens is that you are hitting the maximum term length which is set at 40 characters (the whole name without the extension is 41 characters). The trunk code will warn about this, I'm not sure about 1.21, and the warning might not make it through the webui anyway.
One way to go around this is to not enter the _ characters (and/or . for the extension). If you do enter them, recoll tries for a span (compound word) match, and hits the term length limit. If you enter the same query without the glue chars, things work as far as I can see.
This is unfortunate, but I have no idea how to fix it in a reasonably simple way. Using spans has some good aspects (avoiding slow phrase searches for things like email addresses), and some bad, one of which you found out.
Maybe I could revert to a split and phrase search if the span is too long, this needs further study. I'm putting it on the todo list. I guess that this is a recoll issue in any case, and that this can be closed as a webui issue.
from recoll-webui.
And thanks for taking the time to study the issue !
from recoll-webui.
Related Issues (20)
- File name search HOT 1
- query performance CLI vs. webui HOT 3
- WSGI path problems
- Open file in browser without the need for local files. To be used as a service on a server HOT 1
- Recoll Web UI Error 500 (WSGI) HOT 3
- NOTE: A (Python 3) fork is actively maintained here HOT 3
- AttributeError("'NoneType' object has no attribute 'ipath'",) HOT 2
- The koniu repository on GitHub has not been updated for some time
- Permanent locations settings for all users HOT 2
- License missing HOT 1
- Fallback to operation without rclextract fails
- HTTP 500 after saving settings HOT 1
- How to run using https? HOT 1
- linux error trying to run webui HOT 1
- After indexing the first file, webui no longer works HOT 3
- Recoll WebUI for windows server HOT 1
- Recoll WebUi - Need one for mobile HOT 4
- Fails to start with Python 3.10 HOT 1
- except re.error, e: HOT 3
- Any new release is possible or planned? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recoll-webui.