libreoffice-online/indexing
Henry Castro 7adb84e1c8 indexing: rename 'lool' -> 'cool'
Change-Id: I8991a671f337a539a4afc0a10f544eb5daabff3f
Signed-off-by: Henry Castro <hcastro@collabora.com>
2021-11-17 09:17:31 +01:00
..
Docs Proof of concept Search WebApp to show how to implement doc. search 2021-09-13 10:36:15 +02:00
Main.html Proof of concept Search WebApp to show how to implement doc. search 2021-09-13 10:36:15 +02:00
Main.js Proof of concept Search WebApp to show how to implement doc. search 2021-09-13 10:36:15 +02:00
README Proof of concept Search WebApp to show how to implement doc. search 2021-09-13 10:36:15 +02:00
Server.py indexing: rename 'lool' -> 'cool' 2021-11-17 09:17:31 +01:00

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