You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Fabian Christ (JIRA)" <ji...@apache.org> on 2012/05/31 13:29:23 UTC

[jira] [Updated] (STANBOL-606) Language prefixes are added to non TextConstraint in queries for the Entityhub

     [ https://issues.apache.org/jira/browse/STANBOL-606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fabian Christ updated STANBOL-606:
----------------------------------

      Component/s: Commons
    Fix Version/s: commons.solr.core-0.10.0-incubating
    
> Language prefixes are added to non TextConstraint in queries for the Entityhub
> ------------------------------------------------------------------------------
>
>                 Key: STANBOL-606
>                 URL: https://issues.apache.org/jira/browse/STANBOL-606
>             Project: Stanbol
>          Issue Type: Bug
>          Components: Commons, Entity Hub
>    Affects Versions: 0.9.0-incubating
>            Reporter: Rupert Westenthaler
>            Assignee: Rupert Westenthaler
>            Priority: Minor
>             Fix For: entityhub-0.10.0-incubating, commons.solr.core-0.10.0-incubating, commons.web.base-0.10.0-incubating
>
>
> Currently search terms for the {all-language} container are added for non TextConstraints of the SolrYard implementation. This is best described by this example
> A constraint for "rdf:type" including "db-ont:Organisation" is currently encoded like:
>     (
>         ((_\!@/rdf\:type/:http\://dbpedia.org/ontology/Organisation)) OR 
>         ((ref/rdf\:type/:http\://dbpedia.org/ontology/Organisation))
>     )
> The expected query would be 
>  
>     (((ref/rdf\:type/:http\://dbpedia.org/ontology/Organisation)))
> While this does not have practical implications - because there are no textual values for the "rdf:type" field and even if it would be unlikely to contain the URI as text - this adds unnecessary query term that do have an impact on the performance - because of that "Priority: Minor"
> To fix this the "org.apache.stanbol.entityhub.yard.solr.impl.queryencoders.LangEncoder" needs to consider the data type of parsed IndexFields and only add the default lanauge (the {all-language} container) if the dataType is "text".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira