nextcloud / files_fulltextsearch

🔍 Index the content of your files
GNU Affero General Public License v3.0
59 stars 30 forks source link

Include file attributes on fulltextsearch result #143

Open AlvaroBrey opened 2 years ago

AlvaroBrey commented 2 years ago

Since some time this year, the normal Files search provider returns an attributes map that contains information about the file:

{
    "0": {
        "thumbnailUrl": "http://nextcloud.local/core/preview?x=32&y=32&fileId=201",
        "title": "Readme.md",
        "subline": "in Photos",
        "resourceUrl": "http://nextcloud.local/apps/files/?dir=/Photos&openfile=201&scrollto=Readme.md",
        "icon": "/apps/theming/img/core/filetypes/text.svg?v=0",
        "rounded": false,
        "attributes": {
            "fileId": "201",
            "path": "/Photos/Readme.md"
        }
    }
}

This is friendlier to non-web clients, that then don't have to parse the resourceUrl to get this information. Is there any way that these attributes can also be included in the fulltextsearch result?