coretechs / ctsearch
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 1
Type:project
Requires
- php: >=5.5.9
- elasticsearch/elasticsearch: 5.x
- incenteev/composer-parameter-handler: ^2.0
- oodle/krumo-bundle: *
- sensio/distribution-bundle: ^5.0
- sensio/framework-extra-bundle: ^3.0.2
- symfony/monolog-bundle: ^2.8
- symfony/swiftmailer-bundle: ^2.3
- symfony/symfony: 3.0.*
- twig/twig: <2.0
Requires (Dev)
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is auto-updated.
Last update: 2024-10-24 00:02:58 UTC
README
-
Get the latest version from Git https://github.com/louisicard/ctsearch/releases
-
Install sources in some directory
-
Install dependencies
$ composer update
- Set up your web server CtSearch is a federated search engine build upon Elastic Search.
Default login/password :
Username : admin
Password : adminpass
CtSearch Recommendation engine
CtSearch comes with a recommendation engine. Javascript code to include in your pages :
<script> !function(e,c,n,t,r,o,a){e[r]=function(c,n){e[r+"_"+c]=n},o=c.createElement(n), a=c.getElementsByTagName(n)[0],o.src=t,a.parentNode.insertBefore(o,a)} (window,document,"script","//CTSEARCH_ROOT/reco/reco.js","regReco"); //Replace CTSEARCH_ROOT by the root path to your ctsearch installation regReco('id', 'DOC_ID'); //Doc ID of the elastic search document currently displayed regReco('target', 'INDEX.MAPPING'); //Index name and mapping like my_index.my_mapping regReco('callback', 'myRecoCallback'); //The name of the js function to callback for displaying recommended documents function myRecoCallback(data){ console.log(data); } </script>