I only find guide show examples than filter use AND to connect two queries.
What about more?
and => [
{
range => {
date => {
from => "2012-12-04T00:00:00",
to => "2012-12-05T23:59:59"
},
},
},
{
numeric_range => {
timeCost => {
gte => 200,
},
},
},
{
prefix => {
requestUrl => "http://img.domain.com/",
},
},
]
I only find guide show examples than filter use AND to connect two queries. What about more?
and => [
{
range => {
date => {
from => "2012-12-04T00:00:00",
to => "2012-12-05T23:59:59"
},
},
},
{
numeric_range => {
timeCost => {
gte => 200,
},
},
},
{
prefix => {
requestUrl => "http://img.domain.com/",
},
},
]
Also cannot write two MUST?
I found that I must write "bool":{"must":{},"must_not":{}} and then got
right result.
If I write "bool":{"must":{},"must":{}}, return all document ....
I only find guide show examples than filter use AND to connect two
queries. What about more?
and => [
{
range => {
date => {
from => "2012-12-04T00:00:00",
to => "2012-12-05T23:59:59"
},
},
},
{
numeric_range => {
timeCost => {
gte => 200,
},
},
},
{
prefix => {
requestUrl => "http://img.domain.com/",
},
},
]
Also cannot write two MUST?
I found that I must write "bool":{"must":{},"must_not":{}} and then got right result.
If I write "bool":{"must":{},"must":{}}, return all document ....
I only find guide show examples than filter use AND to connect two queries. What about more?
and => [
{
range => {
date => {
from => "2012-12-04T00:00:00",
to => "2012-12-05T23:59:59"
},
},
},
{
numeric_range => {
timeCost => {
gte => 200,
},
},
},
{
prefix => {
requestUrl => "http://img.domain.com/",
},
},
]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.