When using the find method of the .NET SDK 1.2.2 (And 1.2.3 Alpha I got provided in another thread) it looks like the metadata properties I select are ignored.
Looking at the API description (https://docs.openkm.com/kcenter/view/ok ... pertyValue) I am doing it right but it doesn't work as expected. Am I doing something wrong or is what I am expecting to happen not correct?
Code: Select all
If I use the above code I get all results with "bar" in the name, even if a document doesn't have "bar" as the value of the property "okp:foo". I expect to only get the documents with "bar" in the name AND "bar" as value of the property "okp:foo" Dim properties = New Dictionary(Of String, String)
properties.Add("okp:foo", "bar")
Dim searchTerm = "bar"
Dim queryParams = New QueryParams With {
.properties = properties,
.domain = bean.QueryParams.DOCUMENT,
.name = searchTerm
}
Try
result = ws.find(queryParams)
Catch exc As System.Exception
Console.writeLine(exc.ToString())
End Try
Looking at the API description (https://docs.openkm.com/kcenter/view/ok ... pertyValue) I am doing it right but it doesn't work as expected. Am I doing something wrong or is what I am expecting to happen not correct?