mirror of https://github.com/apache/lucene.git
add empty_constraints? method
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@520713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cbec0d38d4
commit
c537524e01
|
@ -43,6 +43,10 @@ class FlareContext
|
|||
|
||||
# facet_queries not cleared as their lifetime is different than constraints
|
||||
end
|
||||
|
||||
def empty_constraints?
|
||||
@queries.empty? && @filters.empty? && @applied_facet_queries.empty?
|
||||
end
|
||||
|
||||
def search(start, max)
|
||||
facet_queries = @facet_queries.collect do |k,v|
|
||||
|
|
Loading…
Reference in New Issue