lib/oedipus/query_builder.rb
def select(query, filters)
      where, *bind_values = conditions(query, filters)
      [
        [
          from(filters),
          where,
          order_by(filters),
          limits(filters)
        ].join(" "),
        *bind_values
      ]
    end
def select(query, filters)
      where, *bind_values = conditions(query, filters)
      [
        [
          from(filters),
          where,
          order_by(filters),
          limits(filters)
        ].join(" "),
        *bind_values
      ]
    end
Initialize a new QueryBuilder for +index_name+.

 @param [Symbol] index_name
   the name of the index being queried
 Build a SphinxQL query for the fulltext search +query+ and filters in +filters+.

 @param [String] query
   the fulltext query to execute (may be empty)

 @param [Hash] filters
   additional attribute filters and other options

 @return [String]
   a SphinxQL query