Results 1 to 2 of 2
  1. #1
    jchandan is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Exception While Reloading Indexes at runtime in lucene API

    Hi
    Can any one help in this I am receiving Following Exception from Lucne when I am trying to Update new Indexes while searches are in process. I think it is trying to access 35th field but there are only five fields in used indexes.

    java.lang.IndexOutOfBoundsException: Index: 35, Size: 5java.util.ArrayList.RangeCheck(ArrayList.java:547 )
    java.util.ArrayList.get(ArrayList.java:322)
    org.apache.lucene.index.FieldInfos.fieldInfo(Field Infos.java:293)
    org.apache.lucene.index.FieldInfos.fieldName(Field Infos.java:282)
    org.apache.lucene.index.TermBuffer.read(TermBuffer .java:86)
    org.apache.lucene.index.SegmentTermEnum.next(Segme ntTermEnum.java:131)
    org.apache.lucene.index.SegmentTermEnum.scanTo(Seg mentTermEnum.java:166)
    org.apache.lucene.index.TermInfosReader.get(TermIn fosReader.java:273)
    org.apache.lucene.index.TermInfosReader.get(TermIn fosReader.java:209)
    org.apache.lucene.index.SegmentReader.docFreq(Segm entReader.java:503)
    org.apache.lucene.search.TermQuery$TermWeight$1.ad d(TermQuery.java:56)
    org.apache.lucene.util.ReaderUtil$Gather.run(Reade rUtil.java:77)
    org.apache.lucene.util.ReaderUtil$Gather.run(Reade rUtil.java:82)
    org.apache.lucene.util.ReaderUtil$Gather.run(Reade rUtil.java:66)
    org.apache.lucene.search.TermQuery$TermWeight.<ini t>(TermQuery.java:53)
    org.apache.lucene.search.TermQuery.createWeight(Te rmQuery.java:198)
    org.apache.lucene.search.BooleanQuery$BooleanWeigh t.<init>(BooleanQuery.java:176)
    org.apache.lucene.search.BooleanQuery.createWeight (BooleanQuery.java:354)
    org.apache.lucene.search.Searcher.createNormalized Weight(Searcher.java:168)
    org.apache.lucene.search.IndexSearcher.createNorma lizedWeight(IndexSearcher.java:661)
    org.apache.lucene.search.IndexSearcher.search(Inde xSearcher.java:339)
    com.venable.searchengine.VeSearchStepExecuteLucene Query.step(VeSearchStepExecuteLuceneQuery.java:47)
    com.venable.searchengine.VeSearchInterface.execute _search(VeSearchInterface.java:211)
    com.venable.searchengine.ebl.EBLController.step(EB LController.java:146)
    com.venable.searchengine.VeSearchInterface.execute _search(VeSearchInterface.java:211)
    com.venable.searchengine.VeSearch.execute_search(V eSearch.java:236)
    com.venable.searchengine.business.businessname.Ebl Util.eblProcessor(EblUtil.java:68)
    com.venable.searchengine.enhancedebl.EnhanceEblBui ldResult.step(EnhanceEblBuildResult.java:416)
    com.venable.searchengine.VeSearchInterface.execute _search(VeSearchInterface.java:211)
    com.venable.searchengine.VeSearch.execute_search(V eSearch.java:260)
    sun.reflect.GeneratedMethodAccessor3.invoke(Unknow n Source)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:597)
    com.venable.searchengine.VeSearchWorker.run(VeSear chWorker.java:53)
    java.lang.Thread.run(Thread.java:662)
    I am using lucene version 3.3.0.jar
    Any help is very appreciable...........
    Last edited by jchandan; 01-06-2012 at 08:50 AM.

  2. #2
    jchandan is offline Member
    Join Date
    Jan 2012
    Posts
    2
    Rep Power
    0

    Default Re: Exception While Reloading Indexes at runtime in lucene API

    hi Can any one guess what can be issue with this..................... I am still in problem.........
    I am using MultiReader to use multiple indexes for search.

Similar Threads

  1. Replies: 0
    Last Post: 11-21-2011, 06:34 PM
  2. Compass / Lucene indexes become broken
    By Tanger in forum Lucene
    Replies: 0
    Last Post: 01-11-2011, 09:07 AM
  3. Lucene indexes on network dir
    By heyvishy in forum Lucene
    Replies: 0
    Last Post: 12-13-2010, 08:55 PM
  4. Runtime Exception
    By vishalrimt in forum New To Java
    Replies: 2
    Last Post: 08-08-2010, 06:07 AM
  5. Replies: 1
    Last Post: 11-04-2009, 05:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •