Commits

while0pass committed dd0d5da

Fix code snippet so that it would be a valid code.

We have ``with ix.searcher() as s:`` within this code snippet, so I replace
``searcher`` variable name with ``s`` for consistency and code validity.

  • Participants
  • Parent commits e0cb4e6

Comments (0)

Files changed (1)

docs/source/facets.rst

         q = qp.parse(user_query_string)
 
         # Sort search results from lowest to highest price
-        results = searcher.search(q, sortedby="price")
+        results = s.search(q, sortedby="price")
         for hit in results:
             print(hit["title"])