Add infrastructure for *suffix filter indexes

This commit is contained in:
TeoV
2020-07-27 16:00:33 +03:00
committed by Dan Christian Bogos
parent 3ec344bdf1
commit 05e2377d3c
22 changed files with 123 additions and 6 deletions

View File

@@ -75,6 +75,7 @@ func (alS *AttributeService) attributeProfileForEvent(args *AttrArgsProcessEvent
aPrflIDs, err := MatchingItemIDsForEvent(evNm,
alS.cgrcfg.AttributeSCfg().StringIndexedFields,
alS.cgrcfg.AttributeSCfg().PrefixIndexedFields,
alS.cgrcfg.AttributeSCfg().SuffixIndexedFields,
alS.dm, utils.CacheAttributeFilterIndexes, attrIdxKey,
alS.cgrcfg.AttributeSCfg().IndexedSelects,
alS.cgrcfg.AttributeSCfg().NestedFields,
@@ -86,6 +87,7 @@ func (alS *AttributeService) attributeProfileForEvent(args *AttrArgsProcessEvent
if aPrflIDs, err = MatchingItemIDsForEvent(evNm,
alS.cgrcfg.AttributeSCfg().StringIndexedFields,
alS.cgrcfg.AttributeSCfg().PrefixIndexedFields,
alS.cgrcfg.AttributeSCfg().SuffixIndexedFields,
alS.dm, utils.CacheAttributeFilterIndexes,
utils.ConcatenatedKey(args.Tenant, utils.META_ANY),
alS.cgrcfg.AttributeSCfg().IndexedSelects,