Thanks Nick for you original version of the
PHPResponseWriter class, I've
submitted an updated version of your class
https:
//issues.apache.org/jira/browse/SOLR-275 which compiles
in the current
svn trunk and fixed a small bug when "score" is
not included in the return
field list.
cheers,
Tristan
On 6/26/07, Nick Jenkin <njenkin gmail.com> wrote:
>
> Hey James,
> The error you posted is the same you posted above in a
previous email,
> could it be something else?
> -Nick
> On 6/26/07, Nick Jenkin <njenkin gmail.com> wrote:
> > Interesting, what version of solr are you using, I
tested on 1.2.
> > -Nick
> >
> > On 6/26/07, James liu <liuping.james gmail.com> wrote:
> > > i just cp it to
srcjavaorgapachesolrrequest and ant dist...i
> think
> > > maybe my method is wrong.
> > >
> > > same error infromation...
> > >
> > > java.lang.NoClassDefFoundError:
> org/apache/solr/search/ScorePriorityQueue
> > > at
org.apache.solr.search.SolrIndexSearcher.getDocListNC(
> SolrIndexSearcher.java:886)
> > > at
org.apache.solr.search.SolrIndexSearcher.getDocListC(
> SolrIndexSearcher.java:805)
> > > at
org.apache.solr.search.SolrIndexSearcher.getDocList(
> SolrIndexSearcher.java:698)
> > > at
>
org.apache.solr.request.StandardRequestHandler.handleRequest
Body(
> StandardRequestHandler.java:122)
> > > at
org.apache.solr.handler.RequestHandlerBase.handleRequest(
> RequestHandlerBase.java:77)
> > > at
org.apache.solr.core.SolrCore.execute(SolrCore.java:658)
> > > at
org.apache.solr.servlet.SolrServlet.doGet(SolrServlet.java
> :66)
> > > at
javax.servlet.http.HttpServlet.service(HttpServlet.java
> :690)
> > > at
javax.servlet.http.HttpServlet.service(HttpServlet.java
> :803)
> > > at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(
> ApplicationFilterChain.java:290)
> > > at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
> > > at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(
> SolrDispatchFilter.java:185)
> > > at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFi
lter(
> ApplicationFilterChain.java:235)
> > > at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:206)
> > > at
org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:228)
> > > 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:104)
> > > at
org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:109)
> > > at
org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:216)
> > > at
org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java:844)
> > > at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
ler.process(
> Http11Protocol.java:634)
> > > at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> JIoEndpoint.java:445)
> > > at java.lang.Thread.run(Unknown
Source)
> > >
> > >
> > >
> > >
> > > 2007/6/26, Nick Jenkin <njenkin gmail.com>:
> > > >
> > > > I have some good news
> > > >
> > > > https:
//issues.apache.org/jira/browse/SOLR-275
> > > >
> > > > Please let me know if you find any bugs
> > > > Thanks
> > > > -Nick
> > > >
> > > > On 6/26/07, James liu
<liuping.james gmail.com> wrote:
> > > > > I think it simple to u.
> > > > >
> > > > > so i wait for ur good news.
> > > > >
> > > > > 2007/6/26, Nick Jenkin
<njenkin gmail.com>:
> > > > > >
> > > > > > I am also quite interested in
getting a serialized PHP array
> response
> > > > > > writer, after some
investigation it doesn't seem as difficult as
> I
> > > > > > first thought, I will have a
try at implementing this when I get
> some
> > > > > > time, the format of the array
would probably end up being the
> same as
> > > > > > if you were to use
json_decode.
> > > > > > -Nick
> > > > > >
> > > > > > On 6/26/07, Tristan Vittorio
<tristan.vittorio gmail.com> wrote:
> > > > > > > I am also looking for a
PHP response writer that outputs
> serialized
> > > > PHP
> > > > > > > code, I've taken a look
at
> > > > > > > SOLR-196<
http://issues.apache.org/jira/browse/SOLR-196>but
> it's not
> > > > > > > quite what I need.
Unless anyone else has started
> implementing
> > > > > > > one, I will see if I can
modify Paul's patch to do the task.
> > > > > > >
> > > > > > > cheers,
> > > > > > > Tristan
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 6/25/07, Michael
Kimsal <mgkimsal gmail.com> wrote:
> > > > > > > >
> > > > > > > > My experience tells
me that serializing/unserializing tends
> to be
> > > > > > faster
> > > > > > > > than eval(),
especially on larger arrays. I've looked at
> the
> > > > code,
> > > > > > trying
> > > > > > > > to put together a
PHP serialized array output type, but
> haven't
> > > > had
> > > > > > > > success
> > > > > > > > doing it yet. If I
do, it'll be contributed back, but until
> > > > someone
> > > > > > does
> > > > > > > > that version, the
way Nick suggests is probably the only
> option.
> > > > > > > >
> > > > > > > >
> > > > > > > > On 6/25/07, Nick
Jenkin <njenkin gmail.com> wrote:
> > > > > > > > >
> > > > > > > > > Hi James
> > > > > > > > > I think you
would be better of outputting an PHP array,
> and
> > > > running
> > > > > > > > > eval() over it,
the PHP serialize format is quite
> complicated.
> > > > > > > > >
> > > > > > > > > On that note,
you might be interested in:
> > > > > > > > > http://
issues.apache.org/jira/browse/SOLR-196
> > > > > > > > > -Nick
> > > > > > > > >
> > > > > > > > > On 6/25/07,
James liu <liuping.james gmail.com> wrote:
> > > > > > > > > > which
files i should change from source?
> > > > > > > > > >
> > > > > > > > > > and if i
change ok.
> > > > > > > > > >
> > > > > > > > > > how to
compile? just ant dist?
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > regards
> > > > > > > > > > jl
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Michael Kimsal
> > > > > > > > http://webdevradio.com
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > regards
> > > > > jl
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > regards
> > > jl
> > >
> >
>
|