hermes-tool 1.2.2

CLI tools for Hermes - index management, simhash, sorting, and data processing
hermes-tool-1.2.2 is not a library.

Hermes Tool - CLI for index management and data processing

Overview

This package provides command-line tools for creating, managing, and preprocessing data for Hermes search indexes.

Index Commands

  • create - Create a new index from a schema file (JSON or SDL)
  • init - Create a new index from an inline SDL schema string
  • index - Index documents from a JSONL file or stdin
  • commit - Commit any pending changes to the index
  • merge - Force merge all segments into one
  • info - Display index information
  • warmup - Warm up slice cache and save to file

Data Processing Commands

  • simhash - Calculate SimHash for a text field and add it to each JSON object
  • sort - Sort JSON objects by a specified field
  • term-stats - Compute term statistics for WAND optimization

Examples

Create an index from SDL schema file

hermes-tool create -i ./my_index -s schema.sdl

Index documents from stdin

zstdcat dump.zst | hermes-tool index -i ./my_index --stdin

Calculate SimHash and sort

zstdcat dump.zst | hermes-tool simhash -f title -o hash | hermes-tool sort -f hash