reStructuredText的小问题

最近在用reStructuredText

有一点不知道怎么弄

内容如下:

Creating a Class
----------------

When we create a class, we use a class definition, very similar to a
function definition. The class definition starts at the first position
on the line with the word :index:`class` and ends with a colon. Any 
code lines within the class are indented. The first unindented line 
in code is considered outside of (not part of) the class.

::

   class ClassName:
     {Any accessable class variables}
     {initialization routine}
     {Any functions you may need}
     ...

Here is an example:

::

   class Car:
   __init__(self,attrib1,attrib2):
      pass

   def Function1(self):
      pass

   def Function2(self):
      pass

问题是:

在搜索的时候,我如何的只让他搜索 index

想的更远一点,如果我给每段代码都加上一些关键字,我又该如何的搜索呢?

看了看xapian的文档

一直就想要一个全文搜索 xapian 应该够用了吧