From 43b938695328978b5881fe15772fdad96a870e33 Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 16 Jan 2019 22:31:43 +0100 Subject: Update some information on how to use this --- README.md | 21 ++++++++++++++++----- 1 file 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= ``` -You can also use the search function of the sphinx module of this project. +Resultat are in json format. -- cgit v1.2.1