Project

pxindex

0.0
Low commit activity in last 3 years
No release in over a year
Experimental gem to facilitate a keyword search, by querying a Polyrex document representing a hierarchical lookup table
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.13, >= 1.13.3
~> 0.3, >= 0.3.0
~> 0.2, >= 0.2.1
 Project Readme

Introducing the PxIndex gem

require 'pxindex'

s =<<EOF
<?ph schema="entries[title, tags]/entry[title, desc, target, private]"?>
title: fun

# a

apple
antelope
asterisk
  configuring
  creating a new dialplan


# b

button
EOF

pxi = PxIndex.new(s)
a = pxi.q?('apple').map(&:title)
#=> ["apple"]

Resources

pxindex polyrex index lookup search