diff --git a/reference/swish/book.xml b/reference/swish/book.xml
new file mode 100644
index 0000000000..364a669bc4
--- /dev/null
+++ b/reference/swish/book.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+ swish
+
+
+
+ &reftitle.intro;
+
+ The swish extension provides the bindings for Swish-e API.
+ Swish-e stands for "Simple Web Indexing System for Humans - Enhanced" and
+ is an open source system for indexing and search.
+ Swish-e itself is licensed under GPL license, but uses a clause that
+ allows applications to link against the library if every copy of the
+ combined work is accompanied by the URL to Swish-e source code. Here it
+ is: http://swish-e.org.
+
+
+ &warn.experimental;
+
+
+
+ &reference.swish.setup;
+ &reference.swish.constants;
+ &reference.swish.examples;
+
+ &reference.swish.reference;
+
+
+
+
+
diff --git a/reference/swish/constants.xml b/reference/swish/constants.xml
index 3a07a84f47..44dff3af8b 100644
--- a/reference/swish/constants.xml
+++ b/reference/swish/constants.xml
@@ -1,6 +1,6 @@
-
-
+
+
&reftitle.constants;
&extension.constants;
@@ -215,7 +215,7 @@
-
+
diff --git a/reference/swish/reference.xml b/reference/swish/reference.xml
index afb24a313a..f13185a64b 100644
--- a/reference/swish/reference.xml
+++ b/reference/swish/reference.xml
@@ -1,107 +1,12 @@
-
-
-
-
+
+
- Swish Functions
- swish
-
-
- &reftitle.intro;
-
- The swish extension provides the bindings for Swish-e API.
- Swish-e stands for "Simple Web Indexing System for Humans - Enhanced" and
- is an open source system for indexing and search.
- Swish-e itself is licensed under GPL license, but uses a clause that
- allows applications to link against the library if every copy of the
- combined work is accompanied by the URL to Swish-e source code. Here it
- is: http://swish-e.org.
-
-
- &warn.experimental;
-
-
-
- &reftitle.required;
-
- PECL/swish requires PHP 5.1.3 or newer.
-
-
-
- &reftitle.install;
-
- &pecl.info;
- &url.pecl.package;swish.
-
-
- The latest PECL/swish Win32 DLL can be downloaded here:
- php_swish.dll.
-
-
-
- &reftitle.runtime;
- &no.config;
-
-
- &reftitle.examples;
-
-
- Basic search query
-
-Swish &Functions;
-try {
-
- $swish = new Swish("index.swish-e");
- $results = $swish->query("test OR text");
-
- echo "Found ", $results->hits, " results\n";
- while ($result = $results->nextResult()) {
- var_dump($result);
- break; //break after the first result
- }
-
-} catch (SwishException $e) {
- echo "Error: ", $e->getMessage(), "\n";
-}
-
-?>
-]]>
-
-
-
- &example.outputs.similar;
-
-
- int(1)
- ["swishrank"]=>
- int(1000)
- ["swishfilenum"]=>
- int(10)
- ["swishdbfile"]=>
- string(13) "index.swish-e"
- ["swishdocpath"]=>
- string(23) "README.SUBMITTING_PATCH"
- ["swishtitle"]=>
- NULL
- ["swishdocsize"]=>
- int(4557)
- ["swishlastmodified"]=>
- int(1072136752)
-}
-]]>
-
-
- &reference.swish.constants;
- &reference.swish.classes;
-
- &reference.swish.entities.functions;
+ &reference.swish.entities.functions;
+
+
+
+ &reftitle.setup;
+
+
+
+ &reftitle.required;
+
+ PECL/swish requires PHP 5.1.3 or newer.
+
+
+
+
+
+
+ &reftitle.install;
+
+ &pecl.info;
+ &url.pecl.package;swish.
+
+
+ The latest PECL/swish Win32 DLL can be downloaded here:
+ php_swish.dll.
+
+
+
+
+
+
+ &reftitle.runtime;
+ &no.config;
+
+
+
+
+
+ &reftitle.resources;
+ &no.resource;
+
+
+
+
+
+
+