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/29 11:03:23 UTC
[jira] [Updated] (STANBOL-607) SolrYard should use quotes instead
of AND for multi word TextConstraints
[ https://issues.apache.org/jira/browse/STANBOL-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabian Christ updated STANBOL-607:
----------------------------------
Component/s: Entity Hub
> SolrYard should use quotes instead of AND for multi word TextConstraints
> ------------------------------------------------------------------------
>
> Key: STANBOL-607
> URL: https://issues.apache.org/jira/browse/STANBOL-607
> Project: Stanbol
> Issue Type: Improvement
> Components: Entity Hub
> Affects Versions: 0.9.0-incubating
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
> Priority: Minor
>
> Currently a Text constraint for rdfs:label containing "The Book of Three" is encoded like
> (_\!@/rdfs\:label/:The) AND ((_\!@/rdfs\:label/:Book) AND (_\!@/rdfs\:label/:of) AND(_\!@/rdfs\:label/:Three))
> however Solr/Lucene allow to use quotes for multi word searches. So the correct way to encode this query would be
> ((_\!@/rdfs\:label/:"The Book of Three"))
> This need to be fixed in the "org.apache.stanbol.entityhub.yard.solr.query.QueryUtils#encodeQueryValue(..)
> NOTE: The impact of this change for Wildcard queries need to be further investigated
> e.g take a query "Frankf* am Main" currently encoded like
> (_\!@/rdfs\:label/:Frankf*) AND ((_\!@/rdfs\:label/:am) AND (_\!@/rdfs\:label/:main))
> would than result in
> ((_\!@/rdfs\:label/:"Frankf* am Main"))
--
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