Hi, looking at the stateful nature of SynonymGraphFilter/FilterFactory classes, the answer should be 2 times (one time per type instance). The SynonymMap, which internally holds the synonyms table, is a private member of the filter factory and it is loaded each time the factory needs to create a type.
Best, Andrea -- Andrea Gazzarini *Search Consultant, R&D Software Engineer* www.sease.io email: a.gazzar...@sease.io cell: +39 349 513 86 25 On 29/09/2019 23:49, Dominique Bejean wrote: Hi, My concern is about memory used by synonym filter, especially if synonyms resources files are large. If in my schema, there are two field types "TypeSyno1" and "TypeSyno2" using synonym filter with the same synonyms files. For each of these two field types there are two fields Field1 type is TypeSyno1 Field2 type is TypeSyno1 Field3 type is TypeSyno2 Field4 type is TypeSyno2 How many times is the synonym file loaded in memory ? 4 times, so one time per field ? 2 times, so one time per instanciated type ? Regards Dominique