Skip to content

Commit

Permalink
Merge pull request #3390 from johnphamvan/patch-1
Browse files Browse the repository at this point in the history
Less controversial documentation example
  • Loading branch information
kkraune authored Sep 20, 2024
2 parents 69e72fc + f5bd5b9 commit 5fa49b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions en/query-rewriting.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ <h2 id="equiv">EQUIV</h2>
See the <a href="reference/query-language-reference.html#equiv">reference</a>
for differences between OR and EQUIV.
In many cases it might be better to use OR instead of EQUIV.
Example Sean <em>Diddy</em> Combs:
Example <em>Snoop</em> Dogg:
</p>
<pre>
"Diddy" EQUIV "Sean Combs" EQUIV "Sean John" EQUIV "Puff Daddy" EQUIV "P. Diddy"
"Snoop" EQUIV "Snoop Doggy Dogg" EQUIV "Snoop Lion" EQUIV "Calvin Broadus" EQUIV "Calvin Cordozar Broadus Junior"
</pre>
<p>
However <em>Diddy</em> is used by other people -
However <em>Snoop</em> is used by other people -
so matching that alone is not a sure hit for the correct entity,
and finding more than one of the synonyms in the same text gives better confidence.
This is exactly what OR does:
</p>
<pre>
"Diddy"!20 OR "Sean Combs"!75 OR "Sean John"!75 OR "Puff Daddy"!80 OR "P. Diddy"!60 OR "Sean John Combs"!100
"Snoop"!20 OR "Snoop Doggy Dogg"!90 OR "Snoop Lion"!75 OR "Calvin Broadus"!60 OR "Calvin Cordozar Broadus Junior"!100
</pre>
<p>
Use lower weights on the alternatives with less confidence.
Expand Down

0 comments on commit 5fa49b2

Please sign in to comment.