Correct Suggest property filter - fixes issue 689
This commit is contained in:
parent
38a88db58d
commit
a2711e4f59
@ -308,7 +308,7 @@ SchemaAlignmentDialog.UILink.prototype._showPropertySuggestPopup = function(elmt
|
|||||||
};
|
};
|
||||||
var sourceTypeID = this._parentUINode.getExpectedType();
|
var sourceTypeID = this._parentUINode.getExpectedType();
|
||||||
if (sourceTypeID !== null) {
|
if (sourceTypeID !== null) {
|
||||||
suggestOptions.filter = '(all type:/type/property (any namespace:/type/object namespace:' + sourceTypeID + '))'
|
suggestOptions.filter = '(all type:/type/property (should namespace:' + sourceTypeID + '))'
|
||||||
|
|
||||||
}
|
}
|
||||||
input.suggestP(suggestOptions).bind("fb-select", function(e, data) { commitProperty(data); });
|
input.suggestP(suggestOptions).bind("fb-select", function(e, data) { commitProperty(data); });
|
||||||
|
@ -245,7 +245,7 @@ ReconStandardServicePanel.prototype._rewirePropertySuggests = function(type) {
|
|||||||
} else if (this._isInFreebaseSchemaSpace()) {
|
} else if (this._isInFreebaseSchemaSpace()) {
|
||||||
var namespace = (type) ? (typeof type == "string" ? type : type.id) : "/common/topic"
|
var namespace = (type) ? (typeof type == "string" ? type : type.id) : "/common/topic"
|
||||||
inputs.suggestP({
|
inputs.suggestP({
|
||||||
filter : '(all type:/type/property (any namespace:/type/object namespace:' + namespace + '))'
|
filter : '(should (any namespace:/type/object namespace:' + namespace + '))'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -111,6 +111,7 @@ CustomSuggest.setFreebaseAPIKey = function(freebaseAPIKey) {
|
|||||||
{},
|
{},
|
||||||
$.suggest.suggest.defaults, {
|
$.suggest.suggest.defaults, {
|
||||||
scoring: "schema",
|
scoring: "schema",
|
||||||
|
type: "/type/property",
|
||||||
css: { pane: "fbs-pane fbs-pane-property" }
|
css: { pane: "fbs-pane fbs-pane-property" }
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user