Newbie: document count and facets

2011-10-10 Thread kenneth hansen
hello, I'm quite new to Solr and are trying to get a grip on it all. I'm currently reading and enjoying the "Solr 1.4 Enterprise Search Server" book. I'm trying and failing and need some advise on the following. given the following schema for "subscriptions"

RE: Newbie: document count and facets

2011-10-11 Thread kenneth hansen
ok, I'll try to answer this myself. Would this be correct to give me the data I need? http://localhost:8080/solr-3.3.0/select/? q=accountId:12345 &start=0 &rows=10 &indent=on &facet=true &facet.date=createdDate &f.createdDate.facet.date.start=NOW/DAYS-1MONTHS &f.createdDate.facet.date.end=NOW

Faceting with null dates

2011-12-14 Thread kenneth hansen
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

RE: Faceting with null dates

2011-12-22 Thread kenneth hansen
yes, I see that my question was a bit confusing. But thanks for your answers. I will try to clarify a bit. I query on a date field, validToDate. The value for this field is not present for 99% of the documents. What I would like to get is 1) the number of documents for a given date range R1 t