Series.
es_match
Filters data with an Elasticsearch match or match_phrase query depending on the given parameters.
match
match_phrase
Read more about Full-Text Queries in Elasticsearch
All additional keyword arguments are passed in the body of the match query.
String of text to search for
If True will use match_phrase instead of match query which takes into account the order of the text parameter.
text
When True this function will raise an error if any non-text fields are queried to prevent fields that aren’t analyzed from not working properly. Set to False to ignore this preventative check.
Specify which analyzer to use for the match query
Specify the fuzziness option for the match query
Boolean filter to be combined with other filters and then passed to DataFrame[…].
Examples
>>> df = ed.DataFrame( ... "localhost:9200", "ecommerce", ... columns=["category", "taxful_total_price"] ... ) >>> df[ ... df.category.es_match("Men's") ... & (df.taxful_total_price > 200.0) ... ].head(5) category taxful_total_price 13 [Men's Clothing] 266.96 33 [Men's Clothing] 221.98 54 [Men's Clothing] 234.98 93 [Men's Shoes, Women's Accessories] 239.98 273 [Men's Shoes] 214.98 <BLANKLINE> [5 rows x 2 columns]