24 lines
409 B
C#
24 lines
409 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace SearchBox
|
|||
|
{
|
|||
|
public class InvertedIndex
|
|||
|
{
|
|||
|
private Dictionary<string, Dictionary<int, List<int>>> invertedIndex = new Dictionary<string, Dictionary<int, List<int>>>();
|
|||
|
|
|||
|
public InvertedIndex()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public bool AddIndex(Index newIndex)
|
|||
|
{
|
|||
|
foreach (KeyValuePair<string, List<int>> token in newIndex)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
return true;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|