PHP Classes

File: example.phpsuperezsearch.output.txt

Recommend this page to a friend!
  Classes of JImmy Bo   PHP SuperEzSearch   example.phpsuperezsearch.output.txt   Download  
File: example.phpsuperezsearch.output.txt
Role: Sample output
Content type: text/plain
Description: example output
Class: PHP SuperEzSearch
Search documents storing indexes in PHP structures
Author: By
Last change: usage
Date: 1 year ago
Size: 18,109 bytes
 

Contents

Class file image Download
testing search... <br />You search for 'aardvark' and we found the following results: <br />Array ( [0] => Array ( [id] => 4 [content] => A quick brown fox and a quick brown dog are friends [similarity] => 0.071474168989186 ) [1] => Array ( [id] => a [content] => This is a sample document. [similarity] => 0 ) [2] => Array ( [id] => b [content] => Another document in the database. [similarity] => 0 ) [3] => Array ( [id] => c [content] => Yet another sample document with different content. [similarity] => 0 ) [4] => Array ( [id] => 1 [content] => The quick yellow fox jumps over the lazy dog [similarity] => 0 ) ) You search for [The green dog is slower than the quick brown goat] and we found the following results: <br />Array ( [0] => Array ( [id] => 5 [content] => The quick brown goat is faster than the lazy dog [similarity] => 0.83573501372201 ) [1] => Array ( [id] => 6 [content] => The sleepy brown dog is slower than the quick blue zebra [similarity] => 0.82067712603021 ) [2] => Array ( [id] => 2 [content] => The quick brown dog jumps over the lazy fox [similarity] => 0.64425290016238 ) [3] => Array ( [id] => 1 [content] => The quick yellow fox jumps over the lazy dog [similarity] => 0.52557473434299 ) [4] => Array ( [id] => b [content] => Another document in the database. [similarity] => 0.51310032092007 ) ) You search for [is a] and we found the following results: <br />Array ( [0] => Array ( [id] => a [content] => This is a sample document. [similarity] => 0.5360562674189 ) [1] => Array ( [id] => 3 [content] => The sleeping dog is a walrus and is friends with the blue fox. [similarity] => 0.45958799169714 ) [2] => Array ( [id] => 4 [content] => A quick brown fox and a quick brown dog are friends [similarity] => 0.24759378423607 ) [3] => Array ( [id] => /folder/x.nfo [content] => a title of a story somewhere about the fox and the hen. [similarity] => 0.17586311452816 ) [4] => Array ( [id] => 5 [content] => The quick brown goat is faster than the lazy dog [similarity] => 0.14784425419091 ) ) testing negative queries... <br />You search for [document] and we found the following results: <br />Array ( [0] => Array ( [id] => c [content] => Yet another sample document with different content. [similarity] => 0.50395263067897 ) [1] => Array ( [id] => a [content] => This is a sample document. [similarity] => 0.49130368444052 ) [2] => Array ( [id] => b [content] => Another document in the database. [similarity] => 0.42365927286816 ) [3] => Array ( [id] => 1 [content] => The quick yellow fox jumps over the lazy dog [similarity] => 0.10798984943121 ) [4] => Array ( [id] => 2 [content] => The quick brown dog jumps over the lazy fox [similarity] => 0.10798984943121 ) ) You search for [document] and negative query [con] and we found the following results: <br />Array ( [0] => Array ( [id] => a [content] => This is a sample document. [similarity] => 0.49130368444052 ) [1] => Array ( [id] => b [content] => Another document in the database. [similarity] => 0.42365927286816 ) [2] => Array ( [id] => c [content] => Yet another sample document with different content. [similarity] => 0.37565257085905 ) [3] => Array ( [id] => 1 [content] => The quick yellow fox jumps over the lazy dog [similarity] => 0.10798984943121 ) [4] => Array ( [id] => 2 [content] => The quick brown dog jumps over the lazy fox [similarity] => 0.10798984943121 ) ) You search for [dog] and we found the following results: <br />Array ( [0] => Array ( [id] => 2 [content] => The quick brown dog jumps over the lazy fox [similarity] => 0.2474358296527 ) [1] => Array ( [id] => 3 [content] => The sleeping dog is a walrus and is friends with the blue fox. [similarity] => 0.22979399584857 ) [2] => Array ( [id] => 6 [content] => The sleepy brown dog is slower than the quick blue zebra [similarity] => 0.19011727515734 ) [3] => Array ( [id] => 4 [content] => A quick brown fox and a quick brown dog are friends [similarity] => 0.18569533817705 ) [4] => Array ( [id] => 1 [content] => The quick yellow fox jumps over the lazy dog [similarity] => 0.16495721976846 ) ) You search for [dog] and negative query [fox] and we found the following results: <br />-=-=-= <br />Array ( [0] => Array ( [id] => 6 [content] => The sleepy brown dog is slower than the quick blue zebra [similarity] => 0.19011727515734 ) [1] => Array ( [id] => /folder/folder/filename.txt [content] => I like chicken on my potato salad, said the dog. [similarity] => 0.15294382258037 ) [2] => Array ( [id] => 5 [content] => The quick brown goat is faster than the lazy dog [similarity] => 0.14784425419091 ) [3] => Array ( [id] => 3 [content] => The sleeping dog is a walrus and is friends with the blue fox. [similarity] => 0.11489699792429 ) [4] => Array ( [id] => a [content] => This is a sample document. [similarity] => 0.10721125348378 ) ) <br />-= returning related items for document id 'a' -=-= <br />Array ( [0] => Array ( [id] => a [content] => This is a sample document. [similarity] => 1 ) [1] => Array ( [id] => 3 [content] => The sleeping dog is a walrus and is friends with the blue fox. [similarity] => 0.5173665490974 ) [2] => Array ( [id] => c [content] => Yet another sample document with different content. [similarity] => 0.51582038382514 ) [3] => Array ( [id] => b [content] => Another document in the database. [similarity] => 0.38655567174253 ) [4] => Array ( [id] => 6 [content] => The sleepy brown dog is slower than the quick blue zebra [similarity] => 0.32612338205663 ) [5] => Array ( [id] => /folder/x.nfo [content] => a title of a story somewhere about the fox and the hen. [similarity] => 0.30167207920202 ) [6] => Array ( [id] => 5 [content] => The quick brown goat is faster than the lazy dog [similarity] => 0.28531022061928 ) [7] => Array ( [id] => /folder/folder/filename.txt [content] => I like chicken on my potato salad, said the dog. [similarity] => 0.27055543236881 ) [8] => Array ( [id] => 1 [content] => The quick yellow fox jumps over the lazy dog [similarity] => 0.26527905453865 ) [9] => Array ( [id] => 2 [content] => The quick brown dog jumps over the lazy fox [similarity] => 0.26527905453865 ) [10] => Array ( [id] => 4 [content] => A quick brown fox and a quick brown dog are friends [similarity] => 0.21899492969262 ) ) <br />-=-=-= <br />Now testing save/load... <br />Array ( [b] => Array ( [an] => 1 [no] => 1 [ot] => 1 [th] => 2 [he] => 2 [er] => 1 [r ] => 1 [ d] => 2 [do] => 1 [oc] => 1 [cu] => 1 [um] => 1 [me] => 1 [en] => 1 [nt] => 1 [t ] => 1 [ i] => 1 [in] => 1 [n ] => 1 [ t] => 1 [e ] => 1 [da] => 1 [at] => 1 [ta] => 1 [ab] => 1 [ba] => 1 [as] => 1 [se] => 1 [e.] => 1 [. ] => 1 ) [c] => Array ( [ye] => 1 [et] => 1 [t ] => 3 [ a] => 1 [an] => 1 [no] => 1 [ot] => 1 [th] => 2 [he] => 1 [er] => 2 [r ] => 1 [ s] => 1 [sa] => 1 [am] => 1 [mp] => 1 [pl] => 1 [le] => 1 [e ] => 1 [ d] => 2 [do] => 1 [oc] => 1 [cu] => 1 [um] => 1 [me] => 1 [en] => 3 [nt] => 4 [ w] => 1 [wi] => 1 [it] => 1 [h ] => 1 [di] => 1 [if] => 1 [ff] => 1 [fe] => 1 [re] => 1 [ c] => 1 [co] => 1 [on] => 1 [te] => 1 [t.] => 1 [. ] => 1 ) [1] => Array ( [th] => 2 [he] => 2 [e ] => 2 [ q] => 1 [qu] => 1 [ui] => 1 [ic] => 1 [ck] => 1 [k ] => 1 [ y] => 1 [ye] => 1 [el] => 1 [ll] => 1 [lo] => 1 [ow] => 1 [w ] => 1 [ f] => 1 [fo] => 1 [ox] => 1 [x ] => 1 [ j] => 1 [ju] => 1 [um] => 1 [mp] => 1 [ps] => 1 [s ] => 1 [ o] => 1 [ov] => 1 [ve] => 1 [er] => 1 [r ] => 1 [ t] => 1 [ l] => 1 [la] => 1 [az] => 1 [zy] => 1 [y ] => 1 [ d] => 1 [do] => 1 [og] => 1 ) [2] => Array ( [th] => 2 [he] => 2 [e ] => 2 [ q] => 1 [qu] => 1 [ui] => 1 [ic] => 1 [ck] => 1 [k ] => 1 [ b] => 1 [br] => 1 [ro] => 1 [ow] => 1 [wn] => 1 [n ] => 1 [ d] => 1 [do] => 1 [og] => 1 [g ] => 1 [ j] => 1 [ju] => 1 [um] => 1 [mp] => 1 [ps] => 1 [s ] => 1 [ o] => 1 [ov] => 1 [ve] => 1 [er] => 1 [r ] => 1 [ t] => 1 [ l] => 1 [la] => 1 [az] => 1 [zy] => 1 [y ] => 1 [ f] => 1 [fo] => 1 [ox] => 1 [x ] => 1 ) [3] => Array ( [th] => 3 [he] => 2 [e ] => 3 [ s] => 1 [sl] => 1 [le] => 1 [ee] => 1 [ep] => 1 [pi] => 1 [in] => 1 [ng] => 1 [g ] => 2 [ d] => 1 [do] => 1 [og] => 1 [ i] => 2 [is] => 2 [s ] => 4 [ a] => 2 [a ] => 1 [ w] => 2 [wa] => 1 [al] => 1 [lr] => 1 [ru] => 1 [us] => 1 [an] => 1 [nd] => 2 [d ] => 1 [ f] => 2 [fr] => 1 [ri] => 1 [ie] => 1 [en] => 1 [ds] => 1 [wi] => 1 [it] => 1 [h ] => 1 [ t] => 1 [ b] => 1 [bl] => 1 [lu] => 1 [ue] => 1 [fo] => 1 [ox] => 1 [x.] => 1 ) [/folder/folder/filename.txt] => Array ( [i ] => 1 [ l] => 1 [li] => 1 [ik] => 1 [ke] => 2 [e ] => 2 [ c] => 1 [ch] => 1 [hi] => 1 [ic] => 1 [ck] => 1 [en] => 1 [n ] => 2 [ o] => 1 [on] => 1 [ m] => 1 [my] => 1 [y ] => 1 [ p] => 1 [po] => 1 [ot] => 1 [ta] => 1 [at] => 1 [to] => 1 [o ] => 1 [ s] => 2 [sa] => 2 [al] => 1 [la] => 1 [ad] => 1 [d,] => 1 [, ] => 1 [ai] => 1 [id] => 1 [d ] => 1 [ t] => 1 [th] => 1 [he] => 1 [ d] => 1 [do] => 1 [og] => 1 [g.] => 1 ) [/folder/x.nfo] => Array ( [a ] => 2 [ t] => 3 [ti] => 1 [it] => 1 [tl] => 1 [le] => 1 [e ] => 4 [ o] => 1 [of] => 1 [f ] => 1 [ a] => 3 [ s] => 2 [st] => 1 [to] => 1 [or] => 1 [ry] => 1 [y ] => 1 [so] => 1 [om] => 1 [me] => 1 [ew] => 1 [wh] => 1 [he] => 4 [er] => 1 [re] => 1 [ab] => 1 [bo] => 1 [ou] => 1 [ut] => 1 [t ] => 1 [th] => 2 [ f] => 1 [fo] => 1 [ox] => 1 [x ] => 1 [an] => 1 [nd] => 1 [d ] => 1 [ h] => 1 [en] => 1 [n.] => 1 [. ] => 1 ) [5] => Array ( [th] => 3 [he] => 2 [e ] => 2 [ q] => 1 [qu] => 1 [ui] => 1 [ic] => 1 [ck] => 1 [k ] => 1 [ b] => 1 [br] => 1 [ro] => 1 [ow] => 1 [wn] => 1 [n ] => 2 [ g] => 1 [go] => 1 [oa] => 1 [at] => 1 [t ] => 1 [ i] => 1 [is] => 1 [s ] => 1 [ f] => 1 [fa] => 1 [as] => 1 [st] => 1 [te] => 1 [er] => 1 [r ] => 1 [ t] => 2 [ha] => 1 [an] => 1 [ l] => 1 [la] => 1 [az] => 1 [zy] => 1 [y ] => 1 [ d] => 1 [do] => 1 [og] => 1 ) [6] => Array ( [th] => 3 [he] => 2 [e ] => 3 [ s] => 2 [sl] => 2 [le] => 1 [ee] => 1 [ep] => 1 [py] => 1 [y ] => 1 [ b] => 2 [br] => 2 [ro] => 1 [ow] => 2 [wn] => 1 [n ] => 2 [ d] => 1 [do] => 1 [og] => 1 [g ] => 1 [ i] => 1 [is] => 1 [s ] => 1 [lo] => 1 [we] => 1 [er] => 1 [r ] => 1 [ t] => 2 [ha] => 1 [an] => 1 [ q] => 1 [qu] => 1 [ui] => 1 [ic] => 1 [ck] => 1 [k ] => 1 [bl] => 1 [lu] => 1 [ue] => 1 [ z] => 1 [ze] => 1 [eb] => 1 [ra] => 1 ) )