lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nick19701 <>
Subject Find docs close to a date
Date Mon, 02 Apr 2007 18:06:52 GMT

Let me use this date for example:

My docs have a date field and I need to find the two docs with
a date which is closest to 2007-03-25T17:22:00Z.

I use the following two queries to accomplish the task.

date:{* TO 2007-03-25T17:22:00Z};date desc&start=0&rows=1
date:{2007-03-25T17:22:00Z TO *};date asc&start=0&rows=1

However I need to make a lot of queries like these. I'm wondering if
these kinds queries are expensive. Are there better alternatives for my
View this message in context:
Sent from the Solr - User mailing list archive at

View raw message