Re: Build Solr to run SolrJS

2008-11-22 Thread Jon Baer
Maybe another template idea ... I just started playing around w/ this plugin: http://malsup.com/jquery/taconite/ Would be pretty neat to have that as a response (or @ least the technique), not sure how well known it is or if there is something W3C- based in the pipeline that is similar. Pr

Re: Build Solr to run SolrJS

2008-11-22 Thread Matthias Epheser
Erik Hatcher schrieb: It'd be nice to have SolrJS and VrW's examples, at least the default one, work off the built-in Solr example data. It's pretty minimal, and somewhat contrived, but it'll make it lots easier to document and demonstrate this stuff if it's cohesive that way. Certainly, tho

Re: Build Solr to run SolrJS

2008-11-22 Thread Erik Hatcher
It'd be nice to have SolrJS and VrW's examples, at least the default one, work off the built-in Solr example data. It's pretty minimal, and somewhat contrived, but it'll make it lots easier to document and demonstrate this stuff if it's cohesive that way. Certainly, though, it's not possib

Re: Build Solr to run SolrJS

2008-11-22 Thread Matthias Epheser
JCodina schrieb: Yesterday I got it running, I thouhght I had post it, but I should not push the post button. The problem I had to solve to run it with the Velocity was to copy by hand the velocity jar files to /lib. There is an ant task "example-init" in contrib/javascript/build.xml that shou

Re: Build Solr to run SolrJS

2008-11-22 Thread JCodina
Yesterday I got it running, I thouhght I had post it, but I should not push the post button. The problem I had to solve to run it with the Velocity was to copy by hand the velocity jar files to /lib. Erik Hatcher wrote: > > I just got the client-side demo on trunk to work (with a few tweaks t

Re: Build Solr to run SolrJS

2008-11-22 Thread Erik Hatcher
On Nov 22, 2008, at 4:26 AM, Erik Hatcher wrote: I just got the client-side demo on trunk to work (with a few tweaks to make it work with the example core Solr data). On trunk follow these steps: * root directory: ant example One extra step needed, for the pedantic... * launch Solr: cd

Re: Build Solr to run SolrJS

2008-11-22 Thread Erik Hatcher
I just got the client-side demo on trunk to work (with a few tweaks to make it work with the example core Solr data). On trunk follow these steps: * root directory: ant example * separate console, index data: cd example/exampledocs; java -jar post.jar *.xml * open contrib/javascript/e

Re: Build Solr to run SolrJS

2008-11-20 Thread JCodina
I could not manage, yet to use it. :confused: My doubts are: - must I download solr from svn - trunk? - then, must I apply the patches of solrjs and velocity and unzip the files? or is this already in trunk? because trunk contains velocity and javascript in contrib. but does not find the ve

Re: Build Solr to run SolrJS

2008-11-17 Thread Matthias Epheser
Erik Hatcher schrieb: On Nov 16, 2008, at 1:40 PM, Matthias Epheser wrote: Matthias and Ryan - let's get SolrJS integrated into contrib/velocity. Any objections/reservations? As SolrJS may be used without velocity at all (using eg. ClientSideWidgets), is it possible to put it into "contrib/

Re: Build Solr to run SolrJS

2008-11-17 Thread Matthias Epheser
Erik Hatcher schrieb: On Nov 17, 2008, at 2:11 PM, Matthias Epheser wrote: After we add the SolrQueryResponse to the templates first, we realized that some convenience methods for iterating the result docs, accessing facets etc. would be fine. The idea was to reuse the existing wrappers (eg.

Re: Build Solr to run SolrJS

2008-11-17 Thread Ryan McKinley
On Nov 17, 2008, at 2:59 PM, Erik Hatcher wrote: On Nov 17, 2008, at 2:11 PM, Matthias Epheser wrote: After we add the SolrQueryResponse to the templates first, we realized that some convenience methods for iterating the result docs, accessing facets etc. would be fine. The idea was to r

Re: Build Solr to run SolrJS

2008-11-17 Thread Erik Hatcher
On Nov 17, 2008, at 2:11 PM, Matthias Epheser wrote: After we add the SolrQueryResponse to the templates first, we realized that some convenience methods for iterating the result docs, accessing facets etc. would be fine. The idea was to reuse the existing wrappers (eg. QueryResponse). It

Re: Build Solr to run SolrJS

2008-11-17 Thread Matthias Epheser
Ryan McKinley schrieb: On Nov 17, 2008, at 1:35 PM, Erik Hatcher wrote: Can you elaborate on the use case for why you need the raw response like that? I vaguely get it, but want to really understand the need here. I'm weary of the EmbeddedSolrServer usage in there, as I want to distill the

Re: Build Solr to run SolrJS

2008-11-17 Thread Ryan McKinley
On Nov 17, 2008, at 1:35 PM, Erik Hatcher wrote: Can you elaborate on the use case for why you need the raw response like that? I vaguely get it, but want to really understand the need here. I'm weary of the EmbeddedSolrServer usage in there, as I want to distill the VrW stuff to be able

Re: Build Solr to run SolrJS

2008-11-17 Thread Ryan McKinley
I'm weary of the EmbeddedSolrServer usage in there, as I want to distill the VrW stuff to be able to use SolrJ's API rather than assume embedded Solr. This way VrW can be separated from core Solr to another "tier" and template on remote Solr responses. Thoughts on how this feature might

Re: Build Solr to run SolrJS

2008-11-17 Thread Erik Hatcher
Can you elaborate on the use case for why you need the raw response like that? I vaguely get it, but want to really understand the need here. I'm weary of the EmbeddedSolrServer usage in there, as I want to distill the VrW stuff to be able to use SolrJ's API rather than assume embedded Sol

Re: Build Solr to run SolrJS

2008-11-17 Thread Matthias Epheser
Erik Hatcher schrieb: On Nov 17, 2008, at 11:45 AM, Matthias Epheser wrote: Just noticed that VelocityResponeWriter in trunk is very reduced to my last patch from 2008-07-25. Right, that was intentional for my own simplicity's sake... The crucial difference is the missing translation into a

Re: Build Solr to run SolrJS

2008-11-17 Thread Erik Hatcher
On Nov 17, 2008, at 11:45 AM, Matthias Epheser wrote: Just noticed that VelocityResponeWriter in trunk is very reduced to my last patch from 2008-07-25. Right, that was intentional for my own simplicity's sake... The crucial difference is the missing translation into a solrj response by s

Re: Build Solr to run SolrJS

2008-11-17 Thread Matthias Epheser
Erik Hatcher schrieb: However, it isn't currently suitable for wiring to SolrJS - Matthias and I will have to resolve that. Just noticed that VelocityResponeWriter in trunk is very reduced to my last patch from 2008-07-25. Moving the templates into a jar shouldn't be a problem. Setting the co

Re: Build Solr to run SolrJS

2008-11-17 Thread Erik Hatcher
On Nov 16, 2008, at 1:40 PM, Matthias Epheser wrote: Matthias and Ryan - let's get SolrJS integrated into contrib/ velocity. Any objections/reservations? As SolrJS may be used without velocity at all (using eg. ClientSideWidgets), is it possible to put it into "contrib/ javascript" and cre

Re: Build Solr to run SolrJS

2008-11-17 Thread Erik Hatcher
On Nov 17, 2008, at 3:55 AM, JCodina wrote: java.lang.NoClassDefFoundError: org/apache/solr/request/VelocityResponseWriter (wrong name: ... [jar] Building jar: /home/joan/workspace/solr/contrib/dataimporthandler/target/apache- solr-dataimporthandler-1.4-dev.jar dist: ... [jar] B

Re: Build Solr to run SolrJS

2008-11-17 Thread JCodina
To give you more information. The error I get is this one: java.lang.NoClassDefFoundError: org/apache/solr/request/VelocityResponseWriter (wrong name: contrib/velocity/src/main/java/org/apache/solr/request/VelocityResponseWriter) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang

Re: Build Solr to run SolrJS

2008-11-16 Thread Matthias Epheser
Erik Hatcher schrieb: Joan - I'll have a look at this in the near future. SolrJS was using a custom version of a VelocityResponseWriter patch, but since then I have committed a version of that code to the contrib/velocity area of Solr. contrib/velocity probably does not work with SolrJS curre

Re: Build Solr to run SolrJS

2008-11-16 Thread Erik Hatcher
Joan - I'll have a look at this in the near future. SolrJS was using a custom version of a VelocityResponseWriter patch, but since then I have committed a version of that code to the contrib/velocity area of Solr. contrib/velocity probably does not work with SolrJS currently, but we'll ge