cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Scoring results from multiple indices

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 ?

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.