Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
DELETE test
PUT test
POST test/_doc
{
"text": "oracle san francisco hadoop"
}
POST test/_doc
{
"text": "oracle"
}
POST test/_doc
{
"text": "san francisco"
}
POST test/_doc
{
"text": "hadoop"
}
GET test/_search
{
"query": {
"query_string": {
"query": "oracle AND san AND francisco AND hadoop"
}
}
}
GET test/_search
{
"query": {
"query_string": {
"default_operator": "AND",
"query": "oracle san francisco hadoop"
}
}
}
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.