Re: i wanna change response type to PHP serialize

2007-06-28 Thread James liu
Can u write a test and i give u chinese word. u can try it.. or u get chinese word from china web site..http://www.sina.com.cn,,, i don't know to send sample result to u. 2007/6/28, Nick Jenkin <[EMAIL PROTECTED]>: Are you able to attach a file of serialized (direct php serialized output from

Re: i wanna change response type to PHP serialize

2007-06-27 Thread Nick Jenkin
Are you able to attach a file of serialized (direct php serialized output from solr) result so I can test? Thanks -Nick On 6/28/07, James liu <[EMAIL PROTECTED]> wrote: code not change,,,and i not use utf8_decodeshould do it? 2007/6/28, Nick Jenkin <[EMAIL PROTECTED]>: > > Hi James > It is t

Re: i wanna change response type to PHP serialize

2007-06-27 Thread James liu
code not change,,,and i not use utf8_decodeshould do it? 2007/6/28, Nick Jenkin <[EMAIL PROTECTED]>: Hi James It is totally not optimized, when you say change your content into ???, I assume this is because of UTF8 issues, are you using utf8_decode etc? Thanks -Nick On 6/28/07, James liu <[

Re: i wanna change response type to PHP serialize

2007-06-27 Thread Nick Jenkin
Hi James It is totally not optimized, when you say change your content into ???, I assume this is because of UTF8 issues, are you using utf8_decode etc? Thanks -Nick On 6/28/07, James liu <[EMAIL PROTECTED]> wrote: It is slower than json and xml,,,and it will change my content into ??? when i us

Re: i wanna change response type to PHP serialize

2007-06-27 Thread James liu
It is slower than json and xml,,,and it will change my content into ??? when i use json , content is ok. afternoon, iwill read ur code. 2007/6/27, James liu <[EMAIL PROTECTED]>: ok,,thks nick,,,i just forget replace jar file.. wait a minute i will test speed... 2007/6/27, Nick Jenkin <[E

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
ok,,thks nick,,,i just forget replace jar file.. wait a minute i will test speed... 2007/6/27, Nick Jenkin <[EMAIL PROTECTED]>: http://nickjenkin.com/misc/apache-solr-1.2.0-php-serialize.tar.gz Try that -Nick On 6/27/07, James liu <[EMAIL PROTECTED]> wrote: > i use tomcat ,, send ur solr v

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
http://nickjenkin.com/misc/apache-solr-1.2.0-php-serialize.tar.gz Try that -Nick On 6/27/07, James liu <[EMAIL PROTECTED]> wrote: i use tomcat ,, send ur solr version to me...i try it again.. 2007/6/27, Nick Jenkin <[EMAIL PROTECTED]>: > > If you are using the example provided in 1.2 (using je

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
i use tomcat ,, send ur solr version to me...i try it again.. 2007/6/27, Nick Jenkin <[EMAIL PROTECTED]>: If you are using the example provided in 1.2 (using jetty) you need to use "ant example" rather than "ant dist" -Nick On 6/27/07, James liu <[EMAIL PROTECTED]> wrote: > Yes, i use 1.2

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
If you are using the example provided in 1.2 (using jetty) you need to use "ant example" rather than "ant dist" -Nick On 6/27/07, James liu <[EMAIL PROTECTED]> wrote: Yes, i use 1.2my compile method: download solr 1.2 and modify file by your patch. use `ant dist` to compile it. no error sh

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
Yes, i use 1.2my compile method: download solr 1.2 and modify file by your patch. use `ant dist` to compile it. no error show. i can see its admin gui, but i wanna try search, it will show me the error information, Is my compile method right? if not, show me how to compile it. it seems ver

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Tristan Vittorio
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

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
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 <[EMAIL PROTECTED]> wrote: Interesting, what version of solr are you using, I tested on 1.2. -Nick On 6/26/07, James liu <[EMAIL PROTECTED]> wrote: > i just

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
Interesting, what version of solr are you using, I tested on 1.2. -Nick On 6/26/07, James liu <[EMAIL PROTECTED]> wrote: i just cp it to src\java\org\apache\solr\request and ant dist...i think maybe my method is wrong. same error infromation... java.lang.NoClassDefFoundError: org/apache/solr/s

Re: i wanna change response type to PHP serialize

2007-06-26 Thread James liu
i just cp it to src\java\org\apache\solr\request 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)

Re: i wanna change response type to PHP serialize

2007-06-26 Thread Nick Jenkin
I have some good news :o) 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 <[EMAIL PROTECTED]> wrote: I think it simple to u. so i wait for ur good news. 2007/6/26, Nick Jenkin <[EMAIL PROTECTED]>: > > I am also quite i

Re: i wanna change response type to PHP serialize

2007-06-25 Thread James liu
I think it simple to u. so i wait for ur good news. 2007/6/26, Nick Jenkin <[EMAIL PROTECTED]>: 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

Re: i wanna change response type to PHP serialize

2007-06-25 Thread Nick Jenkin
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 js

Re: i wanna change response type to PHP serialize

2007-06-25 Thread Tristan Vittorio
I am also looking for a PHP response writer that outputs serialized PHP code, I've taken a look at SOLR-196but 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. cheer

Re: i wanna change response type to PHP serialize

2007-06-25 Thread Michael Kimsal
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

Re: i wanna change response type to PHP serialize

2007-06-25 Thread James liu
i use stupid way just to create file by your patch. and compile is ok when i test it and start tomcat,,,i can see solr admin interface. but when i search something.. it show me 2007-6-25 15:15:37 org.apache.solr.core.SolrException log 严重: java.lang.NoClassDefFoundError: org/apache/solr/search/S

Re: i wanna change response type to PHP serialize

2007-06-24 Thread James liu
I means how to add it to my solr(1.2 production) 2007/6/25, James liu <[EMAIL PROTECTED]>: aha,,it seems good, how can i fix it with my solr, i don't know how do with it 2007/6/25, Nick Jenkin <[EMAIL PROTECTED]>: > > Hi James > I think you would be better of outputting an PHP array, and runn

Re: i wanna change response type to PHP serialize

2007-06-24 Thread James liu
aha,,it seems good, how can i fix it with my solr, i don't know how do with it 2007/6/25, Nick Jenkin <[EMAIL PROTECTED]>: 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 int

Re: i wanna change response type to PHP serialize

2007-06-24 Thread Nick Jenkin
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 <[EMAIL PROTECTED]> wrote: which files

i wanna change response type to PHP serialize

2007-06-24 Thread James liu
which files i should change from source? and if i change ok. how to compile? just ant dist? -- regards jl