Description
My NearText queries where I request the “distance” are returning NULL for distance. Here is a sample query:
{ Get { SolrCopy ( limit: 10 hybrid: { query: "Key concerns surrounding genocide and its impact on social justice" alpha: 0.8 } where: { operator: And, operands: [ { path: ["site"], operator: Equal, valueText:"https://bible.booksai.org/"},{ operator: Or, operands: [ { path: ["groups"], operator: Equal, valueText: "Tanakh" }, { path: ["groups"], operator: Equal, valueText: "Talmud" }, { path: ["groups"], operator: Equal, valueText: "Jewish Thought" } ] } ] } ){ _additional { distance } docId site title nid type public url content taxonomy groups date summary questions sourceUrl } } }
And this is what is returned:
{
"data": {
"Get": {
"SolrCopy": [
{
"_additional": null,
"content": "blah, blah...",
"date": "",
"docId": "demo9-13891-01-fid-147876-6",
"groups": [
"Public",
"Jewish Thought",
"Theology",
"Abraham Joshua Heschel"
],
"nid": 13891,
"public": "N",
"questions": "",
"site": "https://bible.booksai.org/",
"sourceUrl": "https://archive.org/details/manisnotalonephi0000abra/page/179/mode/2up",
"summary": "",
"taxonomy": [],
"title": "Heschel | Man is Not Alone | 18. The Problem of Needs",
"type": "file",
"url": "https://bible.booksai.org/system/files/[Man is Not Alone]_18 The Problem of Needs.pdf"
},
and so on…
Server Setup Information
- Weaviate Server Version: 1.24.6
- Deployment Method:
Any additional Information
This query does return the distance property:
Get {
SolrCopy (
limit: 10
nearText: {
concepts: ["show only content with nid equal to 3041"],
}
where: {
operator: Equal
valueInt: 3041
path: ["nid"]
}
){
_additional{
distance
}
docId
site
title
nid
public
url
content
}
}
}
{
"data": {
"Get": {
"SolrCopy": [
{
"_additional": {
"distance": 0.22641623
},
"content": "t control",
"docId": "realestatebooksai-3041-03-pid-3745-1",
"nid": 3041,
"public": "Y",
"site": "https://ca.realestatebooksai.com/",
"title": "Do a city’s annual rental inspections violate tenants’ rights to privacy or state law?",
"url": "https://ca.realestatebooksai.com/node/3041"
},
I also noticed that if I query for both id and distance:
_additional { id distance }
I get:
{
"data": {
"Get": {
"SolrCopy": [
{
"_additional": {
"distance": null,
"id": "2da32b6a-6899-445b-5f4b-a7dcb4be4e3e"
},
"content": "pecial attention paid to some object. But do we pay
Confused. Is this a bug? How do I address this?