Permalink
Browse files

Nice release ! wohoo...

  • Loading branch information...
Yehuda-Daniel Korotkin
Yehuda-Daniel Korotkin committed Mar 15, 2012
1 parent 0216e80 commit 943660378cbeccc76ddf45b21bfeae3cb4065114
Showing with 18,105 additions and 0 deletions.
  1. +76 −0 README.md
  2. +13 −0 php_doc_folder/blank.html
  3. +57 −0 php_doc_folder/classtrees_default.html
  4. +453 −0 php_doc_folder/default/KoSolr.html
  5. +411 −0 php_doc_folder/default/KoSolr_Document.html
  6. +219 −0 php_doc_folder/default/KoSolr_Exception.html
  7. +366 −0 php_doc_folder/default/KoSolr_Query.html
  8. +646 −0 php_doc_folder/default/KoSolr_Server.html
  9. +384 −0 php_doc_folder/default/KoSolr_Server_Admin.html
  10. +1,403 −0 php_doc_folder/default/KoSolr_Server_Request.html
  11. +595 −0 php_doc_folder/default/KoSolr_Server_Request_Admin.html
  12. +762 −0 php_doc_folder/default/KoSolr_Server_Request_Admin_Cores.html
  13. +1,208 −0 php_doc_folder/default/KoSolr_Server_Request_Search.html
  14. +712 −0 php_doc_folder/default/KoSolr_Server_Request_UpdateJson.html
  15. +245 −0 php_doc_folder/default/KoSolr_Server_Response.html
  16. +443 −0 php_doc_folder/default/KoSolr_Server_Response_IExtend.html
  17. +292 −0 php_doc_folder/default/KoSolr_Server_Response_Phps.html
  18. +478 −0 php_doc_folder/default/KoSolr_Utils.html
  19. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---document.php.html
  20. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---exception.php.html
  21. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---query.php.html
  22. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---admin.php.html
  23. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---request---admin---cores.php.html
  24. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---request---admin.php.html
  25. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---request---search.php.html
  26. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---request---updatejson.php.html
  27. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---request.php.html
  28. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---response---iextend.php.html
  29. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---response---phps.php.html
  30. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server---response.php.html
  31. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---server.php.html
  32. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr---utils.php.html
  33. +139 −0 php_doc_folder/default/_root_folder---classes---kosolr.php.html
  34. +181 −0 php_doc_folder/default/_root_folder---index.php.html
  35. +110 −0 php_doc_folder/default/_tests_folder---bootstrap.php.html
  36. +110 −0 php_doc_folder/default/_tests_folder---bootstrap1.php.html
  37. +1,502 −0 php_doc_folder/elementindex.html
  38. +1,499 −0 php_doc_folder/elementindex_default.html
  39. +115 −0 php_doc_folder/errors.html
  40. +24 −0 php_doc_folder/index.html
  41. +283 −0 php_doc_folder/li_default.html
  42. BIN php_doc_folder/media/background.png
  43. +32 −0 php_doc_folder/media/banner.css
  44. BIN php_doc_folder/media/bg_left.png
  45. BIN php_doc_folder/media/empty.png
  46. BIN php_doc_folder/media/images/AbstractClass.png
  47. BIN php_doc_folder/media/images/AbstractClass_logo.png
  48. BIN php_doc_folder/media/images/AbstractMethod.png
  49. BIN php_doc_folder/media/images/AbstractPrivateClass.png
  50. BIN php_doc_folder/media/images/AbstractPrivateClass_logo.png
  51. BIN php_doc_folder/media/images/AbstractPrivateMethod.png
  52. BIN php_doc_folder/media/images/Class.gif
  53. BIN php_doc_folder/media/images/Class.png
  54. BIN php_doc_folder/media/images/Class_logo.png
  55. BIN php_doc_folder/media/images/Constant.gif
  56. BIN php_doc_folder/media/images/Constant.png
  57. BIN php_doc_folder/media/images/Constants.gif
  58. BIN php_doc_folder/media/images/Constructor.gif
  59. BIN php_doc_folder/media/images/Constructor.png
  60. BIN php_doc_folder/media/images/Destructor.gif
  61. BIN php_doc_folder/media/images/Destructor.png
  62. BIN php_doc_folder/media/images/Disk.gif
  63. BIN php_doc_folder/media/images/FolderClosed.gif
  64. BIN php_doc_folder/media/images/FolderOpened.gif
  65. BIN php_doc_folder/media/images/Function.png
  66. BIN php_doc_folder/media/images/Functions.gif
  67. BIN php_doc_folder/media/images/GhostClass.gif
  68. BIN php_doc_folder/media/images/Global.png
  69. BIN php_doc_folder/media/images/I.png
  70. BIN php_doc_folder/media/images/Index.png
  71. BIN php_doc_folder/media/images/Interface.png
  72. BIN php_doc_folder/media/images/Interface_logo.png
  73. BIN php_doc_folder/media/images/L.png
  74. BIN php_doc_folder/media/images/Lminus.png
  75. BIN php_doc_folder/media/images/Lplus.png
  76. BIN php_doc_folder/media/images/Method.png
  77. BIN php_doc_folder/media/images/Page.png
  78. BIN php_doc_folder/media/images/Page_logo.png
  79. BIN php_doc_folder/media/images/PrivateClass.png
  80. BIN php_doc_folder/media/images/PrivateClass_logo.png
  81. BIN php_doc_folder/media/images/PrivateDataMember.gif
  82. BIN php_doc_folder/media/images/PrivateMethod.gif
  83. BIN php_doc_folder/media/images/PrivateMethod.png
  84. BIN php_doc_folder/media/images/PrivateProperty.gif
  85. BIN php_doc_folder/media/images/PrivateVariable.png
  86. BIN php_doc_folder/media/images/ProtectedDataMember.gif
  87. BIN php_doc_folder/media/images/ProtectedMethod.gif
  88. BIN php_doc_folder/media/images/ProtectedProperty.gif
  89. BIN php_doc_folder/media/images/PublicDataMember.gif
  90. BIN php_doc_folder/media/images/PublicMethod.gif
  91. BIN php_doc_folder/media/images/PublicProperty.gif
  92. BIN php_doc_folder/media/images/StaticMethod.png
  93. BIN php_doc_folder/media/images/StaticVariable.png
  94. BIN php_doc_folder/media/images/T.png
  95. BIN php_doc_folder/media/images/Tminus.png
  96. BIN php_doc_folder/media/images/Tplus.png
  97. BIN php_doc_folder/media/images/Types.gif
  98. BIN php_doc_folder/media/images/Variable.gif
  99. BIN php_doc_folder/media/images/Variable.png
  100. BIN php_doc_folder/media/images/Vars.gif
  101. BIN php_doc_folder/media/images/blank.png
  102. BIN php_doc_folder/media/images/classFolder.gif
  103. BIN php_doc_folder/media/images/class_folder.png
  104. BIN php_doc_folder/media/images/empty.png
  105. BIN php_doc_folder/media/images/error.gif
  106. BIN php_doc_folder/media/images/file.png
  107. BIN php_doc_folder/media/images/folder.png
  108. BIN php_doc_folder/media/images/foldericon.png
  109. BIN php_doc_folder/media/images/function_folder.png
  110. BIN php_doc_folder/media/images/minus.gif
  111. BIN php_doc_folder/media/images/msgError.gif
  112. BIN php_doc_folder/media/images/msgFatalError.gif
  113. BIN php_doc_folder/media/images/msgHint.gif
  114. BIN php_doc_folder/media/images/msgInformation.gif
  115. BIN php_doc_folder/media/images/msgWarning.gif
  116. BIN php_doc_folder/media/images/next_button.png
  117. BIN php_doc_folder/media/images/next_button_disabled.png
  118. BIN php_doc_folder/media/images/openfoldericon.png
  119. BIN php_doc_folder/media/images/package.png
  120. BIN php_doc_folder/media/images/package_folder.png
  121. BIN php_doc_folder/media/images/plus.gif
  122. BIN php_doc_folder/media/images/previous_button.png
  123. BIN php_doc_folder/media/images/previous_button_disabled.png
  124. BIN php_doc_folder/media/images/private_class_logo.png
  125. BIN php_doc_folder/media/images/spacer.gif
  126. BIN php_doc_folder/media/images/tutorial.png
  127. BIN php_doc_folder/media/images/tutorial_folder.png
  128. BIN php_doc_folder/media/images/up_button.png
  129. +454 −0 php_doc_folder/media/lib/classTree.js
  130. +86 −0 php_doc_folder/media/lib/tab.webfx.css
  131. +308 −0 php_doc_folder/media/lib/tabpane.js
  132. +111 −0 php_doc_folder/media/lib/ua.js
  133. +195 −0 php_doc_folder/media/style.css
  134. +181 −0 php_doc_folder/media/stylesheet.css
  135. +29 −0 php_doc_folder/packages.html
  136. +16 −0 root_folder/bootstrap.php
  137. +121 −0 root_folder/classes/kosolr.php
  138. +84 −0 root_folder/classes/kosolr/document.php
  139. +13 −0 root_folder/classes/kosolr/exception.php
  140. +13 −0 root_folder/classes/kosolr/query.php
  141. +194 −0 root_folder/classes/kosolr/server.php
  142. +52 −0 root_folder/classes/kosolr/server/admin.php
  143. +187 −0 root_folder/classes/kosolr/server/request.php
  144. +53 −0 root_folder/classes/kosolr/server/request/admin.php
  145. +162 −0 root_folder/classes/kosolr/server/request/admin/cores.php
  146. +328 −0 root_folder/classes/kosolr/server/request/search.php
  147. +159 −0 root_folder/classes/kosolr/server/request/updatejson.php
  148. +31 −0 root_folder/classes/kosolr/server/response.php
  149. +65 −0 root_folder/classes/kosolr/server/response/iextend.php
  150. +31 −0 root_folder/classes/kosolr/server/response/phps.php
  151. +216 −0 root_folder/classes/kosolr/utils.php
  152. +203 −0 root_folder/index.php
  153. +9 −0 tests_folder/configuration.xml
  154. +100 −0 tests_folder/root_folder/classes/KoSolrTest.php
View
@@ -0,0 +1,76 @@
+PHP Apache Solr Adapter
+=======================
+
+Faster way search with solr
+in advance way.
+
+
+You also invited to my [Wiki][wik]
+
+
+Installation
+-----------
+
+Put the files at classes dir (See bootstrap how it supposed to load the classes)
+
+Configure `classes/KoSolr.php`:
+ private $_connection_configurations = array(
+ 'default-solr-configuration'=>array(
+ 'server'=>'solr',
+ 'port'=>8080,
+ 'app_path'=>'/apache-solr-3.5.0',
+ 'core'=>'members'
+ ),
+ );
+
+
+Code Examples
+-----------
+
+Create Server Instance :
+
+ $instance_KoSolr = KoSolr::getInstance();
+ $KoSolr_Server_Instance = $instance_KoSolr->getServer();
+ // OR //
+ $KoSolr_Server_Instance = new KoSolr_Server('SOLR_SERVER',8080,'/apache-solr-3.5.0','CORENAME');
+
+Delete (all=*:*) Documents
+
+ $KoSolr_Server_Instance->execute($KoSolr_Server_Instance->create_delete_request('*:*'));
+
+Adding/Updating document (note: each 1000 docs it will auto send them)
+
+ $doc = new KoSolr_Document();
+ $doc->id = "id TEST";
+ $doc->name = 'xxx TEST';
+ $doc->Some_FIELD_NAME_OF_SOLR = 'some thing';
+ $update_request = $KoSolr_Server_Instance->create_update_request();
+ $update_request->add_document($doc);
+ $response = $KoSolr_Server_Instance->execute($update_request);
+
+Search on solr :
+
+ $search_request = $KoSolr_Server_Instance->create_search_request();
+ $search_request->select('*')->equals('id', '"id TEST"');
+ $search_request->select('field1,field2,etc')
+ ->equals('field1', 'should be equle')
+ ->query('search string')
+ ->limit(100)
+ ->offset(100)
+ ->setSort('field1 ASC');
+
+ $search_request->fl='object_id';
+ $search_request->defType='dismax';
+ $search_request->qf = 'activity_title^100 high^50 medium^5 low^0.01';
+
+ $response = $server->execute($search_request);
+
+ $response->response['docs'] <-- This is results
+
+Commit Optimize
+
+ $KoSolr_Server_Instance->commit();
+ $KoSolr_Server_Instance->optimize();
+
+
+[wik]: http://wiki.korotkin.co.il/PHP_Apache_Solr_Adapter
View
@@ -0,0 +1,13 @@
+<html>
+<head>
+ <title>PHP-Apache-Solr-Adapter</title>
+ <link rel="stylesheet" href="media/stylesheet.css" />
+ <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
+</head>
+<body>
+<div align="center"><h1>PHP-Apache-Solr-Adapter</h1></div>
+<b>Welcome to default!</b><br />
+<br />
+This documentation was generated by <a href="http://www.phpdoc.org">phpDocumentor v1.4.4</a><br />
+</body>
+</html>
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <!-- template designed by Marco Von Ballmoos -->
+ <title></title>
+ <link rel="stylesheet" href="media/stylesheet.css" />
+ </head>
+ <body>
+
+<!-- Start of Class Data -->
+<H2>
+
+</H2>
+<h2>Root class KoSolr</h2>
+<ul>
+<li><a href="default/KoSolr.html">KoSolr</a></li></ul>
+
+<h2>Root class KoSolr_Document</h2>
+<ul>
+<li><a href="default/KoSolr_Document.html">KoSolr_Document</a></li></ul>
+
+<h2>Root class KoSolr_Server</h2>
+<ul>
+<li><a href="default/KoSolr_Server.html">KoSolr_Server</a><ul>
+<li><a href="default/KoSolr_Server_Admin.html">KoSolr_Server_Admin</a></li></ul></li>
+</ul>
+
+<h2>Root class KoSolr_Server_Request</h2>
+<ul>
+<li><a href="default/KoSolr_Server_Request.html">KoSolr_Server_Request</a><ul>
+<li><a href="default/KoSolr_Server_Request_Admin.html">KoSolr_Server_Request_Admin</a><ul>
+<li><a href="default/KoSolr_Server_Request_Admin_Cores.html">KoSolr_Server_Request_Admin_Cores</a></li></ul></li>
+<li><a href="default/KoSolr_Server_Request_Search.html">KoSolr_Server_Request_Search</a><ul>
+<li><a href="default/KoSolr_Query.html">KoSolr_Query</a></li></ul></li>
+<li><a href="default/KoSolr_Server_Request_UpdateJson.html">KoSolr_Server_Request_UpdateJson</a></li></ul></li>
+</ul>
+
+<h2>Root class KoSolr_Server_Response_IExtend</h2>
+<ul>
+<li><a href="default/KoSolr_Server_Response_IExtend.html">KoSolr_Server_Response_IExtend</a><ul>
+<li><a href="default/KoSolr_Server_Response.html">KoSolr_Server_Response</a></li><li><a href="default/KoSolr_Server_Response_Phps.html">KoSolr_Server_Response_Phps</a></li></ul></li>
+</ul>
+
+<h2>Root class KoSolr_Utils</h2>
+<ul>
+<li><a href="default/KoSolr_Utils.html">KoSolr_Utils</a></li></ul>
+
+<h2>Root class Exception</h2>
+<ul>
+<li><a href="default/KoSolr_Exception.html">KoSolr_Exception</a></li></ul>
+
+ <p class="notes" id="credit">
+ Documentation generated on Tue, 13 Mar 2012 15:09:23 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
+ </p>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 9436603

Please sign in to comment.