cancel
Showing results for 
Search instead for 
Did you mean: 

Scoring results from multiple indices

alizadehei
Node Link

Hi everybody,
i want to in a query, search on multiple indices. And then sort the results by score.
But the problem is that each query on the index returns a separate score.
How to integrate these Scores?

2 REPLIES 2

12kunal34
Graph Fellow

could you please provide us the query so we can help you better ?

alizadehei
Node Link

call db.index.fulltext.queryNodes('nodeIndex','x') YIELD node,score
return node.title as title,score
union
call db.index.fulltext.queryRelationships('relationIndex','x') YIELD relationship,score
return relationship.title as title,score

Now if we want to sort the results of this query by score, the scores are not comparable.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.