Quantcast

zero_terms_query problem

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

zero_terms_query problem

sulemanmubarik
Hi
i am setting zero_terms_query in query i test it with all and none but i did not get any result.
also i can see zero_terms_query in org.elasticsearch.index.query.MatchQueryParser but it is not in org.elasticsearch.index.query.MultiMatchQueryBuilder
{
    "filtered": {
        "query": {
            "constant_score": {
                "query": {
                    "multi_match": {
                        "query": "twitter",
                        "fields": [
                            "authorName",
                            "authorTags",
                            "cnt_en"
                        ],
                        "type": "boolean",
                        "operator": "AND",
                        "use_dis_max": false
                    }
                },
                "boost": 1,
                "zero_terms_query": "all"
            }
        },
        "filter": {
            "and": {
                "filters": [
                    {
                        "numeric_range": {
                            "publishedDate": {
                                "from": 1358208000000,
                                "to": 1361059199999,
                                "include_lower": true,
                                "include_upper": true
                            }
                        }
                    }
                ]
            }
        }
    }
}

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Loading...