{% extends "base/base.html" %} {% block body %}

F.A.Q.

So I'm here now. What do I do?
How do I index?
What is a pod?
How do I use 'index from a URL list'?
How do I use 'index a document collection'?
How do I use 'index from bookmarks'?
Help! I made a mistake while indexing!
Can I use PeARS in my language?
How do I contribute to the PeARS code?
Where can I chat to the PeARS community?



So I'm here now. What do I do?

First, welcome! Really nice to see you here!

PeARS Lite is a local search solution. It is meant to help you create a little private search engine on your own machine, recording the documents you care about. Like all search engines, it is made of two components: an indexer, which lets you transform Web pages and other documents into a searchable representation, and the actual search module, which finds documents in response to a query. In order to search, you will need to index first. So grab a few URLs and let's get started...



How do I index?

Your PeARS installation includes an indexing page which helps you with the hard work of converting documents into searchable representations. You can index in several ways but we will start with the simplest one, which consists in typing a single URL in the 'Index a single URL' box -- this will index just that page. You should also enter a keyword under the URL, telling your PeARS install the topic of the page you want to index. Over time, this will contribute to the creation of pods, which you can manage individually.

Important:There are various things to consider when crawling. First, please check the laws of your country before indexing: there might be rules on crawling that you want to be aware of. Second, be a good netizen. Some websites impose restrictions on crawling and might block you if you don't respect their rules. Check their robots.txt file to understand whether they consent to being crawled, and do not index too many pages from a single site in a short period of time: you might overload their server.



What is a pod?

A pod is an index dedicated to a particular topic. Imagine your document collection is a library, and you are the librarian labelling different sections of your bookshelves. Having labelled sections help you direct visitors to the right book more easily. It also helps you managing your collection.

Once in a while, you can go and check how many pages you've indexed on a particular topic. Head over to My orchard. There, you will find a beautiful orchard growing a pod for each keyword you have used in the indexer. Each pod in the making shows you its current size. Once a pod has grown enough, you may want to share it with other PeARS users. To do this, click on the pod of your choice. After a moment, a new page will be displayed, giving you instructions about where to find your pod's information. Please note that for copyright reasons, you will only be sharing the URLs you have indexed in that pod. Your friend still has to do their own indexing of that list, using the URL list indexing function.



How do I use 'index from a URL list'?

'Index from file' lets you index a list of URLs from a plain text file. For the sake of example, let's say we want to index two URLs, https://en.wikipedia.org/ and http://flask.pocoo.org/. We'll assign them the keywords 'general knowledge' and 'programming'. We first open a new file in a text editor, and enter each URL, together with a suitable keyword and language code on one line, separated by a semi-colon, like so:

https://en.wikipedia.org/;general knowledge;en
http://flask.pocoo.org/;programming;en

We then ensure that the file is save in plain text format. This is important! Now, all we need to do is go to our indexer page, and search for that file under 'index from file'. PeARS will do the rest.



How do I use 'index from bookmarks'?

If you use Firefox, you can export your bookmarks as a bookmarks.html file. This function is particularly handy if you want to make a pod out of your favourites.

We'll assume that you have been using tags while bookmarking (if not, start!) Say you have tagged some pages as cute cats, all you have to do to create a pod out of those pages is to give your bookmarks.html file to PeARS, and indicate the keyword cute cats in the relevant text box. Your indexing will start shortly! You can then search those pages locally, and also share them with your friends as a pod by going to My orchard.



Help! I made a mistake while indexing!

Don't panic! Head over to your DB Admin page. From this page, you can access records in your pear's database. Click on 'See/modify your URL list'. You will get back a list of all URLs indexed on your pear. There's a search box at the top of the list, which you can use to find the record you wish to modify. Once you've found it, either delete it completely (clicking on the little wastebin on the left) or edit it (by clicking on the pencil). Problem solved!



Can I use PeARS in my language?

Yes! The list of supported languages is growing. PeARS is designed to be multilingual at the core, because we know that so many of us across the world routinely speak several languages. Before you can use another language than English, you will need to enable it in your installation. Simply head over to your terminal and type python3 install_language.py lc, replacing 'lc' with the code of the language you need (e.g. 'ml' for Malayalam or 'fr' for French).

You can then search and index in your language by adding the relevant code to the end of your query (if you are searching), or the end of your keyword (if you are indexing). For instance, you could search for pages about cheese in French by typing: fromage -fr (note the hyphen before the language code!)



How do I contribute to the PeARS code?

We'd love to see you on our GitHub repo! This version of PeARS is PeARS-Orchard. Feel free to send us a pull request or contribute to our issues list.



Where can I chat to the PeARS community?

Join our discord server! We're looking forward to seeing you there!

{% endblock %}