Open Romathonat opened 3 years ago
Same question here. I notice that:
df['codeInstance'] == 'instanceX'
> {'term': {'codeInstance': 'instanceX'}}
A workaround is:
query = {
"query_string" : {
"fields" : ["codeInstance"],
"query" : "instanceX"
}
}
df.es_query(query)
But this is of course not compact Pandas style as we like it.
Hello,
How can I filter my dataset using standard pandas boolean indexing on an attribute that is detected as an object type ? (in the elastic mapping it is both indexed as "text" and "keyword"
Example:
Results:
Results:
gives me 0 row. I tried adding ".keyword" but it does not work either.