Skip to content
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

Search binary_content node by field #1334

Open
brnhffmnn opened this issue Mar 14, 2022 · 0 comments
Open

Search binary_content node by field #1334

brnhffmnn opened this issue Mar 14, 2022 · 0 comments

Comments

@brnhffmnn
Copy link

I'd like to query the /search/nodes API to find a node by filtering on the internal filename.

My usecase: I'm scanning the file system on the upload path. When I find a file, I want to derive from the file name the corresponding node.

I can't seem to find a working query.

Example

I see this file /uploads/0f/da/0fda9c4a910c43a3be1742800026f770.bin and want to get the corresponding node.

Knowing the correct node from the UI, I can query the API at project/nodes/812b3e6d34d1444790d38abb97a323fe and see it contains the matching UUID at fields.binary.binaryUuid:

...
"fields" : {
    "name" : "filename",
    "binary" : {
      "binaryUuid" : "0fda9c4a910c43a3be1742800026f770",
      "fileName" : "filename.jpg",
      "width" : 750,
      "height" : 700,
...

Question

It seems, everything below fields.binary is not indexed and therefor not searchable.

Is there any way (or meaningful workaround) to query nodes based on the binaryUuid field?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant