Fix query miss
This commit is contained in:
parent
a7a6c62440
commit
5b045f7198
1 changed files with 2 additions and 2 deletions
|
@ -350,9 +350,9 @@ class SearchQueryTransformer < Parslet::Transform
|
||||||
def to_query
|
def to_query
|
||||||
if @statuses_index_only
|
if @statuses_index_only
|
||||||
if @negated
|
if @negated
|
||||||
{ bool: { must_not: [{ term: { _index => StatusesIndex.index_name } }, { @type => { @filter => @term } }] } }
|
{ bool: { must_not: [{ term: { _index: StatusesIndex.index_name } }, { @type => { @filter => @term } }] } }
|
||||||
else
|
else
|
||||||
{ bool: { must: [{ term: { _index => StatusesIndex.index_name } }, { @type => { @filter => @term } }] } }
|
{ bool: { must: [{ term: { _index: StatusesIndex.index_name } }, { @type => { @filter => @term } }] } }
|
||||||
end
|
end
|
||||||
elsif @negated
|
elsif @negated
|
||||||
{ bool: { must_not: { @type => { @filter => @term } } } }
|
{ bool: { must_not: { @type => { @filter => @term } } } }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue