Package com.basiscomponents.lucene
Class BBjSearchGizmo
- java.lang.Object
-
- com.basiscomponents.lucene.BBjSearchGizmo
-
public class BBjSearchGizmo extends Object
-
-
Constructor Summary
Constructors Constructor Description BBjSearchGizmo(String directory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDocument(BBjSearchGizmoDoc doc)
ArrayList<String>
doFuzzySearch(String searchTerm, String field)
ArrayList<String>
doSearch(String searchTerm, String[] fields)
List<org.apache.lucene.facet.FacetResult>
facetsWithSearch(String searchTerm, String[] fields)
void
removeDocument(String id)
-
-
-
Constructor Detail
-
BBjSearchGizmo
public BBjSearchGizmo(String directory)
-
-
Method Detail
-
addDocument
public void addDocument(BBjSearchGizmoDoc doc) throws IOException
- Throws:
IOException
-
removeDocument
public void removeDocument(String id) throws IOException, org.apache.lucene.store.LockObtainFailedException, org.apache.lucene.queryparser.classic.ParseException
- Throws:
IOException
org.apache.lucene.store.LockObtainFailedException
org.apache.lucene.queryparser.classic.ParseException
-
doSearch
public ArrayList<String> doSearch(String searchTerm, String[] fields) throws IOException, org.apache.lucene.queryparser.classic.ParseException
- Throws:
IOException
org.apache.lucene.queryparser.classic.ParseException
-
doFuzzySearch
public ArrayList<String> doFuzzySearch(String searchTerm, String field) throws IOException
- Throws:
IOException
-
facetsWithSearch
public List<org.apache.lucene.facet.FacetResult> facetsWithSearch(String searchTerm, String[] fields) throws IOException, org.apache.lucene.queryparser.classic.ParseException
- Throws:
IOException
org.apache.lucene.queryparser.classic.ParseException
-
-