Saturday, June 23, 2012

SOLR - Upgrade to Jetty 8


After working with Solr for so many years, right from solr version 1.2 I realised it usually started with downloading the latest source distribution and working from the example dir wihich had a solr instance packaged in jetty 6.x container. All these years Solr versions kept changing from 1.x to 3.x series but jetty version stayed at 6.x. recently I discovered that eclipse foundation has released jetty 8 stable version after years of hard work. While the new Solr version is going to upgrade current 3.x release is going to stay on jetty 6.x. So I decided to take the plunge and do the upgrade myself.

I used the latest Solr 3.6.0 version which is the latest stable release of solr as of now and the jetty 8.1.4.v20120524 version, also the latest stable release of jetty 8. The key change is the way in which jsp is supported by jetty 8, we need to specify the jsp in options. Jetty 8 uses jsp 2.2 compared to 2.1 in earlier version and servlet 3.0 compared to 2.5 in jetty 6.


To start the action, you can pull out the ready to run solr server directly from github at:

https://github.com/umars/jetty-solr

To start the server you just need to first clone the repo and then start the server as:

   git clone https://github.com/umars/jetty-solr

For all purpose i will call the newly checked out dir as JETTY_DIR

   cd $JETTY_DIR
   java -jar start.jar

When you see a message like "Started SocketConnector@0.0.0.0:8983" , your server should be ready now to be used

To demonstrate the use , the exampledocs dir contains some sample documents , same as provided in the solr distribution. From another console run the following commands:

   cd $JETTY_DIR/exampledocs
   ./post.sh *.xml


You should see some activity on the console where we started the server, as the data in the files get posted to the index. When you see a message like "INFO: {commit=}" , the solr server has data ready to be served.

Now fire up a browser and go to  "http://localhost:8983/solr/select?q=*:*"

You should be able to see the results as xml in the browser.


6 comments:

  1. bet365 Dafabet | Free Bets, Odds and Free Bets - Sports Betting
    dafabet.com. sports betting is one william hill of the most important 제왕카지노 aspects of online 다파벳 sports betting. Dafabet is the first betting site to offer a sportsbook to its customers.

    ReplyDelete
  2. Lucky Creek Casino Resort - Mapyro
    View realtime driving directions to 전주 출장마사지 Lucky Creek Casino Resort, 제주 출장마사지 42149 Fort Lucky Creek Casino Resort, 전라남도 출장샵 4 miles from 광명 출장마사지 Fort 전주 출장마사지 Lauderdale International Airport, is

    ReplyDelete
  3. A complete and impartial review of Casumo casino - DRMCD
    › casino › casino › id=casumo-b 제천 출장마사지 › casino › id=casumo-b Casino: Play for 의정부 출장안마 fun | Casino 익산 출장샵 games, baoji titanium Roulette & Blackjack | No download | 구리 출장안마 Deposit Bonus | 24 hour | Latest promotions: Latest promotions

    ReplyDelete
  4. JOHNN'S CASINO IN SEAH OLYMPUS CITY - Air Jordan
    JOHNN'S CASINO IN SEAH OLYMPUS CITY great air jordan 18 retro varsity red JOHNN'S CASINO IN SEAH air jordan 18 retro yellow suede online store OLYMPUS CITY JOHNN'S CASINO IN SEAH OLYMPUS CITY air jordan 18 retro men super JOHNN'S CASINO IN how to order air jordan 18 retro red SEAH air jordan 18 retro red suede great site OLYMPUS CITY | JOHNN'S

    ReplyDelete
  5. How to get the Gambling Site to work 【Google】
    How to get the Gambling Site to work. krfirst 1. Create a betting Account. 2. 토토사이트 Provide a number of details to your account. 3. Check out the

    ReplyDelete
  6. The table sport has easy guidelines with a couple of of} exceptions. If a hand exceeds 1xbet 10, 10 is then subtracted from the hand. Neither the Dealer nor the participant decide if a 3rd card is drawn.

    ReplyDelete