I want to index a book, in that I want to store book_name,page_number and page_content
following is sample -
{
"book_name": "first",
"pages" : [
{
"page_number" : 1,
"page_content" : "test data for check."
},
{
"page_number" : 2,
"page_content" : "test data for check. for test. test"
},
{
"page_number" : 3,
"page_content" : "So we beat on, boats against the current, borne back ceaselessly into the past."
}
]
}
{
"book_name": "second",
"pages" : [
{
"page_number" : 1,
"page_content" : "data for check. test and test"
},
{
"page_number" : 2,
"page_content" : "test data for check. for . test the data"
},
{
"page_number" : 3,
"page_content" : "sample second.test and test"
}
]
}
{
"book_name": "third",
"pages" : [
{
"page_number" : 1,
"page_content" : "data for test. test test test test"
},
{
"page_number" : 2,
"page_content" : " the data"
},
{
"page_number" : 3,
"page_content" : "sample third."
}
]
}
now I should make a search query that should look on ALL pages of each book and give me score of the whole book(all pages) .