Révision f8909aa4
Adding limits to optimize traffic between Sphinxsearch and plugin
| plugins/sphinx/sphindex_ | ||
|---|---|---|
| 62 | 62 |
|
| 63 | 63 |
client = sphinxsearch.SphinxClient() |
| 64 | 64 |
client.SetServer(server, port) |
| 65 |
client.SetLimits(0, 1, 0, 0) |
|
| 65 | 66 |
result = client.Query("", indexName)
|
| 66 | 67 |
docCount = result["total_found"] |
| 67 | 68 |
|
Formats disponibles : Unified diff