Skip to content

Commit 2abd451

Browse files
committed
code clean up
Signed-off-by: Tiago Santana <[email protected]>
1 parent 4423f38 commit 2abd451

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

deepsearch/cps/client/components/data_indices.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -275,28 +275,9 @@ def list_items(
275275
maximum items to list, defaults to 100
276276
"""
277277

278-
query_tasks = Query()
279-
280278
if max_items < page_size:
281279
page_size = max_items
282280

283-
lookup = query_tasks.add(
284-
"ElasticQuery",
285-
task_id="elastic-search",
286-
parameters={
287-
"source": ["_name", "_id"],
288-
"sort": [
289-
{"description.publication_date": {"order": "desc"}},
290-
{"description.logs.date": {"order": "desc"}},
291-
],
292-
"limit": page_size,
293-
},
294-
coordinates=ElasticProjectDataCollectionSource(
295-
proj_key=self.source.proj_key, index_key=self.source.index_key
296-
),
297-
)
298-
lookup.output("items").output_as("result")
299-
300281
query = DataQuery(
301282
search_query=query_string,
302283
limit=page_size,

0 commit comments

Comments
 (0)