lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik N S" <kart...@controlnet.co.in>
Subject Range Query Sombody HELP please
Date Mon, 31 May 2004 09:00:58 GMT
Hey YPE

 Apologies again

I did as per u'r  mail but see the  ERROR...

Search Keyword : +king+filename:[b10181_p702 TO b01081_p355]
Source path [ E:/po/aaaa ] : e:/indexer3/b10181
The Exception Raised file = SearchFiles.searchIndx0
java.lang.NegativeArraySizeException
        at
org.apache.lucene.index.TermInfosReader.readIndex(TermInfosReader.java:106)
        at
org.apache.lucene.index.TermInfosReader.<init>(TermInfosReader.java:82)
        at
org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:141)
        at
org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:120)
        at
org.apache.lucene.index.IndexReader$1.doBody(IndexReader.java:118)
        at org.apache.lucene.store.Lock$With.run(Lock.java:148)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:111)
        at
org.apache.lucene.search.IndexSearcher.<init>(IndexSearcher.java:80)
        at
com.controlnet.indexing.search.SearchFiles.searchIndex0(SearchFiles.java:68)
        at
com.controlnet.indexing.search.SearchFiles.main(SearchFiles.java:240)

[Note the Field filename is in lower case not fileName ,sorry about that]

Am I doing some thing wrong in here........

With regards
Karthik


-----Original Message-----
From: Ype Kingma [mailto:ykingma@xs4all.nl]
Sent: Monday, May 31, 2004 1:47 PM
To: lucene-user@jakarta.apache.org
Subject: Re: Range Query Sombody HELP please


Karthik,

On Monday 31 May 2004 06:12, Karthik N S wrote:
> Hey Ype

...
>
> My Question now is, If I want to Use Range Query  to  get search hits
> between
> fileName "B10181_P702"  and   "B10181_P355" only Instead of all the 67
hits
> ,
>
In this case there is no need to override range query, just use

+fileName:[B10181_P702 TO B10181_P355]

as part of the query.

Kind regards,
Ype



---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message