org.silverpeas.search
Class SimpleSearchEngine

java.lang.Object
  extended by org.silverpeas.search.SimpleSearchEngine
All Implemented Interfaces:
SearchEngine

@Service
public class SimpleSearchEngine
extends Object
implements SearchEngine

A SimpleSearchEngine search silverpeas indexes index and give access to the retrieved index entries.


Constructor Summary
SimpleSearchEngine()
          The no parameters constructor is required for an EJB.
 
Method Summary
 PlainSearchResult search(QueryDescription query)
          Search the index for the required documents.
 Set<String> suggestKeywords(String keywordFragment)
          gets a list of suggestion from a partial String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSearchEngine

public SimpleSearchEngine()
The no parameters constructor is required for an EJB.

Method Detail

search

public PlainSearchResult search(QueryDescription query)
                         throws ParseException
Search the index for the required documents.

Specified by:
search in interface SearchEngine
Parameters:
query - the search query.
Returns:
the results.
Throws:
ParseException

suggestKeywords

public Set<String> suggestKeywords(String keywordFragment)
gets a list of suggestion from a partial String

Specified by:
suggestKeywords in interface SearchEngine
Parameters:
keywordFragment - string to execute the search
Returns:
a set of result sorted by alphabetic order


Copyright © 2016 Silverpeas. All Rights Reserved.