Does match query for elasticsearch go through lists? If not, what is the
way to do this?
Assuming I have a document that is stored with the following...
{
'author':'John',
'books': {
'book1': {
'author':'John Williams'
},
'book2': {
'author':'Jacob Riley'
},
'booklist':[
'book1': {
'author':'John Williams'
},
'book2': {
'author':'Jacob Riley'
}
]
}
}
If a user performs a text search on say "Joe" on the field 'authors', does
it search only on all of the fields including the ones in the books dict
when results are returned? Or is it only looking at the 'author' field in
the main list?
How could a user search on say only the 'author' field within 'booklist'
or 'books'? What is the query string?
No comments:
Post a Comment