Search numbers only?

Moderator: crythias

Post Reply
disciple
Znuny newbie
Posts: 62
Joined: 31 Jul 2022, 12:27
Znuny Version: 6.4.2
Real Name: David Müller

Search numbers only?

Post by disciple »

maybe a stupid question.
How can I search for numbers only in a search dialog, especially on GA-Search?

I have a dynamic field, there I know where are only numbers, but it could also be empty. So I would like to identify in a search following cases:
- non-empty
- numbers only
- letters only

Is it possible?
Johannes
Moderator
Posts: 391
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: Search numbers only?

Post by Johannes »

Hi,

no. Currently this is not possible, because the GA does not support regexes or support for empty values.

Regards
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Search numbers only?

Post by hkais »

there are plans to migrate to elasticsearch like OTRS did it already.
This may solve your issue with the very limited search in Znuny in the future
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
Johannes
Moderator
Posts: 391
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: Search numbers only?

Post by Johannes »

I doubt that.

Without touching the code it does not matter how you search. We could already search for empty fields. The API is capable of this.
It is not implemented in this module. The new SearchAPI won't change this. (for now)
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Search numbers only?

Post by hkais »

Johannes wrote: 20 Aug 2022, 18:15 I doubt that.

Without touching the code it does not matter how you search. We could already search for empty fields. The API is capable of this.
It is not implemented in this module. The new SearchAPI won't change this. (for now)
Do you mean the new SearchAPI == elasticsearch or do you mean to implement a new wrapper API to search on DB, so no elasticsearch relation?

Is there a reason why the features do not reach the UI?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
Johannes
Moderator
Posts: 391
Joined: 30 Jan 2008, 02:26
Znuny Version: All of them ^^
Real Name: Hannes
Company: Znuny|OTTERHUB

Re: Search numbers only?

Post by Johannes »

You can ask this questions in the dev area or on discord.
I don't want to steal this thread.
Post Reply