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 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>indexer configuration</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="mnoGoSearch 3.3.7 reference manual"
HREF="index.html"><LINK
REL="UP"
TITLE="Indexing"
HREF="msearch-indexing.html"><LINK
REL="PREVIOUS"
TITLE="Content-Encoding support
"
HREF="msearch-content-enc.html"><LINK
REL="NEXT"
TITLE="Extended indexing features"
HREF="msearch-extended-indexing.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="mnogo.css"><META
NAME="Description"
CONTENT="mnoGoSearch - Full Featured Web site Open Source Search Engine Software over the Internet and Intranet Web Sites Based on SQL Database. It is a Free search software covered by GNU license."><META
NAME="Keywords"
CONTENT="shareware, freeware, download, internet, unix, utilities, search engine, text retrieval, knowledge retrieval, text search, information retrieval, database search, mining, intranet, webserver, index, spider, filesearch, meta, free, open source, full-text, udmsearch, website, find, opensource, search, searching, software, udmsearch, engine, indexing, system, web, ftp, http, cgi, php, SQL, MySQL, database, php3, FreeBSD, Linux, Unix, mnoGoSearch, MacOS X, Mac OS X, Windows, 2000, NT, 95, 98, GNU, GPL, url, grabbing"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#EEEEEE"
TEXT="#000000"
LINK="#000080"
VLINK="#800080"
ALINK="#FF0000"
><!--#include virtual="body-before.html"--><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>mnoGoSearch 3.3.7 reference manual: Full-featured search engine software</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="msearch-content-enc.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Indexing</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="msearch-extended-indexing.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="indexer-configuration"
>indexer configuration</A
></H1
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="follow"
>Specifying WEB space to be indexed</A
></H2
><P
>When indexer tries to insert a new URL into the database or is trying to index an existing one, it first of all checks whether this URL has corresponding <B
CLASS="command"
>Server</B
>, <B
CLASS="command"
>Realm</B
> or <B
CLASS="command"
>Subnet</B
> command given in <TT
CLASS="filename"
>indexer.conf</TT
>. URLs without a corresponding <B
CLASS="command"
>Server</B
>, <B
CLASS="command"
>Realm</B
> or <B
CLASS="command"
>Subnet</B
> command are not indexed. By default those URLs which are already in the database and have no Server/Realm/Subnet commands will be deleted from the database. It may happen, for example, after removing some Server/Realm/Subnet commands from <TT
CLASS="filename"
>indexer.conf</TT
>.</P
><P
>These commands have the following format:
<PRE
CLASS="programlisting"
> Server [Method] [SubSection] <pattern> [alias]
Realm [Method] [CaseType] [MatchType] [CmpType] <pattern> [alias]
Subnet [Method] [MatchType] <pattern>
</PRE
>
</P
><P
>Mandatory parameter <CODE
CLASS="option"
>pattern</CODE
> specifies an URL, or its part, or pattern to compare.</P
><P
>Optional parameter <CODE
CLASS="option"
>method</CODE
> specifies a document action for this command. It may take any of these values:
<TT
CLASS="literal"
>Allow</TT
>, <TT
CLASS="literal"
>Disallow</TT
>, <TT
CLASS="literal"
>HrefOnly</TT
>,
<TT
CLASS="literal"
>CheckOnly</TT
>, <TT
CLASS="literal"
>Skip</TT
>, <TT
CLASS="literal"
>CheckMP3</TT
>,
<TT
CLASS="literal"
>CheckMP3Only</TT
>. By default, the value <TT
CLASS="literal"
>Allow</TT
> is used.
<P
></P
><OL
TYPE="1"
><LI
><P
> <B
CLASS="command"
>Allow</B
>
<A
NAME="AEN1046"
></A
>
</P
><P
> Value <TT
CLASS="literal"
>Allow</TT
> specifies that all corresponding documents will be indexed and scanned for new links. Depending on <TT
CLASS="literal"
>Content-Type</TT
>, the appropriate external parser is executed if needed.
</P
></LI
><LI
><P
> <B
CLASS="command"
>Disallow</B
>
<A
NAME="AEN1056"
></A
>
</P
><P
> Value <TT
CLASS="literal"
>Disallow</TT
> specifies that all corresponding documents will be ignored and deleted from the database, if its was inserted there in the first place.
</P
></LI
><LI
><P
> <B
CLASS="command"
>HrefOnly</B
>
<A
NAME="AEN1065"
></A
>
</P
><P
> Value <TT
CLASS="literal"
>HrefOnly</TT
> specifies that all corresponding documents will only be scanned for new links (not indexed). This is useful, for example, for mail archives indexing, when index pages is only scanned to detect new messages for indexing.
<PRE
CLASS="programlisting"
> Server HrefOnly Page http://www.mail-archive.com/general%40mnogosearch.org/
Server Allow Path http://www.mail-archive.com/general%40mnogosearch.org/
</PRE
>
</P
></LI
><LI
><P
> <B
CLASS="command"
>CheckOnly</B
>
<A
NAME="AEN1075"
></A
>
</P
><P
> Value <TT
CLASS="literal"
>CheckOnly</TT
> specifies that all corresponding documents will be requested by the HTTP HEAD request, not HTTP GET, i.e. only brief info about documents (size, last modified, content type) will be fetched. This allows, for example, to check links on your site:
<PRE
CLASS="programlisting"
> Server HrefOnly http://www.mnogosearch.org/
Realm CheckOnly *
</PRE
>
</P
><P
>These commands instruct <B
CLASS="command"
>indexer</B
> to scan all documents on <TT
CLASS="literal"
>www.mnogosearch.org</TT
> site and collect all links. Brief info about every document outside <TT
CLASS="literal"
>www.mnogosearch.org</TT
> will be requested by the HEAD method. After indexing is done, <B
CLASS="command"
>indexer -S</B
> command will show status for all documents from this site.</P
></LI
><LI
><P
> <B
CLASS="command"
>Skip</B
>
<A
NAME="AEN1090"
></A
>
</P
><P
> Value <TT
CLASS="literal"
>Skip</TT
> specifies that all corresponding documents will be skipped while indexing. This is useful when you need to disable temporarily the reindexing of several sites, but to still be able to search them. These documents will be marked as expired.
</P
></LI
><LI
><P
> <B
CLASS="command"
>CheckMP3</B
>
<A
NAME="AEN1099"
></A
>
</P
><P
> Value <TT
CLASS="literal"
>CheckMP3</TT
> specifies that the corresponding documents will be checked for MP3 tags along if its <TT
CLASS="literal"
>Content-Type</TT
> is equal to <TT
CLASS="literal"
>audio/mpeg</TT
>. This is useful, for example, if the remote server supplies <TT
CLASS="literal"
>application/octet-stream</TT
> as <TT
CLASS="literal"
>Content-Type</TT
> for MP3 files. If this tag is present, these files will be indexed as MP3 files, otherwise they will be processed according to <TT
CLASS="literal"
>Content-Type</TT
>.
</P
></LI
><LI
><P
> <B
CLASS="command"
>CheckMP3Only</B
>
<A
NAME="AEN1113"
></A
>
</P
><P
> This value is equal to <TT
CLASS="literal"
>CheckMP3</TT
>, but if MP3 tag is not present, processing on <TT
CLASS="literal"
>Content-Type</TT
> will not be taken.
</P
></LI
></OL
>
</P
><P
> Use the optional <CODE
CLASS="option"
>SubSection</CODE
> parameter to specify the server's checking behavior. The values for <CODE
CLASS="option"
>SubSection</CODE
> are the same than the "Follow" command arguments. The <CODE
CLASS="option"
>SubSection</CODE
>'s value must be one of the following: page, path, site, world and has "path" value by default. If <CODE
CLASS="option"
>SubSection</CODE
> is not specified, current "Follow" value will be used. So, the only <TT
CLASS="literal"
>Server site http://localhost/</TT
> command and combination of <TT
CLASS="literal"
>Follow site</TT
> and <TT
CLASS="literal"
>Server http://localhost/</TT
> have the same effect.
<P
></P
><OL
TYPE="1"
><LI
><P
><TT
CLASS="literal"
>path</TT
> subsection</P
><P
>When indexer seeks for a "Server" command corresponding to an URL, it checks that the discovered URL starts with URL given in the Server command's argument but without trailing file name. For example, if <TT
CLASS="literal"
>Server path http://localhost/path/to/index.html</TT
> is given, all URLs which have <TT
CLASS="literal"
>http://localhost/path/to/</TT
> at the beginning correspond to this Server command.</P
><P
>The following commands have the same effect except that they insert different URLs into the database:</P
><P
> <PRE
CLASS="programlisting"
> Server path http://localhost/path/to/index.html
Server path http://localhost/path/to/index
Server path http://localhost/path/to/index.cgi?q=bla
Server path http://localhost/path/to/index?q=bla
</PRE
>
</P
></LI
><LI
><P
> <TT
CLASS="literal"
>site</TT
> subsection</P
><P
>indexer checks that the discovered URL have the same hostname than the URL given in Server command. For example, <TT
CLASS="literal"
>Server site http://localhost/path/to/a.html</TT
> will allow the whole <TT
CLASS="literal"
>http://localhost/</TT
> server to be indexed. </P
></LI
><LI
><P
> <TT
CLASS="literal"
>world</TT
> subsection</P
><P
>If world subsection is specified in Server command, it has the same effect that URL is considered to
match this Server command. See explanation below.</P
></LI
><LI
><P
> <TT
CLASS="literal"
>page</TT
> subsection</P
><P
>This subsection describes the only one URL given in Server argument.</P
></LI
><LI
><P
>subsection in <TT
CLASS="literal"
>news://</TT
> schema</P
><P
>Subsection is always considered as "site" for news:// URL schema. This is because news:// schema has no nested paths like ftp:// or http:// . Use <TT
CLASS="literal"
>Server news://news.server.com/</TT
> to index the whole news server or, for example, <TT
CLASS="literal"
>Server news://news.server.com/udm</TT
> to index all messages from "udm" hierarchy.</P
></LI
></OL
>
</P
><P
> The optional parameter <TT
CLASS="literal"
>CaseType</TT
> specifies the case sensitivity for string comparison, it can take one of the following values: <TT
CLASS="literal"
>case</TT
> - case insensitive comparison, or <TT
CLASS="literal"
>nocase</TT
> - case sensitive comparison. </P
><P
> The optional parameter <TT
CLASS="literal"
>CmpType</TT
> specifies the comparison type and can take two values: <TT
CLASS="literal"
>Regex</TT
> and <TT
CLASS="literal"
>String</TT
>. <TT
CLASS="literal"
>String</TT
> wildcards are the default match type. You can use ? and * signs in URLMask parameters, they mean "one character" and "any number of characters" respectively. For example, if you want to index all HTTP sites in the .ru domain, use this command:
<PRE
CLASS="programlisting"
>Realm http://*.ru/*</PRE
>
</P
><P
>Regex comparison type takes a regular expression as argument. Activate regex comparison type using <CODE
CLASS="option"
>Regex</CODE
> keyword. For example, you can describe everything in the .ru domain using the regex comparison type: <PRE
CLASS="programlisting"
>Realm Regex ^http://.*\.ru/</PRE
>
</P
><P
>Optional parameter <TT
CLASS="literal"
>MatchType</TT
> means match type. The possible values are <TT
CLASS="literal"
>Match</TT
> and <TT
CLASS="literal"
>NoMatch</TT
> with <TT
CLASS="literal"
>Match</TT
> as default. <TT
CLASS="literal"
>Realm NoMatch</TT
> has reverse effect. It means the URL that does not match a given <CODE
CLASS="option"
>pattern</CODE
> will correspond to this <B
CLASS="command"
>Realm</B
> command. For example, use this command to index everything without .com domain:<PRE
CLASS="programlisting"
>Realm NoMatch http://*.com/*</PRE
>
</P
><P
>Optional <CODE
CLASS="option"
>alias</CODE
> argument provides very complicated URL rewrite, more powerful than other aliasing mechanism. Take a look <A
HREF="msearch-indexer-configuration.html#aliases"
>the Section called <I
>Aliases</I
></A
> at the <CODE
CLASS="option"
>alias</CODE
> argument usage explanation. <CODE
CLASS="option"
>Alias</CODE
> works only with the <CODE
CLASS="option"
>Regex</CODE
> comparison type and has no effect with the <CODE
CLASS="option"
>String</CODE
> type.</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="follow-server"
>Server command
<A
NAME="AEN1189"
></A
></A
></H3
><P
>This is the main command of the <TT
CLASS="filename"
>indexer.conf</TT
> file. It is used to add servers or their parts to be indexed.
This command also says indexer to insert given URL into database at startup.</P
><P
>E.g. command <TT
CLASS="literal"
>Server http://localhost/</TT
> allows indexing the whole <TT
CLASS="literal"
>http://localhost/</TT
> server. You can also specify some path to index the server subsection: <TT
CLASS="literal"
>Server http://localhost/subsection/</TT
>.</P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>You can suppress indexer behavior to add an URL given in Server command by using the -q indexer command-line argument. It is useful when you have hundreds or thousands Server commands and their URLs are already in database. This gives a faster indexer startup.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="follow-realm"
>Realm command
<A
NAME="AEN1202"
></A
></A
></H3
><P
>Realm command is a more powerful mean of describing a web area to be indexed.
It works almost like <B
CLASS="command"
>Server</B
> command but takes a regular expression or string wildcards as <CODE
CLASS="option"
>pattern</CODE
> parameter and do not insert any URL into the database for indexing.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="follow-subnet"
>Subnet command
<A
NAME="AEN1210"
></A
></A
></H3
><P
>Subnet command is another way to describe a web area to be indexed.
It works almost like <B
CLASS="command"
>Server</B
> command but takes string wildcards as <CODE
CLASS="option"
>pattern</CODE
> arguments, which are compared against IP addresses instead of URLs. Argument may have * and ? signs, they mean "one character" and "any number of characters" respectively. For example, if you want to index all HTTP sites in your local subnet, use this command:<PRE
CLASS="programlisting"
>Subnet 192.168.*.*</PRE
></P
><P
>You may use the "NoMatch" optional argument. For example, if you want to index everything without <TT
CLASS="literal"
>195.x.x.x</TT
> subnet, use:<PRE
CLASS="programlisting"
>Subnet NoMatch 195.*.*.*</PRE
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="follow-difparam"
>Using different parameter for server and it's subsections</A
></H3
><P
>Indexer seeks for "Server" and "Realm" commands in order of their appearance. Thus, if you want to give different parameters to, e.g. whole server and its subsection, you should add the subsection line before the whole server's. Imagine that you have a server's subdirectory which contains news articles. Surely those articles are to be reindexed more often than the rest of the server. The following combination may be useful in such cases:</P
><P
> <PRE
CLASS="programlisting"
> # Add subsection
Period 200000
Server http://servername/news/
# Add server
Period 600000
Server http://servername/
</PRE
>
</P
><P
>These commands give different reindexing periods for <TT
CLASS="filename"
>/news/</TT
> subdirectory comparing with the period of server as a whole. indexer will choose the first "Server" record for the <TT
CLASS="filename"
>http://servername/news/page1.html</TT
> as far as it matches and was given first.</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="follow-default"
>Default indexer behavior</A
></H3
><P
>The default behavior of indexer is to follow through links having correspondent Server/Realm command in the <TT
CLASS="filename"
>indexer.conf</TT
> file. It also jumps between servers if both of them are present in <TT
CLASS="filename"
>indexer.conf</TT
> either directly in Server command or indirectly in Realm command. For example, there are two Server commands:</P
><P
> <PRE
CLASS="programlisting"
> Server http://www/
Server http://web/
</PRE
>
</P
><P
>When indexing <TT
CLASS="filename"
>http://www/page1.html</TT
> indexer WILL follow the link <TT
CLASS="filename"
>http://web/page2.html</TT
> if the last one has been found. Note that these pages are on different servers, but BOTH of them have the correspondent Server record.</P
><P
>If one of the Server command is deleted, indexer will remove all expired URLs from this server during the next reindexing.</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="follow-f"
>Using <KBD
CLASS="userinput"
>indexer -f <filename></KBD
></A
></H3
><P
>The third scheme is very useful when running <TT
CLASS="literal"
>indexer -i -f url.txt</TT
>. You may maintain required servers in the <TT
CLASS="filename"
>url.txt</TT
>. When a new URL is added into <TT
CLASS="filename"
>url.txt</TT
> indexer will index the server of this URL during next startup.</P
></DIV
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="aliases"
>Aliases</A
></H2
><P
>mnoGoSearch has an alias support, making it possible to index sites taking information from another location. For example, if you index your local web server, it is possible to take pages directly from disk without involving your web server in the indexing process. Another example is the building of a search engine for the primary site and using its mirror while indexing. There are several ways of using aliases.</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="alias-conf"
>Alias indexer.conf command
<A
NAME="AEN1251"
></A
></A
></H3
><P
>Format of "Alias" <TT
CLASS="filename"
>indexer.conf</TT
> command:
<PRE
CLASS="programlisting"
> Alias <masterURL> <mirrorURL>
</PRE
>
</P
><P
>E.g. you wish to index <TT
CLASS="literal"
>http://search.mnogo.ru/</TT
> using the nearest German mirror <TT
CLASS="literal"
>http://www.gstammw.de/mirrors/mnoGoSearch/</TT
>. Add these lines in your indexer.conf:
<PRE
CLASS="programlisting"
> Server http://search.mnogo.ru/
Alias http://search.mnogo.ru/ http://www.gstammw.de/mirrors/mnoGoSearch/
</PRE
>
</P
><P
> <TT
CLASS="filename"
>search.cgi</TT
> will display URLs from the master site <TT
CLASS="literal"
>http://search.mnogo.ru/</TT
> but indexer will take corresponding page from mirror site <TT
CLASS="literal"
>http://www.gstammw.de/mirrors/mnoGoSearch/</TT
>.</P
><P
>Another example: If you want to index everything in udm.net domain and one of their servers, for example <TT
CLASS="literal"
>http://home.udm.net/</TT
>, is stored on local machine in <TT
CLASS="literal"
>/home/httpd/htdocs/</TT
> directory. These commands will be useful:
<PRE
CLASS="programlisting"
> Realm http://*.udm.net/
Alias http://home.udm.net/ file:/home/httpd/htdocs/
</PRE
>
</P
><P
>Indexer will take <TT
CLASS="literal"
>home.udm.net</TT
> from local disk and index other sites using HTTP.</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="aliases-diff"
>Different aliases for server parts</A
></H3
><P
>Aliases are searched in the order of their appearance in <TT
CLASS="filename"
>indexer.conf</TT
>. So, you can create different aliases for a server and its parts:
<PRE
CLASS="programlisting"
> # First, create alias for example for /stat/ directory which
# is not under common location:
Alias http://home.udm.net/stat/ file:/usr/local/stat/htdocs/
# Then create alias for the rest of the server:
Alias http://home.udm.net/ file:/usr/local/apache/htdocs/
</PRE
>
</P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>If you change the order of these commands, the alias for the <TT
CLASS="filename"
>/stat/</TT
> directory will never be found.</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="alias-server"
>Using alias in Server command</A
></H3
><P
>You may specify the location used by indexer as an optional argument for Server command:
<PRE
CLASS="programlisting"
> Server http://home.udm.net/ file:/home/httpd/htdocs/
</PRE
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="alias-realm"
>Using alias in Realm command</A
></H3
><P
>Aliases in Realm command are a very powerful feature based on regular expressions. This feature implementation is similar to how PHP <CODE
CLASS="function"
>preg_replace()</CODE
> function works. Aliases in Realm command work only if "regex" match type is used. It DOES NOT work with "string" match type.</P
><P
>Use this syntax for Realm aliases:
<PRE
CLASS="programlisting"
> Realm regex <URL_pattern> <alias_pattern>
</PRE
>
</P
><P
>Indexer searches URLs for matches to URL_pattern and builds an URL alias using alias_pattern. alias_pattern may contain references of the form $n, where n is a number in the range of 0-9. Every such reference will be replaced by text captured by the n'th parenthesized pattern. $0 refers to text matched by the whole pattern. Opening parentheses are counted from left to right (startingfrom 1) to obtain the number of the capturing subpattern.</P
><P
>Example: your company hosts several hundreds users with their domains in the form of <TT
CLASS="literal"
>www.username.yourname.com</TT
>. Every user's site is stored on disk in "htdocs" under the user's home directory: <TT
CLASS="literal"
>/home/username/htdocs/</TT
>.</P
><P
>You may write this command into indexer.conf (note that the dot '.' character has a special meaning in regular expressions and must be escaped with a '\' sign when dot is used in its usual meaning):
<PRE
CLASS="programlisting"
> Realm regex (http://www\.)(.*)(\.yourname\.com/)(.*) file:/home/$2/htdocs/$4
</PRE
>
</P
><P
>Imagine that indexer processes the <TT
CLASS="filename"
>http://www.john.yourname.com/news/index.html</TT
> page. It will build patterns from $0 to $4:</P
><P
CLASS="literallayout"
><br>
$0 = 'http://www.john.yourname.com/news/index.htm' (whole patter match)<br>
$1 = 'http://www.' subpattern matches '(http://www\.)'<br>
$2 = 'john' subpattern matches '(.*)'<br>
$3 = '.yourname.com/' subpattern matches '(\.yourname\.com/)'<br>
$4 = '/news/index.html' subpattern matches '(.*)'<br>
</P
><P
>Then indexer will compose alias using $2 and $4 patterns:
<PRE
CLASS="programlisting"
> file:/home/john/htdocs/news/index.html
</PRE
>
</P
><P
>and will use the result as document location to fetch it.</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="alias-prog"
>AliasProg command
<A
NAME="AEN1303"
></A
></A
></H3
><P
>You may also specify "AliasProg" command for aliasing purposes. AliasProg is useful for major web hosting companies which want to index their web space taking documents directly from a disk without having to involve their web server in the indexing process. Documents layout may be very complex to describe using alias in Realm command. AliasProg is an external program that can be called, that takes a URL and returns one string with the appropriate alias to stdout. Use $1 to pass a URL to the command line.</P
><P
>For example this AliasProg command uses the 'replace' command from MySQL distribution and replaces URL substring <TT
CLASS="literal"
>http://www.apache.org/</TT
> with <TT
CLASS="literal"
>file:/usr/local/apache/htdocs/</TT
>:
<PRE
CLASS="programlisting"
> AliasProg "echo $1 | /usr/local/mysql/bin/mysql/replace http://www.apache.org/ file:/usr/local/apache/htdocs/"
</PRE
>
</P
><P
>You may also write your own very complex program to process URLs.</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="alias-reverse"
>ReverseAlias command
<A
NAME="AEN1314"
></A
></A
></H3
><P
>The <TT
CLASS="filename"
>indexer.conf</TT
> ReverseAlias command allows URL mapping before a URL is inserted into the database. Unlike the Alias command, that triggers mapping right before a document is downloaded, ReverseAlias command triggers mapping after the link is found.
<PRE
CLASS="programlisting"
> ReverseAlias http://name2/ http://name2.yourname.com/
Server http://name2.yourname.com/
</PRE
>
</P
><P
>All links with a short server name will be mapped to links with a full server name before they are inserted into the database.</P
><P
>One possible use is cutting various unnecessary strings like <TT
CLASS="literal"
>PHPSESSID=XXXX</TT
></P
><P
>E.g. cutting from URL like <TT
CLASS="literal"
>http://www/a.php?PHPSESSID=XXX</TT
>, when PHPSESSID is the only parameter. The question sign is deleted as well:
<PRE
CLASS="programlisting"
> ReverseAlias regex (http://[^?]*)[?]PHPSESSID=[^&]*$ $1$2
</PRE
>
</P
><P
>Cutting from URL like <TT
CLASS="literal"
>w/a.php?PHPSESSID=xxx&..</TT
>, i.e. when PHPSESSID is the first parameter, but there are other parameters following it. The '&' sign after PHPSESSID is deleted as well. The question mark (?) character is not deleted:
<PRE
CLASS="programlisting"
> ReverseAlias regex (http://[^?]*[?])PHPSESSID=[^&]*&(.*) $1$2
</PRE
>
</P
><P
>Cutting from URL like <TT
CLASS="literal"
>http://www/a.php?a=b&PHPSESSID=xxx</TT
> or <TT
CLASS="literal"
>http://www/a.php?a=b&PHPSESSID=xxx&c=d</TT
>, where PHPSESSID is not the first parameter. The '&' sign before PHPSESSID is deleted:
<PRE
CLASS="programlisting"
> ReverseAlias regex (http://.*)&PHPSESSION=[^&]*(.*) $1$2
</PRE
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="alias-search"
>Alias in search.htm search template
<A
NAME="AEN1335"
></A
></A
></H3
><P
>It is also possible to define aliases in the search template (<TT
CLASS="filename"
>search.htm</TT
>). The Alias command in <TT
CLASS="filename"
>search.htm</TT
> is identical to the one in <TT
CLASS="filename"
>indexer.conf</TT
>, however it is active during searching, not indexation.</P
><P
>The syntax of the <TT
CLASS="filename"
>search.htm</TT
> Alias command is the same as in <TT
CLASS="filename"
>indexer.conf</TT
>:
<PRE
CLASS="programlisting"
> Alias <find-prefix> <replace-prefix>
</PRE
>
</P
><P
>For example, there is the following command in <TT
CLASS="filename"
>search.htm</TT
>:
<PRE
CLASS="programlisting"
> Alias http://localhost/ http://www.mnogo.ru/
</PRE
>
</P
><P
>Search returns a page with the following URL:
<PRE
CLASS="programlisting"
> http://localhost/news/article10.html
</PRE
>
</P
><P
>As a result, the $(DU) variable will be replace NOT with this URL:
<PRE
CLASS="programlisting"
> http://localhost/news/article10.html
</PRE
>
</P
><P
>but with the following URL (that results in processing with Alias):
<PRE
CLASS="programlisting"
> http://www.mnogo.ru/news/article10.html
</PRE
>
</P
></DIV
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="srvtable"
>ServerTable
<A
NAME="AEN1357"
></A
></A
></H2
><P
>Since version 3.2.7 <SPAN
CLASS="application"
>mnoGoSearch</SPAN
> has "ServerTable" <TT
CLASS="filename"
>indexer.conf</TT
> command. </P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="srvtable-load"
>Loading servers table</A
></H3
><P
>When <B
CLASS="command"
>ServerTable mysql://user:pass@host/dbname/tablename[?srvinfo=infotablename]</B
>
is specified, indexer will load
the servers information from the given <TT
CLASS="literal"
>tablename</TT
> SQL table, and will load the servers parameters
from the given <TT
CLASS="literal"
>infotablename</TT
> SQL table. If the <TT
CLASS="literal"
>srvinfo</TT
> parameter is not specified,
the parameters will be loaded from the <TT
CLASS="literal"
>srvinfo</TT
> table. Check the structure of <TT
CLASS="literal"
>server</TT
> and
<TT
CLASS="literal"
>srvinfo</TT
> tables in <TT
CLASS="filename"
>create/mysql/create.txt</TT
> file. If there is no
structure example for your database, take it as an example. Please send us the structure of your database at
<CODE
CLASS="email"
><<A
HREF="mailto:devel@mnogosearch.org"
>devel@mnogosearch.org</A
>></CODE
>!</P
><P
>You may use several <B
CLASS="command"
>ServerTable</B
> commands to load the server's information from different tables. </P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="srvtable-structure"
>Server table structure</A
></H3
><P
>Server table consists of all the necessary fields which
describe the servers parameters. Field names have correspondent
<TT
CLASS="filename"
>indexer.conf</TT
> commands. For example, to the "period"
field corresponds the <TT
CLASS="filename"
>indexer.conf</TT
> "Period"
command. Default field values are the same than default
<TT
CLASS="filename"
>indexer.conf</TT
> parameters.</P
><P
>The "gindex" field corresponds to the "Index" command. The name has been slightly changed to avoid SQL reserved word usage.</P
><P
>For the description of several fields see <A
HREF="msearch-dbschema.html"
>the Section called <I
>Database schema</I
> in Chapter 9</A
>.</P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>The servers are only read from the table where "active"
field has a 1 value and "parent" field has a 0 value. This is useful to allow users to submit new URLs
into servers table and give administrator a possibility to approve
added URLs.</P
></BLOCKQUOTE
></DIV
></DIV
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="flushsrvtable"
>FlushServerTable
<A
NAME="AEN1390"
></A
></A
></H2
><P
> Flush server sets active field to inactive for all ServerTable records.
Use this command to deactivate all commands in ServerTable before loading new commands from <TT
CLASS="filename"
>indexer.conf</TT
>
or from other ServerTable.
</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="pars"
>External parsers
<A
NAME="AEN1397"
></A
></A
></H2
><P
>mnoGoSearch indexer can use external parsers to index various file types (mime types).</P
><P
>A parser is an executable program which converts one of
the mime types to <TT
CLASS="literal"
>text/plain</TT
> or
<TT
CLASS="literal"
>text/html</TT
>. For example, if you have some postscript
files, you can use the ps2ascii parser (filter), which reads postscript
file from stdin and produces ascii to stdout, to be able to index their contents.
</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="pars-sup"
>Supported parser types</A
></H3
><P
>Indexer supports four types of parsers that can:</P
><P
></P
><UL
><LI
><P
>read data from stdin and send the result to stdout</P
></LI
><LI
><P
>read data from file and send the result to stdout</P
></LI
><LI
><P
>read data from file and send the result to file</P
></LI
><LI
><P
>read data from stdin and send the result to file</P
></LI
></UL
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="pars-setup"
>Setting up parsers</A
></H3
><P
></P
><OL
TYPE="1"
><LI
><P
>Configure mime types</P
><P
>Configure your web server to
send appropriate "Content-Type" header. For Apache, have a look at
<TT
CLASS="filename"
>mime.types</TT
> file, most mime types are already
defined there.
</P
><P
> <A
NAME="AEN1423"
></A
>
If you want to index local files or via <TT
CLASS="literal"
>ftp</TT
>
use "AddType" command in <TT
CLASS="filename"
>indexer.conf</TT
> to
associate file name extensions with their mime types. For
example:
<PRE
CLASS="programlisting"
> AddType text/html *.html
</PRE
>
</P
></LI
><LI
><P
> <A
NAME="AEN1431"
></A
>
Add parsers
</P
><P
>Add lines with parsers definitions. Lines have the following format with three arguments:
<PRE
CLASS="programlisting"
> Mime <from_mime> <to_mime> <command line>
</PRE
>
</P
><P
>For example, the following line defines the parser for man pages:
<PRE
CLASS="programlisting"
> # Use deroff for parsing man pages ( *.man )
Mime application/x-troff-man text/plain deroff
</PRE
>
</P
><P
>This parser will take data from stdin and output result to stdout.</P
><P
>Many parsers can not operate on
stdin and require a file to read from. In this case indexer creates a
temporary file in /tmp and removes it when the parser is done. Use $1
macro in parser command line to substitute file name. For example,
Mime command for "catdoc" MS Word to ASCII converters may look like
this:
<PRE
CLASS="programlisting"
> Mime application/msword text/plain "/usr/bin/catdoc -a $1"
</PRE
>
</P
><P
>If your parser writes the result
into an output file, use $2 macro. indexer will replace $2 by a temporary
file name, start the parser, read the result from this temporary file, then
remove it. For example:
<PRE
CLASS="programlisting"
> Mime application/msword text/plain "/usr/bin/catdoc -a $1 >$2"
</PRE
>
</P
><P
>The parser above will read data
from first temporary file and write result to second one. Both
temporary files will be removed when parser exits. Note that the result
of using this parser will be absolutely the same than the previous
one, but they use different execution modes: file->stdout and
file->file correspondingly.
</P
></LI
></OL
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="ParserTimeOut"
>Avoid indexer hang on parser execution</A
></H3
><P
> <A
NAME="AEN1447"
></A
>
To prevent the indexer to hang on parser's execution, you may specify
an amount of time in seconds for parser's execution in your <TT
CLASS="filename"
>indexer.conf</TT
> by using the <TT
CLASS="literal"
>ParserTimeOut</TT
> command. For example:
<PRE
CLASS="programlisting"
> ParserTimeOut 600
</PRE
>
</P
><P
> Default value is 300 seconds, i.e. 5 minutes.
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="pars-pipes"
>Pipes in parser's command line</A
></H3
><P
>You can use pipes in parser's command line. For
example, these lines will be useful to index gzipped man pages from
local disk:
<PRE
CLASS="programlisting"
> AddType application/x-gzipped-man *.1.gz *.2.gz *.3.gz *.4.gz
Mime application/x-gzipped-man text/plain "zcat | deroff"
</PRE
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="pars-char"
>Charsets and parsers
<A
NAME="AEN1460"
></A
></A
></H3
><P
>Some parsers can produce output in any other charset
than given in the LocalCharset command. Specify a charset to make the indexer
convert parser's output to a proper one. For example, if your catdoc is
configured to produce output in windows-1251 charset but LocalCharset
is koi8-r, use this command for parsing MS Word documents:
<PRE
CLASS="programlisting"
> Mime application/msword "text/plain; charset=windows-1251" "catdoc -a $1"
</PRE
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="pars-udmurl"
>UDM_URL variable</A
></H3
><P
>When executing a parser, the indexer creates the UDM_URL
environment variable with an URL being processed as a value. You can
use this variable in parser scripts.
</P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Note: </B
>
When running several threads, don't relay on the UDM_URL variable,
use ${URL} variable in the parser
command line instead. See <A
HREF="msearch-cmdref-mime.html"
>Mime</A
> for more details.
</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="pars-links"
>Some third-party parsers
<A
NAME="AEN1473"
></A
></A
></H3
><P
></P
><UL
><LI
><P
>RPM parser by Mario Lang <CODE
CLASS="email"
><<A
HREF="mailto:lang@zid.tu-graz.ac.at"
>lang@zid.tu-graz.ac.at</A
>></CODE
></P
><P
> /usr/local/bin/rpminfo:
<PRE
CLASS="programlisting"
> #!/bin/bash
/usr/bin/rpm -q --queryformat="<html><head><title>RPM: %{NAME} %{VERSION}-%{RELEASE}
(%{GROUP})</title><meta name=\"description\" content=\"%{SUMMARY}\"></head><body>
%{DESCRIPTION}\n</body></html>" -p $1
</PRE
>
</P
><P
>indexer.conf:
<PRE
CLASS="programlisting"
> Mime application/x-rpm text/html "/usr/local/bin/rpminfo $1"
</PRE
>
</P
><P
>It renders to such nice RPM information:
<PRE
CLASS="programlisting"
> 3. RPM: mysql 3.20.32a-3 (Applications/Databases) [4]
Mysql is a SQL (Structured Query Language) database server.
Mysql was written by Michael (Monty) Widenius. See the CREDITS
file in the distribution for more credits for mysql and related
things....
(application/x-rpm) 2088855 bytes
</PRE
>
</P
></LI
><LI
><P
>catdoc MS Word to text converter</P
><P
> <A
HREF="http://freshmeat.net/redir/catdoc/1055/url_homepage/"
TARGET="_top"
>Home page</A
>, also listed on <A
HREF="http://freshmeat.net/"
TARGET="_top"
>Freshmeat</A
>.
<PRE
CLASS="programlisting"
> indexer.conf:
Mime application/msword "text/plain; charset=utf-8" "catdoc -d utf-8 $1"
</PRE
>
</P
></LI
><LI
><P
>wvWare MS Word to HTML converter</P
><P
> <A
HREF="http://wvware.sourceforge.net/"
TARGET="_top"
>Home page</A
>,
also listed on <A
HREF="http://freshmeat.net/"
TARGET="_top"
>Freshmeat</A
>.
<PRE
CLASS="programlisting"
> indexer.conf:
Mime application/msword "text/html; charset=utf-8" "wvHtml --charset=utf-8 $1 -"
</PRE
>
</P
></LI
><LI
><P
>xls2csv MS Excel to text converter</P
><P
>It is supplied with catdoc.
<PRE
CLASS="programlisting"
> indexer.conf:
Mime application/vnd.ms-excel text/plain "xls2csv $1"
</PRE
>
</P
></LI
><LI
><P
>xlhtml Excel XLS to HTML converter</P
><P
>Available from the project
<A
HREF="http://www.xlhtml.org/"
TARGET="_top"
>homepage</A
>,
also listed on <A
HREF="http://freshmeat.net/projects/xlhtml/"
TARGET="_top"
>Freshmeat</A
>.
and <A
HREF="http://chicago.sourceforge.net/xlhtml/"
TARGET="_top"
>SourceForge</A
>.
Download page includes <A
HREF="http://chicago.sourceforge.net/xlhtml/binarys.html"
TARGET="_top"
>binaries for Windows</A
>.
</P
><P
> <PRE
CLASS="programlisting"
> indexer.conf:
Mime application/vnd.ms-excel text/html "xltohtml $1"
</PRE
>
</P
></LI
><LI
><P
>pptohtml PowerPoint PPT to HTML converter</P
><P
>A part of xlhtml distribution. Available from the project
<A
HREF="http://www.xlhtml.org/"
TARGET="_top"
>homepage</A
>,
also listed on <A
HREF="http://freshmeat.net/projects/xlhtml/"
TARGET="_top"
>Freshmeat</A
>.
and <A
HREF="http://chicago.sourceforge.net/xlhtml/"
TARGET="_top"
>SourceForge</A
>.
Download page includes <A
HREF="http://chicago.sourceforge.net/xlhtml/binarys.html"
TARGET="_top"
>binaries for Windows</A
>.
</P
><P
> <PRE
CLASS="programlisting"
> indexer.conf:
Mime application/vnd.ms-powerpoint text/html "pptohtml $1"
</PRE
>
</P
></LI
><LI
><P
>pdftotext Adobe PDF converter</P
><P
>Supplied with xpdf project.</P
><P
> <A
HREF="http://freshmeat.net/redir/xpdf/12080/url_homepage/"
TARGET="_top"
>Homepage</A
>, also listed on <A
HREF="http://freshmeat.net/"
TARGET="_top"
>Freshmeat</A
>.
<PRE
CLASS="programlisting"
> indexer.conf:
Mime application/pdf text/plain "pdftotext $1 -"
</PRE
>
</P
></LI
><LI
><P
>unrtf RTF to html converter</P
><P
> <A
HREF="ftp://ftp.gnu.org/pub/gnu/unrtf/"
TARGET="_top"
>Homepage</A
>
<PRE
CLASS="programlisting"
> indexer.conf:
Mime text/rtf* text/html "/usr/local/mnogosearch/sbin/unrtf --html $1
Mime application/rtf text/html "/usr/local/mnogosearch/sbin/unrtf --html $1
</PRE
>
</P
></LI
></UL
><P
> Please feel free to contribute your scripts and
parsers configuration to <CODE
CLASS="email"
><<A
HREF="mailto:general@mnogosearch.org"
>general@mnogosearch.org</A
>></CODE
>.
</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="msearch-content-enc.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="msearch-extended-indexing.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Content-Encoding support
<A
NAME="AEN994"
></A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="msearch-indexing.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Extended indexing features</TD
></TR
></TABLE
></DIV
><!--#include virtual="body-after.html"--></BODY
></HTML
>
|