Michael Peter Christen
13e42c2dd2
|
4 years ago | |
---|---|---|
.github | 5 years ago | |
.settings | 8 years ago | |
addon | 6 years ago | |
bin | 4 years ago | |
debian | 4 years ago | |
defaults | 4 years ago | |
dictionaries | 15 years ago | |
docker | 4 years ago | |
examples | 9 years ago | |
htroot | 4 years ago | |
langdetect | 10 years ago | |
lib | 4 years ago | |
libbuild | 4 years ago | |
libt | 4 years ago | |
locales | 4 years ago | |
skins | 4 years ago | |
snap | 6 years ago | |
source | 4 years ago | |
test | 4 years ago | |
vocabularies | 13 years ago | |
.checkstyle | 16 years ago | |
.classpath | 4 years ago | |
.dockerignore | 4 years ago | |
.env | 8 years ago | |
.gitignore | 8 years ago | |
.project | 4 years ago | |
.travis.yml | 5 years ago | |
AUTHORS | 17 years ago | |
CONTRIBUTING.md | 6 years ago | |
COPYRIGHT | 12 years ago | |
Heroku.md | 8 years ago | |
NOTICE | 16 years ago | |
Procfile | 8 years ago | |
README.md | 5 years ago | |
app.json | 7 years ago | |
assembly.xml | 8 years ago | |
build.nsi | 5 years ago | |
build.properties | 4 years ago | |
build.xml | 4 years ago | |
getWin32MaxHeap.bat | 15 years ago | |
gpl.txt | 20 years ago | |
installYaCyWindowsService.bat | 9 years ago | |
killYACY.sh | 10 years ago | |
lgpl21.txt | 15 years ago | |
pom.xml | 4 years ago | |
reconfigureYACY.sh | 10 years ago | |
startYACY.bat | 6 years ago | |
startYACY.sh | 5 years ago | |
startYACY_debug.bat | 5 years ago | |
stopYACY.bat | 9 years ago | |
stopYACY.sh | 4 years ago | |
uninstallYaCyWindowsService.bat | 11 years ago | |
updateYACY.sh | 4 years ago | |
yacy-packages.readme | 4 years ago | |
yacy.yellow | 20 years ago |
README.md
YaCy
What is this?
The YaCy search engine software provides results from a network of independent peers, instead of a central server. It is a distributed network where no single entity decides what to list or order it appears in.
User privacy is central to YaCy, and it runs on each user's computer, where search terms are hashed before they being sent to the network. Everyone can create their individual search indexes and rankings, and a truly customized search portal.
Each YaCy user is either part of a large search network (search indexes can be exchanged with other installation over a built-in peer-to-peer network protocol) or the user runs YaCy to produce a personal search portal that is either public or private.
YaCy search portals can also be placed in an intranet environment, making it a replacement for commercial enterprise search solutions. A network scanner makes it easy to discover all available HTTP, FTP and SMB servers.
To create a web index, YaCy has a web crawler for everybody, free of censorship and central data retention:
- Search the web (automatically using all other YaCy peers)
- Co-operative crawling; support for other crawlers
- Intranet indexing and search
- Set up your own search portal
- All users have equal rights
- Comprehensive concept to anonymise the users' index
To be able to perform a search using the YaCy network, every user has to set up their own node. More users means higher index capacity and better distributed indexing performance.
License
The (GPLv2+) source code used to build YaCy is distributed with the package (in /source and /htroot).
Where is the documentation?
- Homepage
- International Forum
- German wiki
- Esperanto wiki
- French wiki
- Spanish wiki
- Russian wiki
- Video tutorials in English and video tutorials in German
All these have (YaCy) search functionality combining all these locations into one search result.
Dependencies? What other software do I need?
You need Java 1.8 or later to run YaCy. (No Apache, Tomcat or MySQL or anything else)
YaCy also runs on IcedTea 3. See https://icedtea.classpath.org
Start and stop it
Startup and shutdown:
-
GNU/Linux and OpenBSD:
- Start by running
./startYACY.sh
- Stop by running
./stopYACY.sh
- Start by running
-
Windows:
- Start by double-clicking
startYACY.bat
- Stop by double-clicking
stopYACY.bat
- Start by double-clicking
-
macOS: Please use the Mac app and start or stop it like any other program (double-click to start)
The administration interface
A web server us brought up after starting YaCy. Open this URL in your web-browser:
This presents you with the personal search and administration interface.
(Headless) YaCy server installation
YaCy will authorize users automatically if they access the server from its localhost. After about 10 minutes a random password is generated and then it is no longer possible to log in from a remote location. If you install YaCy on a server that is not your workstation you must set an admin account immediately after the first start-up. Open:
http://<remote-server-address>:8090/ConfigAccounts_p.html
and set an admin account.
YaCy in a virtual machine or a container
Use virtualization software like VirtualBox or VMware.
The following container technologies can deployed locally, on remote machines you own, or in the 'cloud' using a provider by clicking "Deploy" at the top of the page:
Docker
More details in the docker/Readme.md.
Heroku
PaaS (Platform as a service) More details in Heroku.md.
Port 8090 is bad, people are not allowed to access that port
You can forward port 80 to 8090 with iptables:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8090
On some operation systems, access to the ports you are using must be granted first:
iptables -I INPUT -m tcp -p tcp --dport 8090 -j ACCEPT
Scaling, RAM and disk space
You can have many millions web pages in your own search index. By default 600MB RAM is available to the Java process. The GC process will free the memory once in a while. If you have less than 100000 pages you could try 200MB till you hit 1 million. Here you can adjust it. Several million web pages may use several GB of disk space, but you can adjust it Here to fit your needs.
Help develop YaCy
Join the large number of contributors that make YaCy what it is; community software.
To start developing YaCy in Eclipse:
- Clone https://github.com/yacy/yacy_search_server.git
- File → Import as Git → Projects from Git → Existing local repository
- → Add → Your Git clone of yacy_search_server
- "Import existing Eclipse projects" → Finish
- Run → External Tools → External Tools Configuration → Double-click "Ant Build"
- → Name: "YaCy Build" → Buildfile: Browse Workspace → build.xml → Run
- In the Package Explorer, right-click on YaCy → Run as → Java Application -> Select "yacy - net.yacy" -> OK
To join our development community, got to https://searchlab.eu
Send pull requests to https://github.com/yacy/yacy_search_server
Compile from source
The source code is bundled with every YaCy release. You can also get YaCy from https://github.com/yacy/yacy_search_server by cloning the repository.
git clone https://github.com/yacy/yacy_search_server
Compiling YaCy:
- You need Java 1.8 or later and Apache Ant.
- Compile:
ant clean all
- then you can./startYACY.sh
or./startYACY.bat
. - Create a release tarball:
ant dist
. - Create a macOS release:
ant distMacApp
(only works on macOS). - Create a Debian release:
ant deb
. - Work with Eclipse: Within Eclipse you also need to start the ant build process. because the servlet pages are not compiled by the Eclipse build process. after the dist procedure, the release can be found in the RELEASE subdirectory.
Build with Maven:
- For the first time go to the subdirectory libbuild (which contains the Maven parent POM).
- Compile with
mvn clean install -DskipTests
, this will create all needed modules. - After this you can use just use the POM in the main directory to build YaCy with Maven.
APIs and attaching software
YaCy has many built-in interfaces, and they are all based on HTTP/XML and HTTP/JSON. You can discover these interfaces if you notice the orange "API" icon in the upper right corner of some web pages in the YaCy web interface. Click it and you will see the XML/JSON version of the respective webpage. You can also use the shell script provided in the /bin subdirectory. The shell scripts also calls the YaCy web interface. By cloning some of those scripts you can easily create more shell API access methods.
Contact
Visit the international YaCy forum where you can start a discussion there in your own language.
Questions and requests for paid customization and integration into enterprise solutions. can be sent to the maintainer, Michael Christen per e-mail (at mc@yacy.net) with a meaningful subject including the word 'YaCy' to prevent it getting stuck in the spam filter.
- Michael Peter Christen