Preserve search query, bindings, and explain.
This commit is contained in:
parent
cc3cf58f46
commit
e3ab2e52e9
1 changed files with 8 additions and 4 deletions
|
@ -1676,6 +1676,9 @@ class Search:
|
||||||
self.generator_started = False
|
self.generator_started = False
|
||||||
self.generator_exhausted = False
|
self.generator_exhausted = False
|
||||||
self.more_after_limit = None
|
self.more_after_limit = None
|
||||||
|
self.query = None
|
||||||
|
self.bindings = None
|
||||||
|
self.explain = None
|
||||||
self.start_time = None
|
self.start_time = None
|
||||||
self.end_time = None
|
self.end_time = None
|
||||||
self.start_commit_id = None
|
self.start_commit_id = None
|
||||||
|
@ -1934,11 +1937,12 @@ class Search:
|
||||||
|
|
||||||
query = ' '.join(query)
|
query = ' '.join(query)
|
||||||
|
|
||||||
query = f'{"-" * 80}\n{query}\n{"-" * 80}'
|
self.query = query
|
||||||
|
self.bindings = bindings
|
||||||
|
self.explain = self.photodb.explain(query, bindings)
|
||||||
|
|
||||||
log.debug('\n%s %s', query, bindings)
|
log.loud(self.explain)
|
||||||
log.loud(self.photodb.explain(query, bindings))
|
generator = self.photodb.select(self.query, self.bindings)
|
||||||
generator = self.photodb.select(query, bindings)
|
|
||||||
seen_albums = set()
|
seen_albums = set()
|
||||||
offset = kwargs.offset
|
offset = kwargs.offset
|
||||||
for row in generator:
|
for row in generator:
|
||||||
|
|
Loading…
Reference in a new issue