lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kenneth hansen <kenh...@hotmail.co.uk>
Subject Faceting with null dates
Date Wed, 14 Dec 2011 13:38:15 GMT

hello,I have the following faceting parameters, which gives me some unwanted non-null dates
in the result set. Is there a way to query the index to not give me non-null dates in return?
I.e. I would like to get a result set which contains only non-nulls on the validToDate, but
as I am faceting on non-null values on the validToDate, I would like to get the non-null values
in the faceting result. This response example below gives me 10 results, with 7 non-null validToDates.
What I would like to get is 3 results and 7 non-null validToDate facets. And as I write this,
I start to wonder if this is possible at all as the facets are dependent on the result set
and that this might be better to handle in the application layer by just extracting 10-7=3...
Any help would be appreciated!
br,ken
<code><str name="facet">true</str><str name="f.validToDate.facet.range.start">NOW/DAYS-4MONTHS</str><str
name="facet.mincount">1</str><str name="q">(*:*)</str><arr name="facet.range"><str>validToDate</str></arr><str
name="facet.range.end">NOW/DAY+1DAY</str><str name="facet.range.gap">+1MONTH</str></code>

<result name="response" numFound="10" start="0"><lst name="facet_counts"><lst
name="facet_ranges">  <lst name="validToDate">  <lst name="counts">  <int
name="2011-11-14T00:00:00Z">7</int>

 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message