-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
[API] Support search by filename #1044
Comments
the filename field isn't really meant to be exposed.. it's just saved as raw bytes in the database to avoid having to care about filesystem encoding. What are you trying to do where filename searches would help ? |
filename is the unique indicator for one item in the file system. I have custom scripts to download things and then tar them to the data folder of LANraragi, and then update metatdatas of these files. I need to known the maps between Now the default title is the filename, but after I update the title from some metadata source, I completely lost the map between one item and its conresponding file. e.g., I want to force update metadata of a item (by providing its filename) |
I am in a similar situation like you, where I use scripts to automatically update the metadata. Currently, there are no maps between
If you don't have the same archives in different paths, you can calculate the |
Yeah I was going to recommend the same, calculating the IDs yourself is probably the easiest path forward here. |
Since custom scripts can directly access files through paths, they should be deployed locally in LRR. If you need to know the mapping between arc_id and path, you can also try accessing Redis directly to obtain information. Reading only data should not affect LRR. |
Now the
/api/search
API seems to search in thetitle
andtags
field.Can you support search by the
filename
field (or add a new parametersfields
to control which fields to use for search)The text was updated successfully, but these errors were encountered: