We have a growing number of assets, and the need to link these assets to entries in our content model. This means users need to be able to easily search for these assets within the Contentful web application.
Sadly the way Contentful currently matches search strings against assets makes the process painful.
For example, we have assets with similar, hyphenated titles like foo-document-2015.pdf
, foo-document-2016.pdf
, foo-document-2017.pdf
, and so on (made up names for this example, but yes, these are asset titles).
On the Media page, and in the “Link existing assets” dialog when editing an entry, I can type a search term to filter assets. However, this doesn’t work how I expect, and I can’t figure out how it actually works.
For example, for a particular document with title foobar-baz-index-2018-q1.pdf
, Contentful finds the asset with the search term title: foobar
, but NOT title: baz
. Perversely, it finds the asset with title: foobar-baz-index-2018-q1.pd
, but not with title: foobar-baz-index-2018-q1.p
or any other substring I have yet found.
My expectation is that Contentful would at least look for the search term as a substring of the filename and/or title of the asset. This doesn’t seem to happen. If I use the title
filter, or the fileName
filter, it still doesn’t help – and asset search doesn’t support MATCHES
operators on these two filters.
Scrolling through page after page of assets is not a scalable answer.
This is frustrating. Any ideas?