Ticket #356: compact_nometainfo.sh
| File compact_nometainfo.sh, 434 bytes (added by , 17 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | rm -rf /tmp/emptyindex |
| 4 | |
| 5 | python <<! |
| 6 | import xappy |
| 7 | conn = xappy.IndexerConnection('/tmp/emptyindex') |
| 8 | |
| 9 | # if the next is commented out, xapian-compact doesn't fail |
| 10 | conn.add_field_action('name', xappy.FieldActions.INDEX_FREETEXT) |
| 11 | |
| 12 | conn.close() |
| 13 | ! |
| 14 | |
| 15 | # xapian-compact fails with the error: |
| 16 | # postlist ...xapian-compact: DatabaseCorruptError: No METAINFO item in postlist table. |
| 17 | xapian-compact /tmp/emptyindex /tmp/emptyindex-compact |
