You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Osma Suominen (JIRA)" <ji...@apache.org> on 2016/03/29 13:59:25 UTC

[jira] [Created] (JENA-1159) jena-text language restriction for Italian or Norwegian has no effect

Osma Suominen created JENA-1159:
-----------------------------------

             Summary: jena-text language restriction for Italian or Norwegian has no effect
                 Key: JENA-1159
                 URL: https://issues.apache.org/jira/browse/JENA-1159
             Project: Apache Jena
          Issue Type: Bug
          Components: Text
    Affects Versions: Jena 3.0.1
            Reporter: Osma Suominen
            Assignee: Osma Suominen


jena-text allows for limiting by language, e.g.
{noformat}?s text:query ('text' 'lang:en'){noformat}

For some reason this doesn't work for Italian. The following query does not actually restrict by language but instead returns results for any language:
{noformat}?s text:query ('text' 'lang:it'){noformat}

I suspect that the language code {{it}} is being handled as a stop word by Lucene. It also seems to happen with {{no}}, the inclusive language code for Norwegian.

I've already created a failing jena-text unit test and will investigate further.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)