lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject svn commit: r520713 - /lucene/solr/trunk/client/ruby/flare/lib/flare_context.rb
Date Wed, 21 Mar 2007 02:23:54 GMT
Author: ehatcher
Date: Tue Mar 20 19:23:53 2007
New Revision: 520713

URL: http://svn.apache.org/viewvc?view=rev&rev=520713
Log:
add empty_constraints? method

Modified:
    lucene/solr/trunk/client/ruby/flare/lib/flare_context.rb

Modified: lucene/solr/trunk/client/ruby/flare/lib/flare_context.rb
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/client/ruby/flare/lib/flare_context.rb?view=diff&rev=520713&r1=520712&r2=520713
==============================================================================
--- lucene/solr/trunk/client/ruby/flare/lib/flare_context.rb (original)
+++ lucene/solr/trunk/client/ruby/flare/lib/flare_context.rb Tue Mar 20 19:23:53 2007
@@ -43,6 +43,10 @@
     
     # 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|



Mime
View raw message