{"action":"created","issue":{"url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/424","labels_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/424/labels{/name}","comments_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/424/comments","events_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/424/events","html_url":"https://github.com/NatLibFi/Skosmos/issues/424","id":124768278,"number":424,"title":"Search using ASCIIFoldingFilter does not work with searches containing a diacritic","user":{"login":"tfrancart","id":2728945,"avatar_url":"https://avatars.githubusercontent.com/u/2728945?v=3","gravatar_id":"","url":"https://api.github.com/users/tfrancart","html_url":"https://github.com/tfrancart","followers_url":"https://api.github.com/users/tfrancart/followers","following_url":"https://api.github.com/users/tfrancart/following{/other_user}","gists_url":"https://api.github.com/users/tfrancart/gists{/gist_id}","starred_url":"https://api.github.com/users/tfrancart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfrancart/subscriptions","organizations_url":"https://api.github.com/users/tfrancart/orgs","repos_url":"https://api.github.com/users/tfrancart/repos","events_url":"https://api.github.com/users/tfrancart/events{/privacy}","received_events_url":"https://api.github.com/users/tfrancart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NatLibFi/Skosmos/labels/bug","name":"bug","color":"ff4d51"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NatLibFi/Skosmos/milestones/12","html_url":"https://github.com/NatLibFi/Skosmos/milestones/1.5","labels_url":"https://api.github.com/repos/NatLibFi/Skosmos/milestones/12/labels","id":1466242,"number":12,"title":"1.5","description":"","creator":{"login":"osma","id":1132830,"avatar_url":"https://avatars.githubusercontent.com/u/1132830?v=3","gravatar_id":"","url":"https://api.github.com/users/osma","html_url":"https://github.com/osma","followers_url":"https://api.github.com/users/osma/followers","following_url":"https://api.github.com/users/osma/following{/other_user}","gists_url":"https://api.github.com/users/osma/gists{/gist_id}","starred_url":"https://api.github.com/users/osma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osma/subscriptions","organizations_url":"https://api.github.com/users/osma/orgs","repos_url":"https://api.github.com/users/osma/repos","events_url":"https://api.github.com/users/osma/events{/privacy}","received_events_url":"https://api.github.com/users/osma/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":4,"state":"open","created_at":"2015-12-18T07:33:09Z","updated_at":"2016-01-07T11:29:22Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-01-04T14:27:56Z","updated_at":"2016-01-08T07:56:58Z","closed_at":null,"body":"Hello\r\n\r\nUsing this analyzer configuration :\r\n\r\n           text:analyzer [\r\n             a text:ConfigurableAnalyzer ;\r\n             text:tokenizer text:LetterTokenizer ;\r\n             text:filters (text:ASCIIFoldingFilter text:LowerCaseFilter)\r\n           ] \r\n\r\nSearches for \"education\" (without diacritic) correctly find labels containing \"éducation\", but searches for \"éducation\" (with diacritic) don't find labels containing \"éducation\" !\r\n\r\nThe same analyzer configuration than the one used in the text index should be applied to the search string."},"comment":{"url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/comments/169925196","html_url":"https://github.com/NatLibFi/Skosmos/issues/424#issuecomment-169925196","issue_url":"https://api.github.com/repos/NatLibFi/Skosmos/issues/424","id":169925196,"user":{"login":"osma","id":1132830,"avatar_url":"https://avatars.githubusercontent.com/u/1132830?v=3","gravatar_id":"","url":"https://api.github.com/users/osma","html_url":"https://github.com/osma","followers_url":"https://api.github.com/users/osma/followers","following_url":"https://api.github.com/users/osma/following{/other_user}","gists_url":"https://api.github.com/users/osma/gists{/gist_id}","starred_url":"https://api.github.com/users/osma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osma/subscriptions","organizations_url":"https://api.github.com/users/osma/orgs","repos_url":"https://api.github.com/users/osma/repos","events_url":"https://api.github.com/users/osma/events{/privacy}","received_events_url":"https://api.github.com/users/osma/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T07:56:58Z","updated_at":"2016-01-08T07:56:58Z","body":"I have tested this and it indeed looks like a bug in jena-text. The text query for \"éducation\" gives no results, while \"education\" matches both \"education\" and \"éducation\". Apparently the configured analyzer is not used for the query.\r\n\r\nAccording to [jena-text documentation](https://jena.apache.org/documentation/query/text-query.html#analyzer-for-query):\r\n> There is an ability to specify an analyzer to be used for the query string itself. It will find terms in the query text. If not set, then the analyzer used for the document will be used.\r\n\r\nThis is somewhat unclear but I take \"the analyzer used for the document\" to mean the same analyzer that was used for indexing, no other interpretation would make sense here."}}