Rupert Westenthaler created STANBOL-606:
-------------------------------------------
Summary: 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: Entity Hub
Reporter: Rupert Westenthaler
Assignee: Rupert Westenthaler
Priority: Minor
Fix For: 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