-
Notifications
You must be signed in to change notification settings - Fork 0
Autocomplete
The HIVE 2.0 release introduces a simple Lucene-based autocomplete feature.
A new autocomplete
property has been added to the vocabulary.properties
file. This property specifies the path to the directory that will contain the autocomplete index.
A new flag -x
has been added to the AdminVocabularies
class to support initialization of the autocomplete
index:
java edu.unc.ils.mrc.hive.admin.AdminVocabularies -c <path-to-conf-dir> -v <vocabulary> -x
Specifying this flag will create the autocomplete index.
A new class edu.unc.ils.mrc.hive.ir.lucene.search.Autocomplete
has been added to the hive-core.jar
. This class handles the initialization of the autocomplete Lucene index and term suggestion (search).
A new servlet org.unc.hive.servlet.AutocompleteServlet
has been added to the hiveweb
web application. This servlet accepts two parameters cv
and term
and returns a JSON-based response with suggested terms.
A simple JQuery-based autocomplete widget has been added to the project to demonstrate one possible integration approach.