aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md21
1 files changed, 16 insertions, 5 deletions
diff --git a/README.md b/README.md
index fdd1f55..129465c 100644
--- a/README.md
+++ b/README.md
@@ -46,10 +46,10 @@ the `sphinx_search.conf` file.
# Crawling
For now there is an example spider with neodarz website.
-For testing it just run:
+For launch all the crawler use the following command:
```
-python app.py
+python app.py crawl
```
# Indexing
@@ -74,6 +74,8 @@ The command for indexing is:
indexer --config sphinx_search.conf --all
```
+Don't forget to launch the crawling command before this ;)
+
# Searching
Before you can make search, you must lauch the search server
@@ -81,9 +83,18 @@ Before you can make search, you must lauch the search server
searchd -c sphinx_search.conf
```
-Example search command:
+## Enjoy
+
+You can now launch the server!
+
+```
+python app.py
+```
+
+For start searching send `GET` request to the following adresse (without `<` and
+`>`):
```
-curl -X POST '127.0.0.1:8080/search' -d 'index=datas&match=@content livet&select=id&limit=5' --output -
+127.0.0.1:5000/?search=<search terms>
```
-You can also use the search function of the sphinx module of this project.
+Resultat are in json format.