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:
Erik Hatcher 2007-03-21 02:23:53 +00:00
parent cbec0d38d4
commit c537524e01
1 changed files with 4 additions and 0 deletions

View File

@ -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|