From: Eduard D. <ed...@fr...> - 2021-01-13 08:07:44
|
I don't think so, for the switch I must be able to: 1) search a normalized index with a normalized search term 2) search a raw index with a raw search term Using index fields (see joe's answer) and normalize may work. Regards, Eduard -----Original Message----- From: Duncan Paterson <du...@ex...<mailto:Duncan%20Paterson%20%3cd...@ex...%3e>> To: exist-open <exi...@li...<mailto:exist-open%20%3ce...@li...%3e>> Subject: Re: [Exist-open] diacritic switch (Eduard Drenth) Date: Tue, 12 Jan 2021 14:52:29 +0100 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 ******************************************* _______________________________________________ Exist-open mailing list <mailto:Exi...@li...> Exi...@li... <https://lists.sourceforge.net/lists/listinfo/exist-open> https://lists.sourceforge.net/lists/listinfo/exist-open -- Eduard Drenth, Software Architekt 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 |