1. jacobmason
  2. sphinx-web-support


sphinx-web-support / sphinx / websupport / search / nullsearch.py

# -*- coding: utf-8 -*-

    The default search adapter, does nothing.

    :copyright: Copyright 2007-2010 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.

from sphinx.websupport.search import BaseSearch
from sphinx.websupport.errors import *

class NullSearch(BaseSearch):
    """A search adapter that does nothing. Used when no search adapter
    is specified.
    def feed(self, pagename, title, doctree):

    def query(self, q):
        raise NullSearchException('No search adapter specified.')