lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Ganyo <scott.ga...@eTapestry.com>
Subject RE: Trying To Understand Query Syntax Details
Date Tue, 16 Oct 2001 17:44:15 GMT
Not sure about the rest, but if you've stored your dates in yyyymmdd format,
you can use a RangeQuery like so:

dateField:[20011001-null]

This would return all dates on or after October 1, 2001.

Scott

> -----Original Message-----
> From: W. Eliot Kimber [mailto:eliot@isogen.com]
> Sent: Tuesday, October 16, 2001 11:10 AM
> To: lucene-user
> Subject: Trying To Understand Query Syntax Details
> 
> 
> I'm trying to understand the details of the query syntax. I found the
> syntax ` in QueryParser.jj, but it doesn't make everything clear.
> 
> My initial questions:
> 
> - It doesn't appear that "?" can be the last character in a 
> search. For
> example, to match "fool" and "food", I tried to do "foo?", but got a
> parse error. "fo?l" of course matches fool and foal. Is this 
> a bug or an
> implementation constraint?
> 
> - How does one specify a date range in a query? We need to be able to
> search on "docs later than date x", and I know that Lucene 
> supports date
> matching, but I don't see how to specify this in a query.
> 
> Also, is there a description of the algorithm "~" uses?
> 
> Thanks,
> 
> E.
> 
> -- 
> . . . . . . . . . . . . . . . . . . . . . . . .
> 
> W. Eliot Kimber | Lead Brain
> 
> 1016 La Posada Dr. | Suite 240 | Austin TX  78752
>     T 512.656.4139 |  F 512.419.1860 | eliot@isogen.com
> 
> w w w . d a t a c h a n n e l . c o m
> 

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