Hi,

I'm having problems with the patch. 
With this schema.xml:
  ----> <copyField source="content" dest="highlight" maxLength="30000" />
 
If I send documents with a content smaller than 30000 I have an exception
during the indexing. If I change the maxLength to, for example, 30 the
documents that before gave the exception are now indexed correctly.

The exception is:

GRAVE: java.lang.StringIndexOutOfBoundsException: String index out of range:
30000
        at java.lang.String.substring(Unknown Source)
        at
org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:262)
        at
org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProc
essorFactory.java:66)
        at
org.apache.solr.handler.XmlUpdateRequestHandler.processUpdate(XmlUpdateReque
stHandler.java:196)
        at
org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(XmlUpdateR
equestHandler.java:123)
        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.
java:125)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:965)
        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:3
38)
        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:
272)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va: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.Http11AprProcessor.process(Http11AprProcessor.java:
852)
        at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(H
ttp11AprProtocol.java:584)
        at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
        at java.lang.Thread.run(Unknown Source)



I hope this help.

Thanks.

Rober.
-----Mensaje original-----
De: Erik Hatcher [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 23 de junio de 2008 20:49
Para: solr-user@lucene.apache.org
Asunto: Re: never desallocate RAM...during search


On Jun 23, 2008, at 8:16 AM, <[EMAIL PROTECTED]> wrote:
> I was doing something similar to your solution to have better  
> searching
> times.
> I download you patch but I have a problem in one class. I'm not sure  
> if I'm
> doing something wrong but if I what to compile the proyect I must  
> change in
> IndexSchema:
>
>       //private Similarity similarity;
>
>       AND PUT:
>
>       private SimilarityFactory similarityFactory;
>
> I'm doing something incorrectly or is a little bug?

It's because the patch is out of sync with trunk.   The  
SimilarityFactory was added recently.

        Erik

Reply via email to