02c60302b3
This adds the Proof of concept WebApp to show how to glue together the Solr search platform with COOL server with "convert-to" and "render-search-result" REST services and combine everything into a document search solution. Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> Change-Id: Iea3a2f6e2afee090bc7a27648390025d2a8c94d8
33 lines
1 KiB
Text
33 lines
1 KiB
Text
Searching and indexing example APP
|
|
**********************************
|
|
|
|
Main.js and Main.html - HTML/JS client side
|
|
Server.py - HTTP Server and server side processing via. REST API
|
|
|
|
Configuration
|
|
*************
|
|
|
|
Open "Server.py" and change the COOL and Solr server URL ("coolServerUrl" and "solrServerUrl") if they are different
|
|
than localhost and default ports.
|
|
|
|
The "documentPath" constant is the root location of the documents (relative where Server.py was started).
|
|
|
|
The "solrCollectionName" constant is the collection name where Solr should store the indices.
|
|
|
|
The "coolInstance" is the URL to the COOL instance, which is used to open a document.
|
|
|
|
The collection needs to be created in Solr, if it doesn't yet exists with (from Solr root):
|
|
./bin/solr create -c <collection name>
|
|
|
|
For exmaple:
|
|
./bin/solr create -c documents
|
|
|
|
HTTP Server
|
|
***********
|
|
|
|
Run http server on locally with:
|
|
"python Server.py 8000 127.0.0.1"
|
|
|
|
Then connect from the web browser to "http::/localhost:8000"
|
|
|
|
First time - run "Re-Index Documents" or nothing will be found
|