<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=API%3Abin%2Fcheck_xapian</id>
	<title>API:bin/check xapian - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.eprints.org/w/index.php?action=history&amp;feed=atom&amp;title=API%3Abin%2Fcheck_xapian"/>
	<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=API:bin/check_xapian&amp;action=history"/>
	<updated>2026-05-09T04:17:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=API:bin/check_xapian&amp;diff=14974&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk at 00:36, 6 March 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=API:bin/check_xapian&amp;diff=14974&amp;oldid=prev"/>
		<updated>2022-03-06T00:36:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 00:36, 6 March 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l55&quot; &gt;Line 55:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 55:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Print the full manual page and then exit.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Print the full manual page and then exit.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; '''--path=/path/to/xapian/directory/'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; '''--path=/path/to/xapian/directory/'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Specify the directory of the Xapian database if it is not EPRINTS_PATH/archives/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ARCHIVE_NAME&lt;/del&gt;/var/xapian/.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:Specify the directory of the Xapian database if it is not EPRINTS_PATH/archives/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ARCHIVEID&lt;/ins&gt;/var/xapian/.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; '''--quiet'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;; '''--quiet'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:This option will supress all output unless an error occurs.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:This option will supress all output unless an error occurs.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.eprints.org/w/index.php?title=API:bin/check_xapian&amp;diff=14935&amp;oldid=prev</id>
		<title>Drn@ecs.soton.ac.uk: Added API:bin page for check_xapian</title>
		<link rel="alternate" type="text/html" href="https://wiki.eprints.org/w/index.php?title=API:bin/check_xapian&amp;diff=14935&amp;oldid=prev"/>
		<updated>2022-03-05T13:29:29Z</updated>

		<summary type="html">&lt;p&gt;Added API:bin page for check_xapian&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;!-- Pod2Wiki=_preamble_ &lt;br /&gt;
This page has been automatically generated from the EPrints 3.4 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost.&lt;br /&gt;
 --&amp;gt;{{API}}{{Pod2Wiki}}{{API:Source|file=bin/generate_views|package_name=bin/check_xapian}}[[Category:API]]&amp;lt;div&amp;gt;&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=_private_ --&amp;gt;&amp;lt;!-- Pod2Wiki=head_name --&amp;gt;&lt;br /&gt;
==NAME==&lt;br /&gt;
'''check_xapian''' - Checks that Xapian is successfully indexing eprint items.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_synopsis --&amp;gt;&lt;br /&gt;
==SYNOPSIS==&lt;br /&gt;
'''check_xapian''' ''repository_id'' ['''options''']&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_description --&amp;gt;&lt;br /&gt;
==DESCRIPTION==&lt;br /&gt;
This script checks that eprint items have successfully been indexed by Xapian. It does this my using &amp;quot;/usr/bin/quest&amp;quot; to search the Xapian database filesystem for the title of the particular item. This requires the 'xapian-tools' package to be installed. If the title does not contain any special characters or quote marks it will attempt to search for the title within quote marks. If this is not the case or this returns no matching results, it will search for all the terms in the title in an attempt to find a result. The script will print a success message to the standard output if a result with the correct EPrint ID is returned othewise it will print a failure message to the standard error. A summary message will be printed before the script exits totalling the number of items found not to be indexed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_arguments --&amp;gt;&lt;br /&gt;
==ARGUMENTS==&lt;br /&gt;
; '''repository_id'''&lt;br /&gt;
:The ID of the eprint repository to use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_options --&amp;gt;&lt;br /&gt;
==OPTIONS==&lt;br /&gt;
; '''--all'''&lt;br /&gt;
:Check all eprint items rather than those last modified in the last 2 days.&lt;br /&gt;
; '''--idlist=1,2,3'''&lt;br /&gt;
:Check all items list in the comma-separated list of IDs.&lt;br /&gt;
; '''--facets'''&lt;br /&gt;
:Check search results using the facets matching protocol rather than the standard Xapian matching protocol.&lt;br /&gt;
; '''--days=n'''&lt;br /&gt;
:Check eprint items last modified in the last n days rathar than the last 2 days.&lt;br /&gt;
; '''--results=n'''&lt;br /&gt;
:Only check the top n results ordered by relevance. By default only check first 1000 results.&lt;br /&gt;
; '''--help'''&lt;br /&gt;
:Print a brief help message and exit.&lt;br /&gt;
; '''--man'''&lt;br /&gt;
:Print the full manual page and then exit.&lt;br /&gt;
; '''--path=/path/to/xapian/directory/'''&lt;br /&gt;
:Specify the directory of the Xapian database if it is not EPRINTS_PATH/archives/ARCHIVE_NAME/var/xapian/.&lt;br /&gt;
; '''--quiet'''&lt;br /&gt;
:This option will supress all output unless an error occurs.&lt;br /&gt;
; '''--random'''&lt;br /&gt;
:Takes a random sample of 100 eprint items to check whether they are indexed. Can be used with --sample=n to specify a different random sample size. Can be used with --days to specify how recently the random sample should taken from.&lt;br /&gt;
; '''--reindex'''&lt;br /&gt;
:If a item is not found then schedule it for reindexing.&lt;br /&gt;
; '''--sample=n'''&lt;br /&gt;
:Used in conjuction with --random to specify the sample size of items to check. By default sample size is 100.&lt;br /&gt;
; '''--status=archive,deletion'''&lt;br /&gt;
:Used to specify the status of eprint (inbox, buffer, archive, deletion) to be check. If not specified eprints of all statuses will be checked. Specify multiple statuses through a comma-separated list. Ignored if used in conjunction with --idlist.&lt;br /&gt;
; '''--user=admin'''&lt;br /&gt;
:Used in conjuction with --reindex to specify the username of the user who should be set as the creator for indexing tasks. If not set the first admin or local_admin user created will be used.&lt;br /&gt;
; '''--verbose'''&lt;br /&gt;
:Explain in detail what is going on.&lt;br /&gt;
; '''--version'''&lt;br /&gt;
:Output version information and exit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=head_copyright --&amp;gt;&lt;br /&gt;
==COPYRIGHT==&lt;br /&gt;
Copyright 2022 University of Southampton. EPrints 3.4 is supplied by EPrints Services.&lt;br /&gt;
&lt;br /&gt;
http://www.eprints.org/eprints-3.4/&lt;br /&gt;
&lt;br /&gt;
This file is part of EPrints 3.4 http://www.eprints.org/.&lt;br /&gt;
&lt;br /&gt;
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.&lt;br /&gt;
&lt;br /&gt;
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Pod2Wiki= --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Pod2Wiki=_postamble_ --&amp;gt;&lt;br /&gt;
&amp;lt;!-- Edit below this comment --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Drn@ecs.soton.ac.uk</name></author>
		
	</entry>
</feed>