added linux install script

This commit is contained in:
ston1th 2019-08-03 20:48:12 +02:00
commit 2e71b60248
4 changed files with 42 additions and 2 deletions

View file

@ -36,6 +36,10 @@ func NewIndex(path string) (i *Index, err error) {
if _, err = os.Stat(path); os.IsNotExist(err) {
var m *mapping.IndexMappingImpl
m, err = createMapping()
if err != nil {
err = errors.New("index: " + err.Error())
return
}
//m := bleve.NewIndexMapping()
bi, err = bleve.New(path, m)
if err != nil {