I am having issues indexing data which may be due to my lack of expertise in this area.
When indexing data, the content I dump as a json document.description
is taken into consideration when querying but what I put as a json document.metadataJson
is not taken into account.
Let’s take for instance this document:
{
"id": "10",
"metadata": {
"website": "stcharbel.ca",
"title": "St. Charbel - Ottawa",
"desc": "{\"Phone Number\": \"+1 (613) 749-9494\", \"Description\": \"From humble beginnings at 87 Mann Avenue, the Maronite community in Ottawa dedicated its efforts in search of a bigger home for a growing community. In 1994, with the blessing of His Excellency Bishop Georges Abi Saber, the Maronite community in Ottawa purchased its current home located at 245 Donald St., with its additional parking facilities that accommodate more than 300 automobiles. The church was dedicated to St. Charbel, who is the first saint of the Lebanese Maronite Order.\", \"Facebook Page\": \"stcharbelottawa\", \"Address\": \"245 Donald St, Ottawa, ON K1K 1N1, Canada\", \"Geohash\": \"f244qmgv84er\", \"Coordinates\": \"Lat: 45.4280523, Lng: -75.6576875\", \"Slug\": \"st-charbel-ottawa\", \"Tagline\": \" Celebrating over 1600 years of Heritage, Faith and Resilience\", \"Active Status\": \"Inactive\", \"Created At\": \"2024-01-07 13:24:09.694000\", \"Updated At\": \"2024-01-07 13:24:16.067000\", \"Published At\": \"2024-01-07 13:24:16.063000\"}"
}
}
Querying about anything in the description like the phone number will work:
capture
But querying about the website which is outside of the description will not work:
capture
Why is it so? I have tried adding doc.website
as a filter attribute (see what I encircled in red) but LLM still can’t give answers about it.
Am I missing something? Please let me know, I think that dumping all of the document’s data in the description is not the way to go from what I have seen in the demos and the doc.