Skip to content Skip to sidebar Skip to footer

How To Use Filterquery And Queryoptions On Cloudsearch Boto3

I am trying to use boto3 and cloudsearchdomain but I am having troubles establishing some optional filters over my query. This is what I did: response = client.search( query=qu

Solution 1:

I finally found the answer. I post it here just in case it can help other people with similar issues:

response = client.search(
    query="myquery",
    queryParser='simple',
    partial=True,
    queryOptions= '{"fields":["full_address"]}',
    filterQuery='city:33044'
    )

Post a Comment for "How To Use Filterquery And Queryoptions On Cloudsearch Boto3"