Can anyone tell if I am right to check if the title field contains an element
curl -XGET "http://localhost:9200/myapp/item/_search" -d'
{
"query": {
"query_string": {
"query": "title:Item"
}
}
}'
EDIT
I have a name like "Economics and Statistics"
This returns a record
curl -XGET "http://localhost:9200/myapp/item/_search" -d'
{
"query": {
"query_string": {
"query": "title:*statistics*"
}
}
}'
It returns nothing
curl -XGET "http://localhost:9200/myapp/item/_search" -d'
{
"query": {
"query_string": {
"query": "title:statistics"
}
}
}'
This also returns nothing (weird)
curl -XGET "http://localhost:9200/myapp/item/_search" -d'
{
"query": {
"query_string": {
"query": "title:*Economics*"
}
}
}'
Doc says:
where the status field contains the active
status:active
source
share