Summarise which fields contain data for a given Solr query -
this best asked using example.
an electronics store's solr index has documents cameras, printers, routers, phones, etc. there fields present in docs, , absent in others. example printers have dpi_i field, cameras might have sensor_size_f , megapixels_i field, , on.
is there way summary of presence/absence of data in all fields based on results of given query? faceting on fields, paying special attention number of missing values?
so when search "epson", result tell dpi_i field highly populated (maybe 90%, i'm guessing) , sensor_size_f , megapixels_i fields 0% populated (at least current products - looks used make nice rangefinder camera 10 years ago...).
thanks!
by of i'd want use stats component (https://cwiki.apache.org/confluence/display/solr/the+stats+component).
just add stats=true&stats.field=dpi_i&stats.field=sensor_size_f
(and on) , should go. calculate missing
/ count
fields.
Comments
Post a Comment