lucene-solr-user mailing list archives

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

Let me use this date for example:
2007-03-25T17:22:00Z

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
task?
-- 
View this message in context: http://www.nabble.com/Find-docs-close-to-a-date-tf3507295.html#a9795867
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message