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 |
|
|
|
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
Post a Comment