Bug 8677

Summary: Layer index: allow searching the metadata
Product: [Yocto Project Subprojects] Layer Index Reporter: Paul Eggleton <bluelightning>
Component: Layer IndexAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Low CC: akuster, brian.avery, jose.perez.carranza, mingli.yu, randy.macleod, tim.orling, william.lyu
Version: 6.99   
Target Milestone: Future   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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.