1 | <html> |
---|
2 | <head> |
---|
3 | <title>Solarium examples</title> |
---|
4 | </head> |
---|
5 | <body> |
---|
6 | <h1>Solarium examples</h1> |
---|
7 | |
---|
8 | <p> |
---|
9 | In this folder you can find various examples for the Solarium PHP Solr client library, to be used on a Solr 'example' index as distributed with Solr.<br/> |
---|
10 | Only the code is included, for more details about the examples and how to get them working please see the manual on the project website: <a href="http://www.solarium-project.org" target="_blank">http://www.solarium-project.org</a> |
---|
11 | </p> |
---|
12 | <p> |
---|
13 | If examples for some Solarium functionality are missing please request them by opening an issue in the issue tracker: <a href="http://github.com/basdenooijer/solarium/issues" target="_blank">http://github.com/basdenooijer/solarium/issues</a> |
---|
14 | </p> |
---|
15 | <p> |
---|
16 | <b>Important:</b> This code is intended to demonstrate the usage of Solarium. It is not intended for real-world use. For instance user input validation is missing or very limited, as the best way to do this will depend on your application and is not Solarium functionality.<br> |
---|
17 | It's advised not to deploy the examples to a public environment, or at least make sure the example directory is not available via your webserver. |
---|
18 | </p> |
---|
19 | |
---|
20 | |
---|
21 | <ul style="list-style:none;"> |
---|
22 | <li>1. Basic usage</li> |
---|
23 | <ul style="list-style:none;"> |
---|
24 | <li><a href="1.1-check-solarium-and-ping.php">1.1 Check solarium availability and ping Solr</a></li> |
---|
25 | <li><a href="1.2-basic-select.php">1.2 Basic select</a></li> |
---|
26 | <li><a href="1.3-basic-update.php">1.3 Basic update - add document</a></li> |
---|
27 | </ul> |
---|
28 | |
---|
29 | <li>2. Queries</li> |
---|
30 | <ul style="list-style:none;"> |
---|
31 | <li>2.1. Select query</li> |
---|
32 | <ul style="list-style:none;"> |
---|
33 | <li><a href="2.1.1-query-params.php">2.1.1 Select query params</a></li> |
---|
34 | <li><a href="2.1.2-custom-result-document.php">2.1.2 Custom result document</a></li> |
---|
35 | <li><a href="2.1.3-filterquery.php">2.1.3 Filterquery</a></li> |
---|
36 | <li>2.1.4 Components</li> |
---|
37 | <ul style="list-style:none;"> |
---|
38 | <li>2.1.5.1 FacetSet</li> |
---|
39 | <ul style="list-style:none;"> |
---|
40 | <li><a href="2.1.5.1.1-facet-field.php">2.1.5.1.1 Facet field</a></li> |
---|
41 | <li><a href="2.1.5.1.2-facet-query.php">2.1.5.1.2 Facet query</a></li> |
---|
42 | <li><a href="2.1.5.1.3-facet-multiquery.php">2.1.5.1.3 Facet multiquery</a></li> |
---|
43 | <li><a href="2.1.5.1.4-facet-range.php">2.1.5.1.4 Facet range</a></li> |
---|
44 | </ul> |
---|
45 | <li><a href="2.1.5.2-morelikethis.php">2.1.5.2 MoreLikeThis</a></li> |
---|
46 | <li><a href="2.1.5.3-highlighting.php">2.1.5.3 Highlighting</a></li> |
---|
47 | <ul style="list-style:none;"> |
---|
48 | |
---|
49 | <li><a href="2.1.5.3.1-per-field-highlighting.php">2.1.5.3.1 Per-field highlighting options</a></li> |
---|
50 | </ul> |
---|
51 | <li><a href="2.1.5.4-dismax.php">2.1.5.4 Dismax</a></li> |
---|
52 | <li><a href="2.1.5.5-edismax.php">2.1.5.5 Edismax</a></li> |
---|
53 | <li><a href="2.1.5.6-grouping-by-field.php">2.1.5.6 Grouping by field</a></li> |
---|
54 | <li><a href="2.1.5.7-grouping-by-query.php">2.1.5.7 Grouping by query</a></li> |
---|
55 | <li><a href="2.1.5.8-distributed-search.php">2.1.5.8 Distributed search (sharding)</a></li> |
---|
56 | <li><a href="2.1.5.9-spellcheck.php">2.1.5.9 Spellcheck</a></li> |
---|
57 | <li><a href="2.1.5.10-stats.php">2.1.5.10 Stats</a></li> |
---|
58 | <li><a href="2.1.5.11-debug.php">2.1.5.11 Debug (DebugQuery)</a></li> |
---|
59 | </ul> |
---|
60 | <li><a href="2.1.6-helper-functions.php">2.1.6 Helper functions</a></li> |
---|
61 | <li><a href="2.1.7-query-reuse.php">2.1.7 Query re-use</a></li> |
---|
62 | </ul> |
---|
63 | |
---|
64 | <li>2.2. Update query</li> |
---|
65 | <ul style="list-style:none;"> |
---|
66 | <li><a href="2.2.1-add-docs.php">2.2.1 Add docs</a></li> |
---|
67 | <li><a href="2.2.2-delete-by-query.php">2.2.2 Delete by query</a></li> |
---|
68 | <li><a href="2.2.3-delete-by-id.php">2.2.3 Delete by ID</a></li> |
---|
69 | <li><a href="2.2.4-optimize.php">2.2.4 Optimize index</a></li> |
---|
70 | <li><a href="2.2.5-rollback.php">2.2.5 Rollback</a></li> |
---|
71 | </ul> |
---|
72 | |
---|
73 | <li>2.3. MoreLikeThis query</li> |
---|
74 | <ul style="list-style:none;"> |
---|
75 | <li><a href="2.3.1-mlt-query.php">2.3.1 MoreLikeThis query</a></li> |
---|
76 | <li><a href="2.3.2-mlt-stream.php">2.3.2 MoreLikeThis query input as stream</a></li> |
---|
77 | </ul> |
---|
78 | |
---|
79 | <li>2.4. Analysis queries</li> |
---|
80 | <ul style="list-style:none;"> |
---|
81 | <li><a href="2.4.1-analysis-document.php">2.4.1 Analysis query for a document</a></li> |
---|
82 | <li><a href="2.4.2-analysis-field.php">2.4.2 Analysis query for a field</a></li> |
---|
83 | </ul> |
---|
84 | |
---|
85 | <li><a href="2.5-terms-query.php">2.5 Terms query</a></li> |
---|
86 | |
---|
87 | <li><a href="2.6-suggester-query.php">2.6 Suggester query</a></li> |
---|
88 | </ul> |
---|
89 | |
---|
90 | <li>4. Usage modes</li> |
---|
91 | <ul style="list-style:none;"> |
---|
92 | <li><a href="4.1-api-usage.php">4.1 API</a></li> |
---|
93 | <li><a href="4.2-configuration-usage.php">4.2 Configuration</a></li> |
---|
94 | <li><a href="4.3-extending-usage.php">4.3 Extending</a></li> |
---|
95 | </ul> |
---|
96 | |
---|
97 | <li>5. Customization</li> |
---|
98 | <ul style="list-style:none;"> |
---|
99 | <li><a href="5.1-partial-usage.php">5.1 Partial usage</a></li> |
---|
100 | <li><a href="5.2-extending.php">5.2 Extending</a></li> |
---|
101 | <li>5.3 Plugin system</li> |
---|
102 | <ul style="list-style:none;"> |
---|
103 | <li><a href="5.3.1-plugin-event-hooks.php">5.3.1 Event hooks</a></li> |
---|
104 | <li><a href="5.3.2-plugin-solarium-presets.php">5.3.2 Modifying Solarium presets</a></li> |
---|
105 | </ul> |
---|
106 | </ul> |
---|
107 | |
---|
108 | <li>6. Miscellaneous</li> |
---|
109 | <ul style="list-style:none;"> |
---|
110 | <li>6.1 Client adapters</li> |
---|
111 | <ul style="list-style:none;"> |
---|
112 | <li><a href="6.1.1-zend-http-adapter.php">6.1.1 Zend_Http adapter</a></li> |
---|
113 | <li><a href="6.1.2-pecl-http-adapter.php">6.1.2 Pecl_Http adapter</a></li> |
---|
114 | <li><a href="6.1.3-curl-adapter.php">6.1.3 Curl adapter</a></li> |
---|
115 | </ul> |
---|
116 | <li><a href="6.2-escaping.php">6.2 Escaping</a></li> |
---|
117 | <li><a href="6.3-placeholder-syntax.php">6.3 Placeholder syntax</a></li> |
---|
118 | <li><a href="6.4-dereferenced-params.php">6.4 Dereferenced params</a></li> |
---|
119 | </ul> |
---|
120 | |
---|
121 | <li>7. Plugins</li> |
---|
122 | <ul style="list-style:none;"> |
---|
123 | <li><a href="7.1-plugin-loadbalancer.php">7.1 Loadbalancer</a></li> |
---|
124 | <li><a href="7.2-plugin-postbigrequest.php">7.2 Post Big Requests</a></li> |
---|
125 | <li><a href="7.3-plugin-customizerequest.php">7.3 Customize Requests</a></li> |
---|
126 | <li><a href="7.4-plugin-parallelexecution.php">7.4 Parallel Execution</a></li> |
---|
127 | <li><a href="7.5-plugin-bufferedadd.php">7.5 Buffered Add for documents</a></li> |
---|
128 | <li><a href="7.6-plugin-prefetchiterator.php">7.6 Prefetch iterator for select queries</a></li> |
---|
129 | </ul> |
---|
130 | |
---|
131 | </ul> |
---|
132 | </body> |
---|
133 | </html> |
---|