Example #1
0
    def handle(self, *args, **options):
        pages = options['pages']
        if not args:
            raise CommandError('You must specify the search query.')

        query = u' '.join(args)

        es_search_cmd(query, pages)
Example #2
0
    def handle(self, *args, **options):
        pages = options['pages']
        if not args:
            raise CommandError('You must specify the search query.')

        query = u' '.join(args)

        es_search_cmd(query, pages, FakeLogger(self.stdout))
Example #3
0
    def handle(self, *args, **options):
        logging.basicConfig(level=logging.INFO)
        pages = options['pages']
        if not args:
            raise CommandError('You must specify the search query.')

        query = u' '.join(args)

        es_search_cmd(query, pages)