/solrdemo

Just a demo app using Play Framework 2.1

Primary LanguageJavaScript

SOLRDEMO

Quick Play 2 demo using SOLR

to get this up in intelliJ:

install plugins: play 2, scala, sbt

play compile

play idea

open directory as project

start app:

play run

point your browser to http://localhost:9000

Show 10 random ads

http://localhost:9000/search

Add 1000 docs to index

http://localhost:9000/add?num=1000

Add 1 doc to index

http://localhost:9000/add

Clear index

http://localhost:9000/removeall

Search remote index

must set up host & port in RemoteSolr.java.

http://localhost:9000/remote/search

Persistence

to persist index on disk: solr/conf/solrconfig.xml: <directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>

to have index in memory: solr/conf/solrconfig.xml: <directoryFactory name="DirectoryFactory" class="org.apache.solr.core.RAMDirectoryFactory"/>