Hi,
   
  I'm getting exception while retrieving 100th element id in hits.my sample 
code is given below:
  for(int i=0;<hits.length();i++) 
     {
      docID = hits.id(i);
       --   --  --
  } 
   
  Here my hits.length() is much greater than 100.The exception that I got is as 
follow:
  STACKTRACE: java.lang.ArrayIndexOutOfBoundsException: 100 &gt;= 100 
              at java.util.Vector.elementAt(Vector.java:431) 
              at org.apache.lucene.search.Hits.hitDoc(Hits.java:141) 
              at org.apache.lucene.search.Hits.id(Hits.java:116) 
   
  I'm using StandardAnalyzer for indexing and searching.If any one has any idea 
about the same pls let me know.
   
  Thanks
  --Mukesh  

                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Reply via email to