1. Matt Chaput
  2. whoosh


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
  • Branches default

Comments (0)

Files changed (1)

File docs/source/facets.rst

View file
  • Ignore whitespace
         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: