Hi all, I have debugged a bit the class FulltextIndexPlanner, especially this method
https://github.com/apache/jackrabbit-oak/blob/1bcc171b04c1fdadbd5be86661582fa71c543cfe/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndexPlanner.java#L961 I would like to have a discussion with you: My definition of index includes three node types that are hierarchical to each other: * car inherits from motorvehicle which inherits from vehicle so in index definition I have three indexRule, one for each nodetype and in each of them there are specified some properties to be indexed. First of all, I found that the order in which I write the node types within the index definition is crucial because: * If I start with "vehicle" and run a query which uses a property indexed with node type "car", a wrong "applicable rule" is found and the query planner is null and query returns 0 results stating that there is no index * If I start with "car" and run the same query, then the right applicable rule is found and all it's ok Now I will try to specify only the last node type in the hierarchy within the index rules of my index definition. This way, I eliminate the possibility of parent node types being used. Don't you think there's something that needs to be revised in that algorithm? Thanks Cordiali saluti / Best regards, Raffaele Gambelli Application Architect E [email protected]<mailto:[email protected]> M +39 3371641888 [cid:8d7fedee-4b64-499c-9c34-52b9db331e1b] [CEGEKA] Via Ettore Cristoni, 84 IT-40033 Bologna (IT), Italy T +39 02 2544271 WWW.CEGEKA.COM<https://www.cegeka.com> Dichiarazione di Riservatezza<https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_kNB9Wd0YEgwjf9o2/go/uHO> Le informazioni contenute nella mail sono riservate. Se si rende conto di non essere il destinatario corretto della mail, la preghiamo di segnalare l'errore al mittente e di cancellare immediatamente il messaggio. L’utilizzo improprio di informazioni riservate può comportare sanzioni.<https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_kNB9Wd0YEgwjf9o2/go/uHO> Protezione dei dati personali<https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_kNB9Wd0YEgwjf9o2/go/uHO> La informiamo che i suoi dati saranno trattati da Cegeka nel rispetto delle disposizioni di legge applicabili (D. Lgs 196/2003 e Regolamento UE 679/2016). Per maggiori dettagli può consultare le nostre informative privacy al link <https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_kNB9Wd0YEgwjf9o2/go/uHO> https://www.cegeka.com/it/informazioni-sulla-privacy<https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_kNB9Wd0YEgwjf9o2/go/NsT>.<https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_kNB9Wd0YEgwjf9o2/go/uHO>
