Ejemplo n.º 1
0
        public void Add(IIndexable item)
        {
            foreach (string s in item.GetSplittedIndexStrings())
            {
                HashSet <uint> collection = new HashSet <uint>();

                // Index only root
                if (!IndexEntries.TryGetValue(s, out collection))
                {
                    collection = new HashSet <uint>();
                    IndexEntries.Add(s, collection);
                }
                collection.Add(item.ID);
            }
        }
Ejemplo n.º 2
0
        public void Add(IIndexable item)
        {
            foreach (string s in item.GetSplittedIndexStrings())
            {
                HashSet<uint> collection = new HashSet<uint>();

                // Index only root
                if (!IndexEntries.TryGetValue(s, out collection))
                {
                    collection = new HashSet<uint>();
                    IndexEntries.Add(s, collection);
                }
                collection.Add(item.ID);
            }
        }