Stream: implementers
Topic: Identifier:contains?
Patrick Werner (Mar 20 2017 at 13:11):
we are currently trying to implement a JS frontend with a search functionalitiy. We want to display possbile matches on a identifier code as soon it is entered in a text field.
Is there a way to search identifiers with :contains ? Experimenting with a HAPI server we only can search for the full identifier. Not for the starting part or even contains.
Has someone experience with this topic?
Lloyd McKenzie (Mar 20 2017 at 14:43):
That's an interesting idea. It's not something that generally makes sense, but I can see it being useful for type-ahead. I think you'll need to define a custom search parameter.
Patrick Werner (Mar 20 2017 at 15:29):
thanks Lloyd, we got confused with the :text modifier in tokens, but just realised this only works with Identifier.type.text
We also tought because Identifier.value is a string we could apply a string modifier on the search., But this is obviously not how it works.
Last updated: Apr 12 2022 at 19:14 UTC