From: Joe W. <jo...@gm...> - 2021-01-12 14:10:40
|
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...> wrote: > If this isn't possible I will create a copy collection with a separate > collection.xconf > > -----Original Message----- > *From*: Eduard Drenth <ed...@fr... > <Eduard%20Drenth%20%3ce...@fr...%3e>> > *To*: exi...@li... <exi...@li... > <%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... > > 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 list > > Exi...@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 > > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open > |