Updated doc.
This commit is contained in:
parent
901addff6f
commit
7bc55193ce
1 changed files with 11 additions and 11 deletions
|
@ -7,9 +7,9 @@ module Ticket::Search
|
||||||
search tickets via search index
|
search tickets via search index
|
||||||
|
|
||||||
result = Ticket.search(
|
result = Ticket.search(
|
||||||
:current_user => User.find(123),
|
current_user: User.find(123),
|
||||||
:query => 'search something',
|
query: 'search something',
|
||||||
:limit => 15,
|
limit: 15,
|
||||||
)
|
)
|
||||||
|
|
||||||
returns
|
returns
|
||||||
|
@ -19,10 +19,10 @@ returns
|
||||||
search tickets via search index
|
search tickets via search index
|
||||||
|
|
||||||
result = Ticket.search(
|
result = Ticket.search(
|
||||||
:current_user => User.find(123),
|
current_user: User.find(123),
|
||||||
:query => 'search something',
|
query: 'search something',
|
||||||
:limit => 15,
|
limit: 15,
|
||||||
:full => false,
|
full: false,
|
||||||
)
|
)
|
||||||
|
|
||||||
returns
|
returns
|
||||||
|
@ -32,8 +32,8 @@ returns
|
||||||
search tickets via database
|
search tickets via database
|
||||||
|
|
||||||
result = Ticket.search(
|
result = Ticket.search(
|
||||||
:current_user => User.find(123),
|
current_user: User.find(123),
|
||||||
:condition => {
|
condition: {
|
||||||
'tickets.owner_id' => user.id,
|
'tickets.owner_id' => user.id,
|
||||||
'tickets.state_id' => Ticket::State.where(
|
'tickets.state_id' => Ticket::State.where(
|
||||||
state_type_id: Ticket::StateType.where(
|
state_type_id: Ticket::StateType.where(
|
||||||
|
@ -44,8 +44,8 @@ search tickets via database
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
:limit => 15,
|
limit: 15,
|
||||||
:full => false,
|
full: false,
|
||||||
)
|
)
|
||||||
|
|
||||||
returns
|
returns
|
||||||
|
|
Loading…
Reference in a new issue