{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5197","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5197/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5197/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5197/events","html_url":"https://github.com/orientechnologies/orientdb/issues/5197","id":112531160,"number":5197,"title":"QueryParser fails to accommodate case-sensitive analyzers","user":{"login":"robfrank","id":413587,"avatar_url":"https://avatars.githubusercontent.com/u/413587?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrank","html_url":"https://github.com/robfrank","followers_url":"https://api.github.com/users/robfrank/followers","following_url":"https://api.github.com/users/robfrank/following{/other_user}","gists_url":"https://api.github.com/users/robfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrank/subscriptions","organizations_url":"https://api.github.com/users/robfrank/orgs","repos_url":"https://api.github.com/users/robfrank/repos","events_url":"https://api.github.com/users/robfrank/events{/privacy}","received_events_url":"https://api.github.com/users/robfrank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"maggiolo00","id":98812,"avatar_url":"https://avatars.githubusercontent.com/u/98812?v=3","gravatar_id":"","url":"https://api.github.com/users/maggiolo00","html_url":"https://github.com/maggiolo00","followers_url":"https://api.github.com/users/maggiolo00/followers","following_url":"https://api.github.com/users/maggiolo00/following{/other_user}","gists_url":"https://api.github.com/users/maggiolo00/gists{/gist_id}","starred_url":"https://api.github.com/users/maggiolo00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggiolo00/subscriptions","organizations_url":"https://api.github.com/users/maggiolo00/orgs","repos_url":"https://api.github.com/users/maggiolo00/repos","events_url":"https://api.github.com/users/maggiolo00/events{/privacy}","received_events_url":"https://api.github.com/users/maggiolo00/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-10-21T07:59:12Z","updated_at":"2015-10-21T07:59:15Z","closed_at":null,"body":"_From @retrography on April 24, 2015 23:3_\n\nLucene's QueryParser applies a lower case filter on expanded queries by default (wildcard, fuzzy, etc...), and there doesn't seem to be any configuration in OrientDB to modify this behavior. This prevents the use of all case-sensitive analyzers like KeywordAnalyzer.\r\n\r\nIt is possible to set this behavior automatically for the well-known case-sensitive analyzers, but given that we can load custom analyzers in OrientDB, there must be a way to configure it manually as well.\r\n\r\nHere is the potential fix:\r\n\r\n``` Java\r\nqueryParser.setLowercaseExpandedTerms(false);\r\n```\r\n\r\nYou can read about the issue that I have confronted [here](http://stackoverflow.com/questions/29853405) if you would like to reproduce the issue.\n\n_Copied from original issue: orientechnologies/orientdb-lucene#47_"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/149809395","html_url":"https://github.com/orientechnologies/orientdb/issues/5197#issuecomment-149809395","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/5197","id":149809395,"user":{"login":"robfrank","id":413587,"avatar_url":"https://avatars.githubusercontent.com/u/413587?v=3","gravatar_id":"","url":"https://api.github.com/users/robfrank","html_url":"https://github.com/robfrank","followers_url":"https://api.github.com/users/robfrank/followers","following_url":"https://api.github.com/users/robfrank/following{/other_user}","gists_url":"https://api.github.com/users/robfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/robfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robfrank/subscriptions","organizations_url":"https://api.github.com/users/robfrank/orgs","repos_url":"https://api.github.com/users/robfrank/repos","events_url":"https://api.github.com/users/robfrank/events{/privacy}","received_events_url":"https://api.github.com/users/robfrank/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T07:59:15Z","updated_at":"2015-10-21T07:59:15Z","body":"_From @maggiolo00 on May 30, 2015 11:30_\n\n@retrography \r\n\r\ni will do another things. \r\n\r\ni would like to support this syntax\r\n\r\n```\r\nselect * from _tempt where [hash] lucene { \"q\" : \"wemfOGxqCfOTPi0ND~0.8\", \"options\"  :{\"LowercaseExpandedTerms\": \"false\"} \r\n```\r\n\r\nIf you go to branch develop in method \r\ncreateFullQuery of OLuceneIndexType\r\n\r\nyou can parse there additional options and set them to the QueryParser.\r\n\r\n \r\n"}}