lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Hit Id < 10 in new stop words' table Standard Analyzer causes error
Date Fri, 07 May 2004 12:33:55 GMT
Could you provide your code on how you are iterating the hits?

Also, you don't need to modify the StandardAnalyzer for a new stop 
words list - it allows you to pass a list in its constructor.


On May 7, 2004, at 7:28 AM, jitender ahuja wrote:

> Hi ,
>       I am modifying the Standard Analyzer to include a new Stop-Words 
> list, and am working on an Index with 2 fields: 1) OBJECT_ID serving 
> to identify a document: a keyword field , and 2) OBJECT_XML: a text 
> field with Reader i.e., tokenised and indexed but not stored.
> Now, in response to the query string the results are retrieved 
> correctly.Then, one need to click on the retrieved hits to get the 
> data from the database through a seperate java class in the underlying 
>  jsp  file , for a particular OBJECT_ID.
> But it gives the following error for Hit Ids (OBJECT_ID) < 10 on 
> clicking it to retrieve the data field from the database.
> org.apache.jasper.JasperException: Not a valid hit number: 0
> Also, pl. do note that::    If the old analyzer is just used from the 
> different folder it causes no error.
> Can , anyone tell why this weird behavior is exhibited?
> Regards,
> Jitender

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message