org.weborganic.bastille.flint
Class FulltextSearch
java.lang.Object
org.weborganic.bastille.flint.FulltextSearch
- All Implemented Interfaces:
- ContentGenerator
public class FulltextSearch
- extends Object
- implements ContentGenerator
Perform a search on the index, using the following details:
- The main field used is the value of the parameter
field
.
If the parameter is not specified, fulltext
is used.
- The value of the main field is the value of the parameter
term
.
- If there is a parameter
category
, its value is used to filter the
results using the field called category
. (the predicate +category:[category]
is added).
- Facets can be specified using the parameter
facets
(comma-separated list of field names).
- If an
index
parameter is specified, the (comma-separated) list of indexes will be searched;
otherwise the default index will be used.
- Since:
- 0.6.0
FulltextSearch
public FulltextSearch()
process
public void process(ContentRequest req,
XMLWriter xml)
throws BerliozException,
IOException
- Specified by:
process
in interface ContentGenerator
- Throws:
BerliozException
IOException