Title: No check for metric value · Issue #14 · spotify/annoy-java · GitHub
Open Graph Title: No check for metric value · Issue #14 · spotify/annoy-java
X Title: No check for metric value · Issue #14 · spotify/annoy-java
Description: Hello, I have faced the issue: index is created using default metric in python. index is read in java with Euclidean metric without error. On search raised following error: java.lang.ArrayIndexOutOfBoundsException: 2820 at com.spotify.an...
Open Graph Description: Hello, I have faced the issue: index is created using default metric in python. index is read in java with Euclidean metric without error. On search raised following error: java.lang.ArrayIndexOutO...
X Description: Hello, I have faced the issue: index is created using default metric in python. index is read in java with Euclidean metric without error. On search raised following error: java.lang.ArrayIndexOutO...
Opengraph URL: https://github.com/spotify/annoy-java/issues/14
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No check for metric value","articleBody":"Hello,\r\n\r\nI have faced the issue:\r\n\r\n1. index is created using default metric in python.\r\n2. index is read in java with Euclidean metric without error.\r\n\r\nOn search raised following error:\r\njava.lang.ArrayIndexOutOfBoundsException: 2820\r\n\tat com.spotify.annoy.ANNIndex.getIntInAnnBuf(ANNIndex.java:133) ~[annoy-0.2.6-SNAPSHOT.jar:na]\r\n\tat com.spotify.annoy.ANNIndex.getNearest(ANNIndex.java:257) ~[annoy-0.2.6-SNAPSHOT.jar:na]\r\n\r\nWhere 2820 number depend so how on index size. \r\n\r\nI think it should be some check for valid metric. \r\n","author":{"url":"https://github.com/sstolpovskiy","@type":"Person","name":"sstolpovskiy"},"datePublished":"2018-02-26T13:16:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/14/annoy-java/issues/14"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:18a8af34-5db9-a346-f2b2-a8a80c0dff4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B4A:1BF4D5:22BF51B:2CD12E9:69928C52 |
| html-safe-nonce | eb97e4b47b970994cde6fc5fbfda21abc79ce868d9435377e4c1789c02e6c6ab |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QjRBOjFCRjRENToyMkJGNTFCOjJDRDEyRTk6Njk5MjhDNTIiLCJ2aXNpdG9yX2lkIjoiNjYxNzAyMzQzOTE2MDExODM1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9dced9e0255fb0ddeb770887db0a2d4ed53ac9043efff2ad691529e03d65f49e |
| hovercard-subject-tag | issue:300234834 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/spotify/annoy-java/14/issue_layout |
| twitter:image | https://opengraph.githubassets.com/629037c34b187d6a91e03316fb52db3e8047bb6bdcaea2bfb176c1b3836a1b66/spotify/annoy-java/issues/14 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/629037c34b187d6a91e03316fb52db3e8047bb6bdcaea2bfb176c1b3836a1b66/spotify/annoy-java/issues/14 |
| og:image:alt | Hello, I have faced the issue: index is created using default metric in python. index is read in java with Euclidean metric without error. On search raised following error: java.lang.ArrayIndexOutO... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sstolpovskiy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/spotify/annoy-java git https://github.com/spotify/annoy-java.git |
| octolytics-dimension-user_id | 251374 |
| octolytics-dimension-user_login | spotify |
| octolytics-dimension-repository_id | 30090784 |
| octolytics-dimension-repository_nwo | spotify/annoy-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 30090784 |
| octolytics-dimension-repository_network_root_nwo | spotify/annoy-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width