|
Revision 394, 0.6 kB
(checked in by athomas, 2 years ago)
|
pyndexter: Some release preparation cleanup.
|
| Line | |
|---|
| 1 |
Pyndexter (pronounced 'poindexter') is an abstraction layer for full-text |
|---|
| 2 |
indexing engines. It presents a uniform query syntax to the user, includes a |
|---|
| 3 |
basic but functional pure-Python indexer, and has adapters for Hype, |
|---|
| 4 |
Hyperestraier, Lucene, Lupy, Pyndex, Swish-e and Xapian. |
|---|
| 5 |
|
|---|
| 6 |
Here's a 9 line micro-tutorial: |
|---|
| 7 |
|
|---|
| 8 |
import os |
|---|
| 9 |
from pyndexter import Framework |
|---|
| 10 |
|
|---|
| 11 |
framework = Framework('builtin:///tmp/pyndexter.idx') |
|---|
| 12 |
framework.add_source('file:///usr/share/doc?include=*.txt&include=*.html') |
|---|
| 13 |
framework.update() |
|---|
| 14 |
|
|---|
| 15 |
for hit in framework.search('linux or windows'): |
|---|
| 16 |
print hit |
|---|
| 17 |
|
|---|
| 18 |
framework.close() |
|---|