Re: search api Zammad 1.5.x

2017-07-05 Thread Martin Edenhofer
Hallo Michael,

for attribute and extended search you need to install/configure 
elasticsearch. With SQL backend only simple search is done.

https://docs.zammad.org/en/latest/install-elasticsearch.html

PS: You will love it (also attachments get indexed and it's just so fast)! 
❤️

 -Martin

Am Mittwoch, 5. Juli 2017 11:16:18 UTC+2 schrieb Michael Temeschinko:
>
> Hello,
>
> i can create and request tickets via api
>
> e.g. GET /tickets/1
>
> but a 
>
> GET /tickets/search?query=state:new
>
> gets me always empty arrays
>
> Array
> (
> [tickets] => Array
> (
> )
>
> [tickets_count] => 0
> [assets] => Array
> (
> )
>
> )
>
>
> but on zammad hosted I get tickets
>
> yes I have tickets with the state new on my server and I have the same 
> permissions for the token (admin.api) on my ubuntu-server and the hosted 
> version
>
> I installed my server with apt-get even made an upgrade to the latest 
> version yesterday. Don't know why the behavior is different for the search 
> api :(
>
> regards
> Michael
>

-- 
Open Source as Download https://zammad.org || Easy to use as SaaS 
https://zammad.com
--- 
You received this message because you are subscribed to the Google Groups 
"zammad-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zammad-users+unsubscr...@googlegroups.com.
To post to this group, send email to zammad-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/zammad-users/f65ff454-7ea3-4ebb-8e34-03b8d0230c5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


search api Zammad 1.5.x

2017-07-05 Thread Michael Temeschinko
Hello,

i can create and request tickets via api

e.g. GET /tickets/1

but a 

GET /tickets/search?query=state:new

gets me always empty arrays

Array
(
[tickets] => Array
(
)

[tickets_count] => 0
[assets] => Array
(
)

)


but on zammad hosted I get tickets

yes I have tickets with the state new on my server and I have the same 
permissions for the token (admin.api) on my ubuntu-server and the hosted 
version

I installed my server with apt-get even made an upgrade to the latest 
version yesterday. Don't know why the behavior is different for the search 
api :(

regards
Michael

-- 
Open Source as Download https://zammad.org || Easy to use as SaaS 
https://zammad.com
--- 
You received this message because you are subscribed to the Google Groups 
"zammad-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to zammad-users+unsubscr...@googlegroups.com.
To post to this group, send email to zammad-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/zammad-users/e402ae89-80f2-4514-83db-8e7e51e28ecc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.