File: indextool.1

package info (click to toggle)
sphinxsearch 2.2.11-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 25,720 kB
  • sloc: cpp: 102,259; xml: 85,608; sh: 9,259; php: 3,790; ansic: 3,158; yacc: 1,969; java: 1,336; ruby: 1,289; python: 1,062; pascal: 912; perl: 381; lex: 275; makefile: 150; sql: 77; cs: 35
file content (126 lines) | stat: -rw-r--r-- 5,061 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
'\" t
.\"     Title: indextool
.\"    Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 07/19/2016
.\"    Manual: Sphinxsearch
.\"    Source: 2.2.11-release
.\"  Language: English
.\"
.TH "INDEXTOOL" "1" "07/19/2016" "2\&.2\&.11\-release" "Sphinxsearch"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
indextool \- Sphinxsearch tool dump miscellaneous debug information about the physical index\&.
.SH "SYNOPSIS"
.HP \w'\fBindextool\fR\ 'u
\fBindextool\fR {command} [options]
.SH "DESCRIPTION"
.PP
Sphinx is a collection of programs that aim to provide high quality fulltext search\&.
.PP
\fBindextool\fR
is one of the helper tools within the Sphinx package\&. It is used to dump miscellaneous debug information about the physical index\&. Apart ghe dumping
\fBindextool\fR
can perform index verification, hence the indextool name rather than just indexdump\&.
.SH "COMMANDS"
.PP
The commands are as follows:
.PP
\fB\-\-dumpheader\fR \fIFILENAME\&.sph\fR
.RS 4
quickly dumps the provided index header file without touching any other index files or even the configuration file\&. The report provides a breakdown of all the index settings, in particular the entire attribute and field list\&. Prior to 0\&.9\&.9\-rc2, this command was present in CLI search utility\&.
.RE
.PP
\fB\-\-dumpconfig\fR \fIFILENAME\&.sph\fR
.RS 4
dumps the index definition from the given index header file in (almost) compliant
sphinx\&.conf
file format\&.
.RE
.PP
\fB\-\-dumpheader\fR \fIINDEXNAME\fR
.RS 4
dumps index header by index name with looking up the header path in the configuration file\&.
.RE
.PP
\fB\-\-dumpdocids\fR \fIINDEXNAME\fR
.RS 4
dumps document IDs by index name\&. It takes the data from attribute (\&.spa) file and therefore requires
\fBdocinfo=extern\fR
to work\&.
.RE
.PP
\fB\-\-dumphitlist\fR \fIINDEXNAME\fR \fIKEYWORD\fR
.RS 4
dumps all the hits (occurences) of a given keyword in a given index, with keyword specified as text\&.
.RE
.PP
\fB\-\-dumphitlist\fR \fIINDEXNAME\fR \fB\-\-wordid\fR \fIID\fR
.RS 4
dumps all the hits (occurences) of a given keyword in a given index, with keyword specified as internal numeric ID\&.
.RE
.PP
\fB\-\-htmlstrip\fR INDEXNAME
.RS 4
filters stdin using HTML stripper settings for a given index, and prints the filtering results to stdout\&. Note that the settings will be taken from
sphinx\&.conf, and not the index header\&.
.RE
.PP
\fB\-\-check\fR \fIINDEXNAME\fR
.RS 4
checks the index data files for consistency errors that might be introduced either by bugs in
\fBindexer\fR
and/or hardware faults\&.
.RE
.PP
\fB\-\-strip\-path\fR
.RS 4
strips the path names from all the file names referenced from the index (stopwords, wordforms, exceptions, etc)\&. This is useful for checking indexes built on another machine with possibly different path layouts\&.
.RE
.PP
\fB\-\-optimize\-rt\-klists\fR
.RS 4
optimizes the kill list memory use in the disk chunk of a given RT index\&. That is a one\-off optimization intended for rather old RT indexes, created by development versions prior to 1\&.10\-beta release\&. As of 1\&.10\-beta releases, this kill list optimization (purging) should happen automatically, and there should never be a need to use this option\&.
.RE
.SH "OPTIONS"
.PP
The only currently available option applies to all commands and lets you specify the configuration file:
.PP
\fB\-\-config\fR\ \&\fICONFIGFILE\fR, \fB\-c\fR\ \&\fICONFIGFILE\fR
.RS 4
overrides the built\-in config file names\&.
.RE
.SH "AUTHOR"
.PP
Andrey Aksenoff (shodan@sphinxsearch\&.com)\&. This manual page is written by Alexey Vinogradov (klirichek@sphinxsearch\&.com)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation\&.
.PP
On Debian systems, the complete text of the GNU General Public License can be found in
/usr/share/common\-licenses/GPL\&.
.SH "SEE ALSO"
.PP
\fBindexer\fR(1),
\fBsearchd\fR(1),
\fBsearch\fR(1)
.PP
Sphinx and it\*(Aqs programs are documented fully by the
\fISphinx reference manual\fR
available in
/usr/share/doc/sphinxsearch\&.