{"action":"created","issue":{"url":"https://api.github.com/repos/nmslib/nmslib/issues/346","repository_url":"https://api.github.com/repos/nmslib/nmslib","labels_url":"https://api.github.com/repos/nmslib/nmslib/issues/346/labels{/name}","comments_url":"https://api.github.com/repos/nmslib/nmslib/issues/346/comments","events_url":"https://api.github.com/repos/nmslib/nmslib/issues/346/events","html_url":"https://github.com/nmslib/nmslib/issues/346","id":361410223,"node_id":"MDU6SXNzdWUzNjE0MTAyMjM=","number":346,"title":"HNSW -- Can't Save a Loaded Optimized Index","user":{"login":"e45lee","id":3325066,"node_id":"MDQ6VXNlcjMzMjUwNjY=","avatar_url":"https://avatars2.githubusercontent.com/u/3325066?v=4","gravatar_id":"","url":"https://api.github.com/users/e45lee","html_url":"https://github.com/e45lee","followers_url":"https://api.github.com/users/e45lee/followers","following_url":"https://api.github.com/users/e45lee/following{/other_user}","gists_url":"https://api.github.com/users/e45lee/gists{/gist_id}","starred_url":"https://api.github.com/users/e45lee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e45lee/subscriptions","organizations_url":"https://api.github.com/users/e45lee/orgs","repos_url":"https://api.github.com/users/e45lee/repos","events_url":"https://api.github.com/users/e45lee/events{/privacy}","received_events_url":"https://api.github.com/users/e45lee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-09-18T17:38:52Z","updated_at":"2018-09-19T00:07:50Z","closed_at":null,"author_association":"NONE","body":"Currently one can't save a optimized index for HNSW that was previously loaded.  Trying to load such a saved index causes NMSLib to crash.\r\n\r\nAs far as I can tell, it's cause it uses `ElList_.size()` to determine what to write: https://github.com/nmslib/nmslib/blob/aae2cbf315627e33e4475c7f4640252efa45c066/similarity_search/src/method/hnsw.cc#L754\r\nbut it never saves `ElList_`, nor does LoadOptimizedIndex restore `ElList_`:\r\nhttps://github.com/nmslib/nmslib/blob/aae2cbf315627e33e4475c7f4640252efa45c066/similarity_search/src/method/hnsw.cc#L1002-L1050"},"comment":{"url":"https://api.github.com/repos/nmslib/nmslib/issues/comments/422600505","html_url":"https://github.com/nmslib/nmslib/issues/346#issuecomment-422600505","issue_url":"https://api.github.com/repos/nmslib/nmslib/issues/346","id":422600505,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjYwMDUwNQ==","user":{"login":"searchivarius","id":825650,"node_id":"MDQ6VXNlcjgyNTY1MA==","avatar_url":"https://avatars0.githubusercontent.com/u/825650?v=4","gravatar_id":"","url":"https://api.github.com/users/searchivarius","html_url":"https://github.com/searchivarius","followers_url":"https://api.github.com/users/searchivarius/followers","following_url":"https://api.github.com/users/searchivarius/following{/other_user}","gists_url":"https://api.github.com/users/searchivarius/gists{/gist_id}","starred_url":"https://api.github.com/users/searchivarius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/searchivarius/subscriptions","organizations_url":"https://api.github.com/users/searchivarius/orgs","repos_url":"https://api.github.com/users/searchivarius/repos","events_url":"https://api.github.com/users/searchivarius/events{/privacy}","received_events_url":"https://api.github.com/users/searchivarius/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T00:07:50Z","updated_at":"2018-09-19T00:07:50Z","author_association":"MEMBER","body":"Yes, it does, thank you. Well, currently this still very much experimental code: one can use it, but it is not very robust. I plan to address it in a new version though. "}}
{"actor":{"display_login":"searchivarius"}}