This is what I have been doing with DateFilter
DateFilter dateFilter = new DateFilter("published", lLimitDate,
System.currentTimeMillis());
TopFieldDocs docs = searcher.search(parser.parse(sSearchPhrase), dateFilter,
utility.iMaxResults, new Sort(sortFields));
Ed
--- Luke Francl <[EMAIL PROT
On Tue, 2004-11-16 at 16:32, Paul Elschot wrote:
> Once you approach 1000 days, you'll get the same problem again,
> so you might want to use a filter for the dates.
> See DateFilter and the archives on MMDD.
Can anyone point to a good example of how to use the DateFilter?
Thanks,
Luke
---
On Tuesday 16 November 2004 21:35, Joe Krause wrote:
> Hey Folks, I just inherited a deployed Lucene based application that
> started throwing the following exception:
>
> org.apache.lucene.search.BooleanQuery$TooManyClauses
...
> I did some research regarding this error and found out that the def
,
>
> Terry
> - Original Message -
> From: Angelov, Rossen
> To: 'Lucene Users List'
> Sent: Tuesday, October 26, 2004 11:43 AM
> Subject: RE: BooleanQuery - TooManyClauses
>
>
> >
> >On Oct 25, 2004, at 6:35 PM, A
You can already add the separate fields to your documents even if you
don't use them yet...
Regards,
Luc
> -Original Message-
> From: Terry Steichen [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 26 oktober 2004 18:28
> To: Lucene Users List
> Subject: Re: BooleanQu
Terry Steichen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 11:28 AM
To: Lucene Users List
Subject: Re: BooleanQuery - TooManyClauses
I think what Erik's asking is whether you can live with expressing your
indexed date in the form of MMDD, without the hour and minute
extension.
for more robust solution but this should do for now.
Thanks,
Ross
-Original Message-
From: Terry Steichen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 11:28 AM
To: Lucene Users List
Subject: Re: BooleanQuery - TooManyClauses
I think what Erik's asking is whether yo
Tuesday, October 26, 2004 11:43 AM
Subject: RE: BooleanQuery - TooManyClauses
>
>On Oct 25, 2004, at 6:35 PM, Angelov, Rossen wrote:
>> Why there is a limit on the number of clauses? and is there any harm in
>> setting MaxClauseCount to Integer.MAX_VALUE?
>
>
>On Oct 25, 2004, at 6:35 PM, Angelov, Rossen wrote:
>> Why there is a limit on the number of clauses? and is there any harm in
>> setting MaxClauseCount to Integer.MAX_VALUE?
>
>The harm is in performance and resource utilization. Rather than do
>this, though, read on...
>
>> I'm using a Range
On Oct 25, 2004, at 6:35 PM, Angelov, Rossen wrote:
Why there is a limit on the number of clauses? and is there any harm in
setting MaxClauseCount to Integer.MAX_VALUE?
The harm is in performance and resource utilization. Rather than do
this, though, read on...
I'm using a Range Query on a field
hui wrote:
Hi,
I have a range query for the date like [20011201 To 20040201], it works fine
for Lucene API 1.3 RC1. When I upgrade to 1.3 final, I got
"BooleanQuery$TooManyClauses" exception sometimes no matter the index is
created by 1.3RC1 or 1.3 final. Check on the email archive, it seems relat
11 matches
Mail list logo