Hi. I'm trying to figure out how to do a particular sort in Solr (1.3).
I have an index for a product which includes a startDate field and an endDate field. In the UI we define a product as "active" if the current date is within the startDate, endDate range. Now we can filter search results to only include active products by including this in the query: +startDate:[*+TO+2010-04-27T21:38:24Z] -endDate:[*+TO+2010-04-27T21:38:24Z] (where our query creation code inserts in the current time). What I can't quite figure out is how, when including all results, to sort the results by whether they are "active" or not. In other words, have all products within the date range appear before the products outside the date range (or vice versa). -- View this message in context: http://lucene.472066.n3.nabble.com/Sort-by-membership-of-range-query-tp760666p760666.html Sent from the Solr - User mailing list archive at Nabble.com.