So far weâve met the Index
class. This class
is just a convenient, easy-to-use interface to the rest of the Ferret API.
It does most of the hard work for you, such as parsing queries and keeping
track of the IndexReader
and IndexWriter
classes behind the scenes, or
knowing when to commit the index so that your search is always on the
latest version of the index. There is a lot more that you can do with the
Index
class, and in most cases it will
be all you need. But if you really want to take full advantage of all
Ferret has to offer, youâll need to find out what is going on behind the
scenes. In Chapter 2, weâll learn more about how
indexing actually works and how to configure the index for your
application.
Get Ferret now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.