Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.77 KB | None | 0 0
  1. curl -XGET 'http://elastic:changeme@localhost:9200/nsp/workUnit/3157/_explain?pretty' -d '{"query":{"match":{"_all":{"query":"Ředitel"}}}}'
  2.  
  3. >
  4.  
  5. {
  6.   "_index" : "nsp",
  7.   "_type" : "workUnit",
  8.   "_id" : "3157",
  9.   "matched" : true,
  10.   "explanation" : {
  11.     "value" : 40.283817,
  12.     "description" : "sum of:",
  13.     "details" : [
  14.       {
  15.         "value" : 40.283817,
  16.         "description" : "weight(_all:ředitel in 141443) [PerFieldSimilarity], product of:",
  17.         "details" : [
  18.           {
  19.             "value" : 7.32433,
  20.             "description" : "score(doc=141443,freq=2.0 = termFreq=2.0\n), product of:",
  21.             "details" : [
  22.               {
  23.                 "value" : 4.816691,
  24.                 "description" : "idf(docFreq=4, docCount=555)",
  25.                 "details" : [ ]
  26.               },
  27.               {
  28.                 "value" : 1.5206145,
  29.                 "description" : "tfNorm, computed from:",
  30.                 "details" : [
  31.                   {
  32.                     "value" : 2.0,
  33.                     "description" : "termFreq=2.0",
  34.                     "details" : [ ]
  35.                   },
  36.                   {
  37.                     "value" : 1.2,
  38.                     "description" : "parameter k1",
  39.                     "details" : [ ]
  40.                   },
  41.                   {
  42.                     "value" : 0.75,
  43.                     "description" : "parameter b",
  44.                     "details" : [ ]
  45.                   },
  46.                   {
  47.                     "value" : 1552.6469,
  48.                     "description" : "avgFieldLength",
  49.                     "details" : [ ]
  50.                   },
  51.                   {
  52.                     "value" : 1024.0,
  53.                     "description" : "fieldLength",
  54.                     "details" : [ ]
  55.                   }
  56.                 ]
  57.               }
  58.             ]
  59.           },
  60.           {
  61.             "value" : 5.5,
  62.             "description" : "payloadBoost=5.5",
  63.             "details" : [ ]
  64.           }
  65.         ]
  66.       },
  67.       {
  68.         "value" : 0.0,
  69.         "description" : "match on required clause, product of:",
  70.         "details" : [
  71.           {
  72.             "value" : 0.0,
  73.             "description" : "# clause",
  74.             "details" : [ ]
  75.           },
  76.           {
  77.             "value" : 0.0,
  78.             "description" : "weight(_type:workUnit in 141443) [], result of:",
  79.             "details" : [
  80.               {
  81.                 "value" : 0.0,
  82.                 "description" : "score(doc=141443,freq=1.0), with freq of:",
  83.                 "details" : [
  84.                   {
  85.                     "value" : 1.0,
  86.                     "description" : "termFreq=1.0",
  87.                     "details" : [ ]
  88.                   }
  89.                 ]
  90.               }
  91.             ]
  92.           }
  93.         ]
  94.       }
  95.     ]
  96.   }
  97. }
  98. zajca@zajca-doma ~/git/nsp-base (git)-[feature/search] % curl -XGET 'http://elastic:changeme@localhost:9200/nsp/workUnit/3157/_explain?pretty' -d '{"query":{"match":{"_all":{"query":"Ředitel","analyzer":"cz"}}}}'
  99.  
  100. >
  101.  
  102. {
  103.   "_index" : "nsp",
  104.   "_type" : "workUnit",
  105.   "_id" : "3157",
  106.   "matched" : false,
  107.   "explanation" : {
  108.     "value" : 0.0,
  109.     "description" : "Failure to meet condition(s) of required/prohibited clause(s)",
  110.     "details" : [
  111.       {
  112.         "value" : 0.0,
  113.         "description" : "no match on required clause (_all:reditel)",
  114.         "details" : [
  115.           {
  116.             "value" : 0.0,
  117.             "description" : "no matching term",
  118.             "details" : [ ]
  119.           }
  120.         ]
  121.       },
  122.       {
  123.         "value" : 0.0,
  124.         "description" : "match on required clause, product of:",
  125.         "details" : [
  126.           {
  127.             "value" : 0.0,
  128.             "description" : "# clause",
  129.             "details" : [ ]
  130.           },
  131.           {
  132.             "value" : 0.0,
  133.             "description" : "weight(_type:workUnit in 141443) [], result of:",
  134.             "details" : [
  135.               {
  136.                 "value" : 0.0,
  137.                 "description" : "score(doc=141443,freq=1.0), with freq of:",
  138.                 "details" : [
  139.                   {
  140.                     "value" : 1.0,
  141.                     "description" : "termFreq=1.0",
  142.                     "details" : [ ]
  143.                   }
  144.                 ]
  145.               }
  146.             ]
  147.           }
  148.         ]
  149.       }
  150.     ]
  151.   }
  152. }
  153.  
  154. curl -XGET 'http://elastic:changeme@localhost:9200/nsp/workUnit/3157/_explain?pretty' -d '{"query":{"match":{"_all":{"query":"Reditel"}}}}'
  155.  
  156. >
  157.  
  158. {
  159.   "_index" : "nsp",
  160.   "_type" : "workUnit",
  161.   "_id" : "3157",
  162.   "matched" : false,
  163.   "explanation" : {
  164.     "value" : 0.0,
  165.     "description" : "Failure to meet condition(s) of required/prohibited clause(s)",
  166.     "details" : [
  167.       {
  168.         "value" : 0.0,
  169.         "description" : "no match on required clause (_all:reditel)",
  170.         "details" : [
  171.           {
  172.             "value" : 0.0,
  173.             "description" : "no matching term",
  174.             "details" : [ ]
  175.           }
  176.         ]
  177.       },
  178.       {
  179.         "value" : 0.0,
  180.         "description" : "match on required clause, product of:",
  181.         "details" : [
  182.           {
  183.             "value" : 0.0,
  184.             "description" : "# clause",
  185.             "details" : [ ]
  186.           },
  187.           {
  188.             "value" : 0.0,
  189.             "description" : "weight(_type:workUnit in 141443) [], result of:",
  190.             "details" : [
  191.               {
  192.                 "value" : 0.0,
  193.                 "description" : "score(doc=141443,freq=1.0), with freq of:",
  194.                 "details" : [
  195.                   {
  196.                     "value" : 1.0,
  197.                     "description" : "termFreq=1.0",
  198.                     "details" : [ ]
  199.                   }
  200.                 ]
  201.               }
  202.             ]
  203.           }
  204.         ]
  205.       }
  206.     ]
  207.   }
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement