-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problems with anchored searches #46
Comments
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 |
Hello. Thanks for answering so fast. I had a look into the recoll log. It says:
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... |
Done. :) what recoll version? |
That was fast :-)
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:
and the above search will only work, when I remove the
while the following will work
I think the dot . of the file extension might be a problem in anchored searches? |
Recoll is probably doing something wrong. Will take a better look next week. |
@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 |
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. |
And thanks for taking the time to study the issue ! |
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.
The text was updated successfully, but these errors were encountered: