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:
