{"action":"created","issue":{"url":"https://api.github.com/repos/Stratio/cassandra-lucene-index/issues/231","repository_url":"https://api.github.com/repos/Stratio/cassandra-lucene-index","labels_url":"https://api.github.com/repos/Stratio/cassandra-lucene-index/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/Stratio/cassandra-lucene-index/issues/231/comments","events_url":"https://api.github.com/repos/Stratio/cassandra-lucene-index/issues/231/events","html_url":"https://github.com/Stratio/cassandra-lucene-index/issues/231","id":187342432,"number":231,"title":"Can't create an index with a custom analyzer","user":{"login":"maxim5","id":2580604,"avatar_url":"https://avatars.githubusercontent.com/u/2580604?v=3","gravatar_id":"","url":"https://api.github.com/users/maxim5","html_url":"https://github.com/maxim5","followers_url":"https://api.github.com/users/maxim5/followers","following_url":"https://api.github.com/users/maxim5/following{/other_user}","gists_url":"https://api.github.com/users/maxim5/gists{/gist_id}","starred_url":"https://api.github.com/users/maxim5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxim5/subscriptions","organizations_url":"https://api.github.com/users/maxim5/orgs","repos_url":"https://api.github.com/users/maxim5/repos","events_url":"https://api.github.com/users/maxim5/events{/privacy}","received_events_url":"https://api.github.com/users/maxim5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-04T14:08:27Z","updated_at":"2016-11-14T14:35:01Z","closed_at":null,"body":"Cassandra version: 3.5\r\n\r\nI've created a simple analzyer, packed it into a jar, put it into Cassandra lib.\r\n\r\nI can see it in classpath output:\r\n```\r\nINFO  13:58:06 Classpath: ...:./../lib/cassandra-lucene-custom-analyzers.jar:./../lib/cassandra-lucene-index-plugin-3.5.0.jar\r\n```\r\n\r\nBut `CREATE CUSTOM INDEX` fails:\r\n```\r\ncqlsh:demo> CREATE CUSTOM INDEX files_index ON files ()\r\n        ... USING 'com.stratio.cassandra.lucene.Index'\r\n        ... WITH OPTIONS = {\r\n        ...    'refresh_seconds': '1',\r\n        ...    'schema': '{\r\n        ...       \"analyzers\":{\r\n        ...         \"code\":{\r\n        ...           \"type\":\"classpath\",\r\n        ...           \"class\":\"my.lucene.MyAnalyzer\"\r\n        ...         }\r\n        ...       },\r\n        ...       fields: {\r\n        ...          content: {type: \"text\", analyzer: \"code\"}\r\n        ...       }\r\n        ...    }'\r\n        ... };\r\nConfigurationException: <ErrorMessage code=2300 [Query invalid because of configuration issue] message=\"Failed to validate custom indexer options: {schema={\r\n      \"analyzers\":{\r\n        \"code\":{\r\n          \"type\":\"classpath\",\r\n          \"class\":\"my.lucene.MyAnalyzer\"\r\n        }\r\n      },\r\n      fields: {\r\n         content: {type: \"text\", analyzer: \"code\"}\r\n      }\r\n   }, refresh_seconds=1, class_name=com.stratio.cassandra.lucene.Index, target=}\">\r\n\r\n```\r\n\r\nAm I missing any step?\r\nIs there a way to debug this?\r\n"},"comment":{"url":"https://api.github.com/repos/Stratio/cassandra-lucene-index/issues/comments/260350326","html_url":"https://github.com/Stratio/cassandra-lucene-index/issues/231#issuecomment-260350326","issue_url":"https://api.github.com/repos/Stratio/cassandra-lucene-index/issues/231","id":260350326,"user":{"login":"maxim5","id":2580604,"avatar_url":"https://avatars.githubusercontent.com/u/2580604?v=3","gravatar_id":"","url":"https://api.github.com/users/maxim5","html_url":"https://github.com/maxim5","followers_url":"https://api.github.com/users/maxim5/followers","following_url":"https://api.github.com/users/maxim5/following{/other_user}","gists_url":"https://api.github.com/users/maxim5/gists{/gist_id}","starred_url":"https://api.github.com/users/maxim5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxim5/subscriptions","organizations_url":"https://api.github.com/users/maxim5/orgs","repos_url":"https://api.github.com/users/maxim5/repos","events_url":"https://api.github.com/users/maxim5/events{/privacy}","received_events_url":"https://api.github.com/users/maxim5/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T14:35:01Z","updated_at":"2016-11-14T14:35:01Z","body":"I've finally traced the cause: I built my analyzer with lucene version 6.2.1 (the latest one).\r\nThis version is apparently not supported with Cassandra 3.5.\r\nOnce I have pulled 5.3.0 in and rebuilt the analyzer, the error went away.\r\n\r\nI wish there was a doc out there that navigates through the nuances like that..."}}
{"actor":{"display_login":"maxim5"}}