fix(bm25): align queryFTSViaExecutor nodeId extraction to match lbug-adapter

Use node.nodeId || node.id || '' in queryFTSViaExecutor to match the
fallback logic in lbug-adapter.ts:1040. Without this, the MCP pool path
could silently return empty nodeIds if LadybugDB surfaces the node id
under node.nodeId rather than node.id.
This commit is contained in:
jisue0224 2026-04-21 00:51:16 +09:00
parent 6f995e30fb
commit dfe05cbf2e

View file

@ -41,7 +41,7 @@ async function queryFTSViaExecutor(
return {
filePath: node.filePath || '',
score: typeof score === 'number' ? score : parseFloat(score) || 0,
nodeId: node.id || '',
nodeId: node.nodeId || node.id || '',
};
});
} catch {