https://github.com/blackwinter/pms
Poor Man's Search
https://github.com/blackwinter/pms
ruby rubynlp text-search
Last synced: about 1 month ago
JSON representation
Poor Man's Search
- Host: GitHub
- URL: https://github.com/blackwinter/pms
- Owner: blackwinter
- License: other
- Created: 2008-12-08T13:46:33.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2016-10-12T09:42:26.000Z (about 9 years ago)
- Last Synced: 2025-08-19T03:17:38.007Z (about 2 months ago)
- Topics: ruby, rubynlp, text-search
- Language: Ruby
- Homepage: https://blackwinter.github.io/pms
- Size: 492 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
= pms - Poor Man's Search
== VERSION
This documentation refers to pms version 0.0.7
== DESCRIPTION
Provides a simple searching facility for (nearly) arbitrary input. It allows
searching by Strings (exact match) or Regexps (full control, but slower).
Boolean operators AND, OR, and NOT are supported, as well as proximity
operators NEAR (with configurable distance) and ADJACENT (taking order into
account). You can chain operators and also group them into sub-queries.Inspiration came from a discussion on ruby-talk, starting with message
ruby-talk:322014[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/322014],
but PMS has a more document-centric attitude (everything that input#each
yields is considered a document of its own).Example:
require 'pms/ext'
text = < [0]
p search.results_with_positions
#=> {0=>[0, 8]}p search.matches
#=> ["Hello world, how are you today? I said \"Hello\"\n"]You can find more examples in the spec/ directory.
== LINKS
Documentation:: https://blackwinter.github.com/pms
Source code:: https://github.com/blackwinter/pms
RubyGem:: https://rubygems.org/gems/pms
Travis CI:: https://travis-ci.org/blackwinter/pms== AUTHORS
* Jens Wille
== LICENSE AND COPYRIGHT
Copyright (C) 2008-2014 Jens Wille
pms is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.pms is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.You should have received a copy of the GNU Affero General Public License
along with pms. If not, see .