Getting Banana to work with Solr 4.2

3.1k Views Asked by At

I'm running Solr 4.2 and would like to try out LucidWorks Banana product. However, when I navigate to the banana directory on my Solr server, I receive a 404 error.

I'm following the instructions from their github site here, basically dropping the banana src directory into the my SOLR_HOME\solr-webapp\webapp directory.

I've tried modifying the src\config.js and src\app\dashboards\default.json files as suggested by the readme file to change the localhost URL to the actual server name or the IP address. Both attempts still resulted in the 404 error.

Has anyone had luck in getting banana working with Solr 4.2? Is it not supported on this version of Solr? Hopefully I'm missing something really simple.

Thanks!

2

There are 2 best solutions below

2
On

At LucidWorks, we have only tested Banana on Solr 4.4 and above. So, I am not sure whether all the functionality will work with Solr 4.2. However, I do know a couple of users on Solr 4.3 (who might have made some small code changes).

That said, the webapp is just javascript/html and should at least come up (maybe with errors on the dashboard, but not a 404), even without modifying config.js/default.json.

Just to confirm your process (from https://github.com/LucidWorks/banana/blob/release/QUICKSTART):

 Copy Banana folder to $SOLR_HOME/example/solr-webapp/webapp/
 Browse to http://localhost:8983/solr/banana/src/index.html#/dashboard

If you dropped the src folder (and not the banana folder), then you will need to browse to http://solrserver.yourdomain.com:8983/solr/src/index.html#/dashboard

1
On

I figured this out thanks to Ravi's suggestion that made me re-examine my configuration.

Turns out my web app was actually running from C:\Windows\solr-webapp, and not $SOLR_HOME\solr-webapp\webapp. I missed that my CWD was set to C:\Windows even though everything else was pointing to $SOLR_HOME directories.

Once I dropped the Banana folder into C:\Windows\solr-webapp\webapp, I was able to bring up the dashboard. Now I have other errors, but that's a different set of issues.

Hope this helps someone. TL;DR - make sure your CWD is consistent with the destination of banana.