SeaseLtd / SearchServices

Alfresco Search Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alfresco Search Services Implementation

Alfresco Search Services using Alfresco and Apache Solr

Get the code

Git:

git clone https://github.com/Alfresco/SearchServices.git

Use Maven

Build project:

mvn clean install

All the resources needed for the docker image will be available under packaging/target/docker-resources/

Start Alfresco Search Services from source

To run Alfresco Search Services locally first build the zip file using:

mvn clean install

Extract the zip file and launch Alfresco Search Services using:

cd packaging/target
unzip alfresco-search-services-*.zip
cd alfresco-search-services/solr
./bin/solr start -Dcreate.alfresco.defaults=alfresco,archive

If you also start an ACS instance then index will be populated. By default Alfresco Search Services runs on port 8983, but this can be set by supplying e.g. -p 8083 to the "solr start" command.

To set up remote debugging (on port 5005) start Alfresco Search Services with the following command and then connect using your IDE:

./bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"

To stop Alfresco Search Services:

./bin/solr stop

Docker

To build the docker image:

cd packaging/target/docker-resources/
docker build -t searchservices:develop .

To run the docker image:

docker run -p 8983:8983 searchservices:develop

docker-compose files can be used to start up Search Services with Alfresco and Share. There are two docker-composes files available. Depending on the version you want to start either change to 5.x or 6.x. E.g.

cd packaging/target/docker-resources/6.x
docker-compose up

This will start up Alfresco, Postgres, Share and SearchServices. You can access the applications using the following URLs:

If you start version 5.x instead you can also access the API Explorer:

License

Copyright (C) 2005 - 2017 Alfresco Software Limited

This file is part of the Alfresco software. If the software was purchased under a paid Alfresco license, the terms of the paid license agreement will prevail. Otherwise, the software is provided under the following open source license terms:

Alfresco is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Alfresco is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with Alfresco. If not, see http://www.gnu.org/licenses/.

About

Alfresco Search Services


Languages

Language:Java 99.0%Language:HTML 0.9%Language:Dockerfile 0.0%