Bug 8677 - Layer index: allow searching the metadata
Summary: Layer index: allow searching the metadata
Status: NEW
Alias: None
Product: Layer Index
Classification: Yocto Project Subprojects
Component: Layer Index (show other bugs)
Version: 6.99
Hardware: All Multiple
: Low enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-11-11 15:58 UTC by Paul Eggleton
Modified: 2026-04-30 15:34 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2015-11-11 15:58:10 UTC
For the purposes of being able to find layers using certain variables or constructs (so we can potentially see how people are using the system), it would be nice if we could support searching the actual metadata in each layer in the layer index.

I'm assuming we'd use some off-the-shelf full-text indexing solution for this, though I wonder if it would mean we couldn't support regex searches.
Comment 1 Armin Kuster 2019-12-22 20:48:47 UTC
Not sure if this works or if we want to implement this.
Comment 2 Paul Eggleton 2019-12-22 22:25:15 UTC
This has not yet been implemented. I think it would still be useful though. Low/Future correctly reflects the priority.
Comment 3 Tim Orling 2024-02-22 18:59:01 UTC
Our current search is based entirely on what is available in the admin interface and the default REST API coming from Django rest framework https://www.django-rest-framework.org/

Some more capable searches could be done with https://django-filter.readthedocs.io/en/stable/ but that does not come for free. Some additional code would need to be written and would likely be brittle?

There is also some support that would need to be integrated and assumes a Postgres backend, which is not what we are running in production:
https://docs.djangoproject.com/en/5.0/ref/contrib/postgres/search/

Actual full text search would probably need something more like ElasticSearch 
https://django-elasticsearch-dsl.readthedocs.io/en/latest/
which would add additional infrastructure needs (adding an actual Elastic Search or Elastic Stack server/service).
Comment 4 Tim Orling 2026-04-30 15:34:21 UTC
Still valid. Moving to 6.99.