// If a field is stored, field values could be retrieved from the index
// The main advantage is that only values from records visible to the
// user are returned, because the search filter the results first.
if (origin.equals("") || origin.equals(RECORDS_FIELD_VALUES)) {
LuceneSearcher searcher = (LuceneSearcher) sm.newSearcher(SearchManager.LUCENE, Geonet.File.SEARCH_LUCENE);
searcher.getSuggestionForFields(context, fieldName, searchValue, _config, maxNumberOfTerms, threshold, listOfSuggestions);
}
// No values found from the index records field value ...
if (origin.equals(INDEX_TERM_VALUES)
|| (listOfSuggestions.size() == 0 && origin.equals(""))) {
// If a field is not stored, field values could not be retrieved