Page MenuHomePhabricator

Allow matching #ask strings with a length > 72
Closed, DeclinedPublic

Description

Author: d3mon

Description:
When performing #ask queries like the one below, searched text is not matched on the o_blob field:

{{#ask: [[Property::~*Some text*]]

?Something
format=table

}}

Properties that go over the 72 character length listed in
SMW_DIHandler_String.php are split, so the end of the text gets changed in o_hash, and the full text is registered in o_blob. The Problem is, #ask only seems to be matching on text in the o_hash column. If I change the 72
character limit to something like 200 characters, the ask function matches
just fine. I figure there's probably a better solution, or fix, than that
though? If not, then would it hurt performance changing it to a
varchar(400) with 400 character limit on o_hash, or is it just a disk space
thing? I have a property which consists of a long string of keywords, and need the ability to match on any part of that string. Thanks!


Version: unspecified
Severity: enhancement

Details

Reference
bz57151

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:17 AM
bzimport set Reference to bz57151.
bzimport added a subscriber: Unknown Object (MLST).
Aklapper subscribed.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.