referenceQuery() runs first: nodes whose field_reference is one of the references of the phrase, uppercased (the field is case-sensitive: w0117 and t0122 found nothing, B2), first and counted as exact. The reference condition is removed from the OR query, where it restricted the results to the referenced nodes (« bois R0208 » found nothing). References are removed from the keywords; references alone run a single query (isReferenceSearch()). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ShDspHaZGwHoRZCsPBJzsM