mirror of
https://github.com/elastic/eland.git
synced 2025-07-24 00:00:39 +08:00
Cleanup + removed dependence of elasticsearch-dsl
This commit is contained in:
parent
ee9b621891
commit
9bf3505b7e
@ -2,7 +2,6 @@ import copy
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from elasticsearch_dsl import Search
|
|
||||||
|
|
||||||
from eland import Index
|
from eland import Index
|
||||||
from eland import Query
|
from eland import Query
|
||||||
@ -290,7 +289,7 @@ class Operations:
|
|||||||
if field == Index.ID_INDEX_FIELD:
|
if field == Index.ID_INDEX_FIELD:
|
||||||
body.ids(items, must=True)
|
body.ids(items, must=True)
|
||||||
else:
|
else:
|
||||||
body.terms(items, must=True)
|
body.terms(field, items, must=True)
|
||||||
|
|
||||||
return query_compiler._client.count(index=query_compiler._index_pattern, body=body.to_count_body())
|
return query_compiler._client.count(index=query_compiler._index_pattern, body=body.to_count_body())
|
||||||
|
|
||||||
@ -334,8 +333,6 @@ class Operations:
|
|||||||
|
|
||||||
return size, sort_params
|
return size, sort_params
|
||||||
|
|
||||||
1
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _count_post_processing(post_processing):
|
def _count_post_processing(post_processing):
|
||||||
size = None
|
size = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user