Fuzzy full-text query

Tuesday, 6 July 2021 · 2 messages
CG
Christian Grünin reply to Tim Thompson, 6 Jul 2021, 23:236 Jul 2021 21:30 #
Hi Tim, Thanks for the hint, I have updated the documentation. The computed error value is 0 if a token has 0 to 3 characters. All the best, Christian
Quoted text · Tim Thompson · 23 lines
On Tue, Jul 6, 2021 at 9:24 PM Tim Thompson <timathom at gmail.com> wrote: > > Hello, > > I am trying to match a local dataset against entries in a full-text index. I ran into the following case and was confused about the fuzzy querying performance: > > <x>Baxter, Richard, 1615-1691</x>[text() contains text "Baxter, Richard, 615-1691" using fuzzy] > > The BaseX documentation says that the default fuzzy search will preserve a minimum of 1 error. However, the query above returns no result. If I add the "errors" parameter with a value of 1, it does work: > > <x>Baxter, Richard, 1615-1691</x>[text() contains text "Baxter, Richard, 615-1691" using fuzzy 1 errors] > > Is this expected behavior? > > Thanks in advance, > Tim > > > -- > Tim A. Thompson > Librarian for Applied Metadata Research > Yale University Library >
TT
Tim Thompson6 Jul 2021 23:23 #
Hello, I am trying to match a local dataset against entries in a full-text index. I ran into the following case and was confused about the fuzzy querying performance: <x>Baxter, Richard, 1615-1691</x>[text() contains text "Baxter, Richard, 615-1691" using fuzzy] The BaseX documentation says that the default fuzzy search will preserve a minimum of 1 error. However, the query above returns no result. If I add the "errors" parameter with a value of 1, it does work: <x>Baxter, Richard, 1615-1691</x>[text() contains text "Baxter, Richard, 615-1691" using fuzzy 1 errors] Is this expected behavior? Thanks in advance, Tim
-- Tim A. Thompson Librarian for Applied Metadata Research Yale University Library

⚡Generated with XQuery