File: examples.rst

package info (click to toggle)
xapian-bindings 1.4.31-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,456 kB
  • sloc: cpp: 379,927; python: 10,780; cs: 9,529; java: 6,949; sh: 5,017; perl: 4,435; makefile: 1,277; ruby: 1,028; php: 586; tcl: 246
file content (48 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Examples
********

The `examples` subdirectory contains examples (based on the simple C++
examples) showing how to use the Python bindings:
`simpleindex.py <examples/simpleindex.py>`_,
`simplesearch.py <examples/simplesearch.py>`_,
`simpleexpand.py <examples/simpleexpand.py>`_.
There's also
`simplematchdecider.py <examples/simplematchdecider.py>`_
which shows how to define a MatchDecider in Python.

.. _simplesearch:

simplesearch.py
===============

.. literalinclude :: examples/simplesearch.py
   :language: python
   :linenos:

.. _simpleindex:

simpleindex.py
==============

.. literalinclude :: examples/simpleindex.py
   :language: python
   :linenos:

.. _simpleexpand:

simpleexpand.py
===============

.. literalinclude :: examples/simpleexpand.py
   :language: python
   :linenos:

.. _simplematchdecider:


simplematchdecider.py
=====================

.. literalinclude :: examples/simplematchdecider.py
   :language: python
   :linenos: