You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Venkatraman S <ve...@gmail.com> on 2007/09/19 11:53:51 UTC
Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory
Hi ,
Product : Solr (Embedded) Version : 1.2
Problem Description :
While trying to add and search over the index, we are stumbling on this
error again and again.
Do note that the SolrCore is committed and closed suitably in our Embedded
Solr.
Error (StackTrace) :
Sep 19, 2007 9:41:41 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.io.FileNotFoundException: no segments* file found in
org.apache.lucene.store.FSDirectory@/data/pub/index: files:
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(
SegmentInfos.java:516)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:148)
at org.apache.solr.search.SolrIndexSearcher.<init>(
SolrIndexSearcher.java:87)
at org.apache.solr.core.SolrCore.newSearcher(SolrCore.java:122)
at com.serendio.diskoverer.core.entextor.CreateSolrIndex.<init>(
CreateSolrIndex.java:70)
at org.apache.jsp.AddToPubIndex_jsp._jspService
(AddToPubIndex_jsp.java:57)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:393)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Extra Information :
/data/pub is the Solr Home.
/data/pub/index contains the index.
CreateSolrIndex.java is our program that creates and searches over the index
Regards,
Venkat
--
Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory
Posted by Chris Hostetter <ho...@fucit.org>.
: Does this case arise when i do a search when there is no index?? - If yes,
: then i guess the Exception can be made more meaningful.
in normal operation, i believe this shouldn't happen -- Solr will create
the index for you on startup if there isn't one. You're attampting a
fairly advanced / non trivial approach where you aren't letting Solr
manage the index for you.
you haven't given us any idea what the code you are using to build the
index looks like -- but if i had to guess, i would bet that somewhere in
there you are directly manupulating the file system directory -- not just
the Lucene FSDirectory. that's the only situation i can think of where
that index directory would ever exist but be completely empty -- the low
level Lucene APIs should create a segments file as soon as you start
adding docs, even if you haven't lcosed the writer yet.
-Hoss
Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory
Posted by Venkatraman S <ve...@gmail.com>.
On 9/20/07, Chris Hostetter <ho...@fucit.org> wrote:
>
>
> you imply that you are building your index using embedded solr, but based
> on your stack trace it seems you are using Solr in a servlet container ...
> i assume to search the index you've already built?
I have a jsp that routes the info from a drupal module to my Embedded
solr app.
Does this case arise when i do a search when there is no index?? - If yes,
then i guess the Exception can be made more meaningful.
Is the embeddd core completley closed before your servlet cotainer running
> Solr is started? what does hte directly list look like in between the
> finish of A and the start of B?
yes - it is closed ; but i guess this problem arises when i do a search when
no index is created - can you confirm this.
-Venkat
Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory
Posted by Chris Hostetter <ho...@fucit.org>.
: Product : Solr (Embedded) Version : 1.2
: java.io.FileNotFoundException: no segments* file found in
: org.apache.lucene.store.FSDirectory@/data/pub/index: files:
According to that, the FSDirectory was empty when it ws opened (a file
list is suppose to come after that "files: " part)
you imply that you are building your index using embedded solr, but based
on your stack trace it seems you are using Solr in a servlet container ...
i assume to search the index you've already built?
Is the embeddd core completley closed before your servlet cotainer running
Solr is started? what does hte directly list look like in between the
finish of A and the start of B?
-Hoss
Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory
Posted by Venkatraman S <ve...@gmail.com>.
Quite inetersting actually (this is for 5 documents that were indexed) :
_0.fdt _0.prx _1.fnm _1.tis _2.nrm _3.fdx _3.tii _4.frq segments.gen
_0.fdx _0.tii _1.frq _2.fdt _2.prx _3.fnm _3.tis _4.nrm segments_6
_0.fnm _0.tis _1.nrm _2.fdx _2.tii _3.frq _4.fdt _4.prx
_0.frq _1.fdt _1.prx _2.fnm _2.tis _3.nrm _4.fdx _4.tii
_0.nrm _1.fdx _1.tii _2.frq _3.fdt _3.prx _4.fnm _4.tis
On 9/19/07, Bill Au <bi...@gmail.com> wrote:
>
> What files are there in your /data/pub/index directory?
>
> Bill
>
> On 9/19/07, Venkatraman S <ve...@gmail.com> wrote:
> >
> > Hi ,
> >
> > Product : Solr (Embedded) Version : 1.2
> >
> > Problem Description :
> > While trying to add and search over the index, we are stumbling on this
> > error again and again.
> > Do note that the SolrCore is committed and closed suitably in our
> Embedded
> > Solr.
> >
> > Error (StackTrace) :
> > Sep 19, 2007 9:41:41 AM
> org.apache.catalina.core.StandardWrapperValveinvoke
> > SEVERE: Servlet.service() for servlet jsp threw exception
> > java.io.FileNotFoundException: no segments* file found in
> > org.apache.lucene.store.FSDirectory@/data/pub/index: files:
> > at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(
> > SegmentInfos.java:516)
> > at org.apache.lucene.index.IndexReader.open(IndexReader.java
> :185)
> > at org.apache.lucene.index.IndexReader.open(IndexReader.java
> :148)
> > at org.apache.solr.search.SolrIndexSearcher.<init>(
> > SolrIndexSearcher.java:87)
> > at org.apache.solr.core.SolrCore.newSearcher(SolrCore.java:122)
> > at com.serendio.diskoverer.core.entextor.CreateSolrIndex.<init>(
> > CreateSolrIndex.java:70)
> > at org.apache.jsp.AddToPubIndex_jsp._jspService
> > (AddToPubIndex_jsp.java:57)
> > at org.apache.jasper.runtime.HttpJspBase.service(
> HttpJspBase.java
> > :70)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at org.apache.jasper.servlet.JspServletWrapper.service(
> > JspServletWrapper.java:393)
> > at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> > JspServlet.java:320)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
> > :266)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java:290)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:206)
> > at org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:233)
> > at org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:175)
> > at org.apache.catalina.core.StandardHostValve.invoke(
> > StandardHostValve.java:128)
> > at org.apache.catalina.valves.ErrorReportValve.invoke(
> > ErrorReportValve.java:102)
> > at org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:109)
> > at org.apache.catalina.connector.CoyoteAdapter.service(
> > CoyoteAdapter.java:263)
> > at org.apache.coyote.http11.Http11Processor.process(
> > Http11Processor.java:844)
> > at
> > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> > Http11Protocol.java:584)
> > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> > JIoEndpoint.java:447)
> > at java.lang.Thread.run(Thread.java:619)
> >
> > Extra Information :
> > /data/pub is the Solr Home.
> > /data/pub/index contains the index.
> > CreateSolrIndex.java is our program that creates and searches over the
> > index
> >
> > Regards,
> > Venkat
> > --
> >
>
--
Re: Solr Index - no segments* file found in org.apache.lucene.store.FSDirectory
Posted by Bill Au <bi...@gmail.com>.
What files are there in your /data/pub/index directory?
Bill
On 9/19/07, Venkatraman S <ve...@gmail.com> wrote:
>
> Hi ,
>
> Product : Solr (Embedded) Version : 1.2
>
> Problem Description :
> While trying to add and search over the index, we are stumbling on this
> error again and again.
> Do note that the SolrCore is committed and closed suitably in our Embedded
> Solr.
>
> Error (StackTrace) :
> Sep 19, 2007 9:41:41 AM org.apache.catalina.core.StandardWrapperValveinvoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> java.io.FileNotFoundException: no segments* file found in
> org.apache.lucene.store.FSDirectory@/data/pub/index: files:
> at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(
> SegmentInfos.java:516)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:185)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:148)
> at org.apache.solr.search.SolrIndexSearcher.<init>(
> SolrIndexSearcher.java:87)
> at org.apache.solr.core.SolrCore.newSearcher(SolrCore.java:122)
> at com.serendio.diskoverer.core.entextor.CreateSolrIndex.<init>(
> CreateSolrIndex.java:70)
> at org.apache.jsp.AddToPubIndex_jsp._jspService
> (AddToPubIndex_jsp.java:57)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
> :70)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java:393)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:320)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
> :266)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:233)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:175)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:263)
> at org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> Http11Protocol.java:584)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:619)
>
> Extra Information :
> /data/pub is the Solr Home.
> /data/pub/index contains the index.
> CreateSolrIndex.java is our program that creates and searches over the
> index
>
> Regards,
> Venkat
> --
>