Created
February 3, 2010 19:10
-
-
Save avsej/293913 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> puts ThinkingSphinx.search('sergey').results[:matches] | |
{:doc=>49753, :weight=>3, :index=>0, :attributes=>{"sphinx_internal_id"=>2073, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>67561, :weight=>3, :index=>1, :attributes=>{"sphinx_internal_id"=>2815, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>67585, :weight=>3, :index=>2, :attributes=>{"sphinx_internal_id"=>2816, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>76609, :weight=>3, :index=>3, :attributes=>{"sphinx_internal_id"=>3192, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>86737, :weight=>3, :index=>4, :attributes=>{"sphinx_internal_id"=>3614, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>101569, :weight=>3, :index=>5, :attributes=>{"sphinx_internal_id"=>4232, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>1129, :weight=>2, :index=>6, :attributes=>{"sphinx_internal_id"=>47, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>1825, :weight=>2, :index=>7, :attributes=>{"sphinx_internal_id"=>76, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>6325, :weight=>2, :index=>8, :attributes=>{"sphinx_internal_id"=>263, "class_crc"=>4065096731, "subclass_crcs"=>[4065096731], "sphinx_deleted"=>0}} | |
{:doc=>6349, :weight=>2, :index=>9, :attributes=>{"sphinx_internal_id"=>264, "class_crc"=>4065096731, "subclass_crcs"=>[4065096731], "sphinx_deleted"=>0}} | |
{:doc=>6469, :weight=>2, :index=>10, :attributes=>{"sphinx_internal_id"=>269, "class_crc"=>4065096731, "subclass_crcs"=>[4065096731], "sphinx_deleted"=>0}} | |
{:doc=>8209, :weight=>2, :index=>11, :attributes=>{"sphinx_internal_id"=>342, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>9913, :weight=>2, :index=>12, :attributes=>{"sphinx_internal_id"=>413, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>9937, :weight=>2, :index=>13, :attributes=>{"sphinx_internal_id"=>414, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>10081, :weight=>2, :index=>14, :attributes=>{"sphinx_internal_id"=>420, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>10703, :weight=>2, :index=>15, :attributes=>{"sphinx_internal_id"=>445, "class_crc"=>1199702055, "subclass_crcs"=>[1199702055], "sphinx_deleted"=>0}} | |
{:doc=>11233, :weight=>2, :index=>16, :attributes=>{"sphinx_internal_id"=>468, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>11257, :weight=>2, :index=>17, :attributes=>{"sphinx_internal_id"=>469, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>11281, :weight=>2, :index=>18, :attributes=>{"sphinx_internal_id"=>470, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>11305, :weight=>2, :index=>19, :attributes=>{"sphinx_internal_id"=>471, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
=> nil | |
>> puts ThinkingSphinx.search('sergey', :match_mode => :extended).results[:matches] | |
{:doc=>67561, :weight=>3668, :index=>0, :attributes=>{"sphinx_internal_id"=>2815, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>86737, :weight=>3652, :index=>1, :attributes=>{"sphinx_internal_id"=>3614, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>101569, :weight=>3652, :index=>2, :attributes=>{"sphinx_internal_id"=>4232, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>49753, :weight=>3645, :index=>3, :attributes=>{"sphinx_internal_id"=>2073, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>67585, :weight=>3645, :index=>4, :attributes=>{"sphinx_internal_id"=>2816, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>76609, :weight=>3645, :index=>5, :attributes=>{"sphinx_internal_id"=>3192, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>6349, :weight=>2760, :index=>6, :attributes=>{"sphinx_internal_id"=>264, "class_crc"=>4065096731, "subclass_crcs"=>[4065096731], "sphinx_deleted"=>0}} | |
{:doc=>6469, :weight=>2760, :index=>7, :attributes=>{"sphinx_internal_id"=>269, "class_crc"=>4065096731, "subclass_crcs"=>[4065096731], "sphinx_deleted"=>0}} | |
{:doc=>6325, :weight=>2711, :index=>8, :attributes=>{"sphinx_internal_id"=>263, "class_crc"=>4065096731, "subclass_crcs"=>[4065096731], "sphinx_deleted"=>0}} | |
{:doc=>11989, :weight=>2711, :index=>9, :attributes=>{"sphinx_internal_id"=>499, "class_crc"=>4065096731, "subclass_crcs"=>[4065096731], "sphinx_deleted"=>0}} | |
{:doc=>9937, :weight=>2661, :index=>10, :attributes=>{"sphinx_internal_id"=>414, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>11233, :weight=>2661, :index=>11, :attributes=>{"sphinx_internal_id"=>468, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>11257, :weight=>2661, :index=>12, :attributes=>{"sphinx_internal_id"=>469, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>42852, :weight=>2661, :index=>13, :attributes=>{"sphinx_internal_id"=>1785, "class_crc"=>714550076, "subclass_crcs"=>[714550076], "sphinx_deleted"=>0}} | |
{:doc=>76417, :weight=>2661, :index=>14, :attributes=>{"sphinx_internal_id"=>3184, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>76441, :weight=>2661, :index=>15, :attributes=>{"sphinx_internal_id"=>3185, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>123697, :weight=>2661, :index=>16, :attributes=>{"sphinx_internal_id"=>5154, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>67537, :weight=>2657, :index=>17, :attributes=>{"sphinx_internal_id"=>2814, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>92809, :weight=>2657, :index=>18, :attributes=>{"sphinx_internal_id"=>3867, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
{:doc=>98593, :weight=>2657, :index=>19, :attributes=>{"sphinx_internal_id"=>4108, "class_crc"=>230816244, "subclass_crcs"=>[230816244], "sphinx_deleted"=>0}} | |
=> nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment