Guest User

Untitled

a guest
Feb 19th, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. >> q='adam.block\\@gmail.com'
  2. => "adam.block\\@gmail.com"
  3. >> u = Ultrasphinx::Search.new(:query => q, :class_names => ['User'])
  4. => #<Ultrasphinx::Search:0x26d4780 @options={"indexes"=>"main", "class_names"=>["User"], "sort_by"=>nil, "parsed_query"=>"adam.block\\@gmail.com", "sort_mode"=>"relevance", "filters"=>{}, "weights"=>{}, "per_page"=>20, "query"=>"adam.block\\@gmail.com", "page"=>1, "facets"=>[], "location"=>{"units"=>"radians", "long_attribute_name"=>"lng", "lat_attribute_name"=>"lat"}}, @facets={}, @results=[], @response={}, @subtotals={}>
  5. >> u.run
  6. => #<Ultrasphinx::Search:0x26d4780 @request=#<Riddle::Client:0x26c3700 @retry_delay=0, @sort_mode=:relevance, @group_clause="@group desc", @limit=20, @rank_mode=:proximity_bm25, @id_range=0..0, @retry_count=0, @match_mode=:extended, @queue=[], @group_function=:day, @index_weights={}, @weights=[], @cut_off=0, @max_matches=1020, @field_weights={}, @group_by="", @anchor={}, @sort_by="", @port="3313", @server="localhost", @group_distinct="", @offset=0, @max_query_time=0, @filters=[#<Riddle::Client::Filter:0x26c30e8 @values=[3], @attribute="class_id", @exclude=false>]>, @options={"indexes"=>"main", "class_names"=>["User"], "sort_by"=>nil, "parsed_query"=>"adam.block\\@gmail.com", "sort_mode"=>"relevance", "filters"=>{}, "weights"=>{}, "per_page"=>20, "query"=>"adam.block\\@gmail.com", "page"=>1, "facets"=>[], "location"=>{"units"=>"radians", "long_attribute_name"=>"lng", "lat_attribute_name"=>"lat"}}, @facets={}, @results=[], @response={:attributes=>{"class_id"=>1}, :total=>0, :status=>0, :words=>{"adam.block@gmail.com"=>{:docs=>0, :hits=>0}}, :total_found=>0, :time=>0.0, :attribute_names=>["class_id"], :fields=>["class", "comment", "email", "first_name", "last_name", "name", "nickname", "nl"], :matches=>[]}, @subtotals={}>
  7. >> u.results
  8. => []
Add Comment
Please, Sign In to add comment