You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Matthias Epheser (JIRA)" <ji...@apache.org> on 2008/12/14 15:00:45 UTC

[jira] Commented: (SOLR-868) Prepare solrjs trunk to be integrated into contrib

    [ https://issues.apache.org/jira/browse/SOLR-868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656389#action_12656389 ] 

Matthias Epheser commented on SOLR-868:
---------------------------------------

I had some time off at the beginning of december, but I managed to rearrange the examples this weekend. As I rearranged the directory structure to fit our emerged needs, I attach a whole new contrib/javascript dir in the new zip file. I tried to create a suitable patch to current trunk, but as a lot of directories moved, binary files were added and deleted, it got complicated. 

I did the following:

* Split the example to "core" and "reuters"
* The "core" examples work out of the box with existing solr testdata, just run the server in solr/example as usual and open the files in the browser.

* I removed the reuters src data files, leaving one sample with less than 100 rows. A script is attached so uers may automatically get the full dataset on purpose.
* For the reuters schema, only the solr config dir is provided and the standard example dist is used, pointing to the contrib javascript solr home.
* I attached the source code of my reuters importer, removed all unnecessary dependencies (as this was a standalone maven project before). So now a single class with only deps to the standard solr distribution works. 

So to start the demo app:

* ant example in solr root
* ant dist in contrib/javascript
* ant reuters-start in contrib/javascript to start the server
* ant reuters-import to import the data (sample file or all files when downloaded before) 


I think this new structure covers the thoughts that came up in this thread, the core examples can be used without doing the more complex reuters stuff, and the full demo can be used with 2 ant commands.

> Prepare solrjs trunk to be integrated into contrib
> --------------------------------------------------
>
>                 Key: SOLR-868
>                 URL: https://issues.apache.org/jira/browse/SOLR-868
>             Project: Solr
>          Issue Type: Task
>    Affects Versions: 1.4
>            Reporter: Matthias Epheser
>            Assignee: Ryan McKinley
>             Fix For: 1.4
>
>         Attachments: reutersimporter.jar, SOLR-868-testdata.patch, solrjs.zip
>
>
> This patch includes a zipfile snapshot of current solrjs trunk. The folder structure is applied to standard solr layout.  It can be extracted to "contrib/javascript".
> it includes a build.xml:
> * ant dist -> creates a single js file and a jar that holds velocity templates.
> * ant docs -> creates js docs. test in browser: doc/index.html
> * ant example-init -> (depends ant dist on solr root) copies the current built of solr.war and solr-velocity.jar to example/testsolr/..
> * ant example-start -> starts the testsolr server on port 8983
> * ant example-import -> imports 3000 test data rows (requires a started testserver)
> Point your browser to example/testClientside.html ,example/testServerSide.html or test/reuters/index.html to see it working.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.