Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9.0-incubating
-
None
Description
Currently search terms for the
{all-language} container are added for non TextConstraints of the SolrYard implementation. This is best described by this exampleA 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".