From f362a63cd4603e14af56e091d78bd97ec84189af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Novotn=C3=BD?= Date: Thu, 21 Apr 2016 11:35:07 +0200 Subject: [PATCH] docs typo fix & `python` tag added to code example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 532a344..53899a5 100644 --- a/README.md +++ b/README.md @@ -119,13 +119,13 @@ from flask.ext.whooshee import Whooshee w = Whooshee(app) w.reindex() ``` -### Seach results ordering +### Search results ordering By default only first 10 (for optimization reasons) search results are sorted by relevance. You can modify this behaviour by explicitly setting the value of `order_by_relevance` parameter of the `whooshee_search` method. -``` +```python # return all search results sorted by relevance (only Chuck Norris can do this) Entry.query.join(User).whooshee_search('chuck norris', order_by_relevance=-1).all()