Hello
I have two documents in the elastic search database
document 1
{
section = "baby"
category = "Clothing"
subcategory = "shoe"
}
document 2
{
section = "baby"
category = "Clothing"
subcategory = ""
}
I want to search with elastic search which is the most suitable for research (baby, Clothing)
I want the result to be document 2 because it is the most suitable
but for query exists I think I can not check in the query all the words that I do not want because there are other documents like
document3
{
section = "baby"
category = "Clothing"
subcategory = "shirt"
}
the problem is what I can say I want the documents that contain the words baby and / or Clothing only or rather these documents appear with a high score compared to the other
BTW please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.
Or use markdown style like:
```
CODE
```
This is the icon to use if you are not using markdown format:
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.