Post

1 follower Follow
0
Avatar

How can i ask for an EXACT match on /item/field/{field}/find ?

I'm using the method /item/field/{field}/find via the PHP api, but it returns more results than I want. The text I'm sending for the field is "PlanoDeSaude.net" and it returns items that have the following values:

PlanoDeSaude6.net

PlanoDeSaude5.net

PlanoDeSaude4.net

PlanoDeSaude3.net

PlanoDeSaude2.net

PlanoDeSaude1.net

PlanoDeSaude.net

This doesn't seem to be correct behaviour, and the API wasn't doing this only a few days ago (or maybe it was, but it might have been returning the results in the reverse order, in which case I wouldn't have noticed).

How can I force an exact match for this search?

Thanks

Simon

Simon Birrell Answered

Please sign in to leave a comment.

1 comment

0
Avatar

The documentation explains how this method works. It's a very specialized method for finding items that a particular app reference field can reference. It does not support exact matching. It does however support sort and limit options, which should help you out in this case.

Casper Fabricius 0 votes