{"action":"opened","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4820","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4820/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4820/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4820/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4820","id":101835881,"number":4820,"title":"Lucene Spatial return invalid result ","user":{"login":"martingg88","id":7898120,"avatar_url":"https://avatars.githubusercontent.com/u/7898120?v=3","gravatar_id":"","url":"https://api.github.com/users/martingg88","html_url":"https://github.com/martingg88","followers_url":"https://api.github.com/users/martingg88/followers","following_url":"https://api.github.com/users/martingg88/following{/other_user}","gists_url":"https://api.github.com/users/martingg88/gists{/gist_id}","starred_url":"https://api.github.com/users/martingg88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martingg88/subscriptions","organizations_url":"https://api.github.com/users/martingg88/orgs","repos_url":"https://api.github.com/users/martingg88/repos","events_url":"https://api.github.com/users/martingg88/events{/privacy}","received_events_url":"https://api.github.com/users/martingg88/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-19T08:34:38Z","updated_at":"2015-08-19T08:34:38Z","closed_at":null,"body":"i found out a bug as follows: \r\n\r\nselect  *, distance(lat, lng, 3.1333, 101.3833)\r\nfrom (SELECT EXPAND(OUT(\"target\")) FROM #45:6)\r\nwhere distance(lat, lng, 3.1333, 101.3833) <= 100\r\n\r\n--- return a set of correct result \r\n\r\nselect  *, distance(lat, lng, 3.1333, 101.3833)\r\nfrom (SELECT EXPAND(OUT(\"target\")) FROM #45:6)\r\nwhere [lat, lng, $spatial] NEAR [3.1333, 101.3833, {'maxDistance' : 100000}]\r\n\r\n------- return nothing/empty result"}}