From: Eduard D. <ed...@fr...> - 2021-01-13 16:47:31
|
I can confirm that the fields approach works in combination with different analyzers. Thanks! -----Original Message----- From: Joe Wicentowski <jo...@gm...<mailto:Joe%20Wicentowski%20%3cj...@gm...%3e>> To: Eduard Drenth <ed...@fr...<mailto:Eduard%20Drenth%20%3ce...@fr...%3e>> Cc: exi...@li... <exi...@li...<mailto:%22e...@li...%22%20%3ce...@li...%3e>> Subject: Re: [Exist-open] diacritic switch Date: Tue, 12 Jan 2021 09:10:14 -0500 Hi Eduard, eXist 5's fields feature makes it possible to create different indexes on the same content and query a specific one. See the documentation: https://exist-db.org/exist/apps/doc/lucene#facets-and-fields See especially the section, "Conditions." Building on this, you'll just need to find analyzers or expressions that are case and diacritics (in-)sensitive and hook these into your field definition. Joe On Tue, Jan 12, 2021 at 4:29 AM Eduard Drenth <ed...@fr...<mailto:ed...@fr...>> wrote: If this isn't possible I will create a copy collection with a separate collection.xconf -----Original Message----- From: Eduard Drenth <ed...@fr...<mailto:Eduard%20Drenth%20%3ce...@fr...%3e>> To: exi...@li...<mailto:exi...@li...> <exi...@li...<mailto:%22e...@li...%22%20%3ce...@li...%3e>> 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...<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<http://frisian.eu> gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder _______________________________________________ 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<http://frisian.eu> gpg: https://pgp.surfnet.nl/pks/lookup?search=eduarddrenth Op freed bin ik thús/wurkje ik minder _______________________________________________ Exist-open mailing list Exi...@li...<mailto:Exi...@li...> 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 |