This project is intended for educational purposes.
index := NewIndex(
Mapping{
Attributes: map[string]analyzers.Analyzer{
"body": analyzers.NewSimpleAnalyzer(),
},
},
)
docA := core.Document{
Attributes: map[string]string{
"body": "The quick brown fox jumps over the lazy dog",
},
}
index.Index(docA)
searchResult := index.Search("body", "quick fox")
Project inspired by the presentation "Building A Python-Based Search Engine" on Pycon US 2012 by Daniel Lindsley.