I think I created this problem in SOLR-6023.

I went with the javadoc documentation which says that analysis.value is a
required parameter and added that check. It seems that the either
analysis.value or analysis.q (or q) can be specified to make it work. I'll
fix in 4.9


On Fri, Jun 6, 2014 at 8:37 PM, Aman Tandon <amantandon...@gmail.com> wrote:

> It is not working with either custom filter/field  as well as with normal
> text field, it only working fine if i pass the value/text in the both in
> the index time input as well as in query time input.
> Only query time analysis is impossible unless i wrote that extra parameter
> (analysis.fieldvalue=jute) explicitly in request(url).
>
> With Regards
> Aman Tandon
>
>
> On Fri, Jun 6, 2014 at 7:11 PM, Stefan Matheis <matheis.ste...@gmail.com>
> wrote:
>
> > I’m not sure that’s a bug in the UI .. in case the underlying service is
> > barking with an exception we can’t do anything else than showing to you.
> >
> > are you sure the custom filter works as expected? like, verified with a
> > unit-test or something along the lines? i can still work with the
> examples
> > provided in the tutorial, so in general .. it works, looks like the only
> > thing that doesn’t work is related to your custom components
> >
> > -Stefan
> >
> >
> > On Friday, June 6, 2014 at 1:25 PM, Aman Tandon wrote:
> >
> > > Hi,
> > >
> > > I created a custom filter for my field named text_reversed, i tried my
> > > custom filter in solr 4.7.1 and i was able to analyse the result, it
> > works
> > > fine but in solr 4.8.1 it gaves me error of : *Missing required
> > parameter:
> > > analysis.fieldvalue. *It is also not working with any field*, *here is
> > the
> > > logs of the error
> > >
> > > 2090419 [http-bio-8984-exec-8] ERROR org.apache.solr.core.SolrCore –
> > > org.apache.solr.common.SolrException: Missing required parameter:
> > > analysis.fieldvalue
> > > at
> > >
> >
> org.apache.solr.common.params.RequiredSolrParams.get(RequiredSolrParams.java:49)
> > > at
> > >
> >
> org.apache.solr.handler.FieldAnalysisRequestHandler.resolveAnalysisRequest(FieldAnalysisRequestHandler.java:142)
> > > at
> > >
> >
> org.apache.solr.handler.FieldAnalysisRequestHandler.doAnalysis(FieldAnalysisRequestHandler.java:99)
> > > at
> > >
> >
> org.apache.solr.handler.AnalysisRequestHandlerBase.handleRequestBody(AnalysisRequestHandlerBase.java:60)
> > > at
> > >
> >
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> > > at
> > >
> >
> org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:241)
> > > at org.apache.solr.core.SolrCore.execute(SolrCore.java:1952)
> > > at
> > >
> >
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:774)
> > > at
> > >
> >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
> > > at
> > >
> >
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
> > > at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> > > at
> > >
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> > > at
> > >
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> > > at
> > >
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> > > at
> > >
> >
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> > > at
> > >
> >
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> > > at
> > >
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
> > > at
> > >
> >
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> > > at
> > >
> >
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> > > at
> > >
> >
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
> > > at
> > >
> >
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> > > at
> > >
> >
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> > > at
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > > at
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > > at java.lang.Thread.run(Thread.java:745)
> > >
> > >
> > >
> > > With Regards
> > > Aman Tandon
> > >
> > >
> >
> >
> >
>



-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to