lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saurabh Dani" <>
Subject re: How to use a field for date/time range searches
Date Tue, 03 Oct 2006 12:46:00 GMT


This is not the exact answer to your original question, but Otis had a "bookmark" / "tag"
on one those Internet bookmark boards for efficient date range searches in large indexes.
I found it once while searching for date range queries on Google, but could not find it again.
If you can find that link somehow, it really has some very good information on fast searches
when searching for a date range.



Return-Path: <>
Tue Oct 03 04:21:24 2006
Received: from [] by with SMTP;
Tue, 3 Oct 2006 04:21:24 -0700
Received: (qmail 65315 invoked by uid 500); 3 Oct 2006 11:21:22 -0000
Received: (qmail 65268 invoked by uid 99); 3 Oct 2006 11:21:22 -0000
Received: from (HELO (
by (qpsmtpd/0.29) with ESMTP; Tue, 03 Oct 2006 04:21:22 -0700
Received: from [] ([]
by (ecelerity r(12930)) with ESMTP
id 10/6B-29668-78742254 for <>; Tue, 03 Oct 2006
04:21:08 -0700
Received: (qmail invoked by alias); 03 Oct 2006 11:18:00 -0000
Received: from (EHLO MOB217) []
by (mp032) with SMTP; 03 Oct 2006 13:18:00 +0200
Mailing-List: contact; run by ezmlm
Precedence: bulk
List-Help: <>
List-Unsubscribe: <>
List-Post: <>
List-Id: <>
Delivered-To: mailing list
X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=
X-Authenticated: #6569119
From: "Torsten Rendelmann" <>
To: <>,
Subject: How to use a field for date/time range searches
Date: Tue, 3 Oct 2006 13:17:57 +0200
Message-ID: <003901c6e6dd$94435780$>
MIME-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
Thread-Index: AcbkmNSCd6zYC1D0Tt67JW1M+LO7PAAABQWQAJDYRrA=
In-Reply-To: <018a01c6e498$f655d520$6401a8c0@aroushlt>
X-Y-GMX-Trusted: 0
X-Rcpt-To: <>
X-SmarterMail-Spam: SPF_Pass 

Hello all,

I try to figure out how to use a field for date/time range searches.
As the docs (
I used to add this line within my Lucene.Document Create() function:
doc.Add(Field.Keyword("date", item.Date));
Where item.Date is a DateTime object containing a UTC(!) date and time.

I used Luke to test the search: I provided "date:{20060901 TO 20061001}"
the search input tab, but no result is returned (but there must be
My questions:

Q1. Is my query correct?
Q2. Do I have to change impl., to get it work?
Q3. What happens with the provided DateTime? Hopefully there is no
TimeZone.UtcOffset() substraction handling inside?
Q4. How do I search for time? E.g. an item posted in the last hour...

The version I used is


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