Module: CqlRuby

Defined in:
lib/cql_ruby/cql_parser.rb,
lib/cql_ruby/cql_lexer.rb,
lib/cql_ruby/cql_nodes.rb,
lib/cql_ruby/cql_to_solr.rb,
lib/cql_ruby/cql_generator.rb

Overview

$Id: CQLNode.java,v 1.26 2007/07/03 13:36:03 mike Exp $

Defined Under Namespace

Classes: CqlAndNode, CqlBooleanNode, CqlException, CqlGenerator, CqlLexer, CqlNode, CqlNotNode, CqlOrNode, CqlParser, CqlPrefix, CqlPrefixNode, CqlProxNode, CqlRelation, CqlSortNode, CqlTermNode, Modifier, ModifierSet

Class Method Summary collapse

Class Method Details

.to_solr_defaultsObject



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/cql_ruby/cql_to_solr.rb', line 51

def self.to_solr_defaults
  @to_solr_params ||= {
      #What's our default relation for "=" server's choice relation? how about
      # adj.
    :default_relation => "cql.adj",
      # What's our default index for various server's choice index choices?
      # nil means don't specify an index, let solr take care of it.
      # Or you can specify one. 
    :default_index => nil,
      # What index should we use for cql.allIndexes? Again can be nil
      # meaning let the solr server use it's default.  
    :all_index => "text"
    }
end