İçeriğe atla

Proje

Prefix Index

a library for prefix-based text searchPrefix-based indexing & searching of strings for holochain apps
Nasıl çalıştırılır
kaydedilmedi
Holochain sürümü
0.4.1
Etkinlik
aktif
Kontrol edildi
30 Ekim 2026

What is Prefix Index and what is it for?

Prefix Index is a Rust code library that a Holochain app developer adds to their app's own code to make a collection of strings searchable by their first letters. It exists so that apps can offer type-ahead or autocomplete-style searching without each app writing and validating that lookup structure itself.

The project is maintained in the holochain-open-dev organisation, and its repository dates to 2023. It is a small piece of infrastructure rather than something a person uses directly: a component that other Holochain apps include in their own code.

An app adds strings to a named index, and the library creates and validates the links that let those strings be found again by their opening letters. The caller supplies the strings and decides how many results a search should return.

In the documented example an app indexes words such as superdupercool and supercomputing, then searches for "sup". Every indexed word starting with those letters comes back, ordered by similarity and then alphabetically, and the caller sets the result limit; letter case is ignored when indexing but kept in what is returned. The repository README walks through that example and the setup steps.

Nasıl edinilir

Kütüphane olarak

  1. Add the hc_prefix_index crate to the dependencies of the app's coordinator zome and of its integrity zome.
  2. Declare a link type to hold the index and add the library's validation functions to the zome's validation logic for creating and deleting links of that type.
  3. Create a named index in zome code, add the strings you want searchable, and query it by prefix with a limit on how many results to return.

Kaynak: https://raw.githubusercontent.com/holochain-open-dev/holochain-prefix-index/main/README.md

İnsanların sorduğu sorular

Can I install Prefix Index as an app?
No. It is a Rust library crate that developers add to a Holochain app's own code, not something you install and run on its own. kaynak
What does a prefix search return?
Every string beneath the top-level prefix of your query, ordered by similarity and then alphabetically, so the documentation advises passing a limit to keep result sets small. Letter case is ignored when indexing but preserved in the results. kaynak

2 herkese açık kaynaktan derlendi; son kontrol: 23 Eylül 2026.

Deneyin: Prefix Index

  • GitHub'daki kodGitHub'da aç ↗Last change 28 Ağustos 2026.
  • Sürümv0.13.0Yayımlandı 25 Şubat 2025.
  • Projenin kendi dosyaları nasıl çalıştırıldığını belirtmiyor.

Ayrıntılar ve kaynaklar

Kanıt

Sürüm
github.com/holochain-open-dev/holochain-prefix-index/releases/tag/v0.13.0bir sürümle yayımlanmış · 20 Ekim 2026 tarihinden beri görülüyor · github.release@1
Son değişiklik
api.github.com/repos/holochain-open-dev/holochain-prefix-indexüçüncü bir tarafça listelenmiş · 20 Ekim 2026 tarihinden beri görülüyor · github.repository@1
Etkinlik
api.github.com/repos/holochain-open-dev/holochain-prefix-indexüçüncü bir tarafça listelenmiş · 20 Ekim 2026 tarihinden beri görülüyor · liveness@1

Uyumluluk

holochain-client
—
happ.yaml
mevcut · workdir/happ.yaml @ 2e0e2ac
web-happ.yaml
mevcut · workdir/web-happ.yaml @ 2e0e2ac
Prefix Index projesini siz mi sürdürüyorsunuz?Adınızı bu projenin sayfasına ekleyin.
Bu sayfayı sahiplenin