added linux install script
This commit is contained in:
parent
aece63361d
commit
2e71b60248
4 changed files with 42 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue