From: PIERRICK B. <Pie...@br...> - 2021-01-12 15:07:23
|
Hello, When we introduced indexes in eXist some... 13 years ago , I planned a multi-indexing fixture, i.e. every text content would be indexed into several indexes. Unfortunately, this hasn't been developed yet, but I think it could be a very interesting feature to implement. It goes much further than "simply" treating diacritics IMHO. I've made such an approach with my arabic analyzer http://www.nongnu.org/aramorph/english/lucene.html. You can query an arabic text in arabic or in english and get a result, sometimes totally inaccurate I must admit :-) Cheers, p.b. ________________________________________ De : Duncan Paterson <du...@ex...> Envoyé : mardi 12 janvier 2021 14:52 À : exist-open Objet : Re: [Exist-open] diacritic switch (Eduard Drenth) Dear Eduard, wouldn’t unicode decomposition via http://www.xqueryfunctions.com/xq/fn_normalize-unicode.html be the easier option here? Is there something not working with that approach? Greetings Duncan Ceterum censeo exist-db.org<http://exist-db.org> esse conriganda 1. diacritic switch (Eduard Drenth) 2. Re: diacritic switch (Eduard Drenth) ---------------------------------------------------------------------- Message: 1 Date: Tue, 12 Jan 2021 07:08:50 +0000 From: Eduard Drenth <ed...@fr...<mailto:ed...@fr...>> To: "exi...@li...<mailto:exi...@li...>" <exi...@li...<mailto:exi...@li...>> Subject: [Exist-open] diacritic switch Message-ID: <c21...@fr...<mailto:c21...@fr...>> Content-Type: text/plain; charset="utf-8" Dear all, Can I programmatically query a specific index? I want to offer my users a switch for case and diacritics sensitivity. For this I want to define two indexes using different analyzers. Then I want to query one or the other depending on the switch. Can this be done this way? Bye, Eduard -- Eduard Drenth, Software Architekt ed...@fr...<mailto:ed...@fr...><mailto:ed...@fr...> Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (priv?) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik th?s/wurkje ik minder -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ Message: 2 Date: Tue, 12 Jan 2021 09:27:56 +0000 From: Eduard Drenth <ed...@fr...> To: "exi...@li..." <exi...@li...> Subject: Re: [Exist-open] diacritic switch Message-ID: <7a2...@fr...> Content-Type: text/plain; charset="utf-8" If this isn't possible I will create a copy collection with a separate collection.xconf -----Original Message----- From: Eduard Drenth <ed...@fr...> To: exi...@li... <exi...@li...> Subject: [Exist-open] diacritic switch Date: Tue, 12 Jan 2021 07:08:50 +0000 Dear all, Can I programmatically query a specific index? I want to offer my users a switch for case and diacritics sensitivity. For this I want to define two indexes using different analyzers. Then I want to query one or the other depending on the switch. Can this be done this way? Bye, Eduard -- Eduard Drenth, Software Architekt ed...@fr... Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (priv?) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik th?s/wurkje ik minder _______________________________________________Exist-open mailing lis...@li... https://lists.sourceforge.net/lists/listinfo/exist-open -- Eduard Drenth, Software Architekt ed...@fr... Doelestrjitte 8 8911 DX Ljouwert +31 58 234 30 47 +31 62 094 34 28 (priv?) skype: eduarddrenth https://github.com/eduarddrenth frisian.eu gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik th?s/wurkje ik minder -------------- next part -------------- An HTML attachment was scrubbed... -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 488 bytes Desc: This is a digitally signed message part ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Exist-open mailing list Exi...@li... https://lists.sourceforge.net/lists/listinfo/exist-open ------------------------------ End of Exist-open Digest, Vol 177, Issue 12 ******************************************* |