solr attribute values

Feature stored="true" indexed="true" docValues="true"
Purpose Fetch actual field in results Enables search/filtering Enables sorting, faceting, grouping
Access style Row-based Inverted index (term → docs) Columnar (doc → value)
Memory efficient? No (for many fields) Moderate Yes (when used correctly)
Fast filtering? ✅ (especially for large sets)
Fast faceting? ❌ (classic facet is slow) ✅ (modern JSON Facets)
Tree DB Example
  • ogr_geometry_wkt: yes (needed in query results)
  • species: yes (to show in search hits)
  • species: yes (to allow text search)
  • meanht: yes (to filter trees by height)
  • meanht: yes (for sorting/faceting height)
  • species: yes (to facet on tree types)



stored=false

In this definition  <field name="geo" type="location_rpt" indexed="true" stored="false"/>

{ "ogr_fid":"1",     
        "tow_id":"372_TSP81", 
         "woodland_t":"Group of Trees",
         "_version_":1835369034790469632, 
         "ogr_geometry_wkt": "[]"
}

Note there is no "geo", but it is available for geo searches.

Because stored="false" → Solr doesn’t return it in results.  it’s lighter and better for spatial-only use.

Comments

Popular posts from this blog

git journey

Django Journey

github start project