<%@ page import="org.springframework.util.ClassUtils" %> <%@ page import="org.codehaus.groovy.grails.plugins.searchable.SearchableUtils" %> <%@ page import="org.codehaus.groovy.grails.plugins.searchable.lucene.LuceneUtils" %> <%@ page import="org.codehaus.groovy.grails.plugins.searchable.util.StringQueryUtils" %> <g:message code="default.list.label" args="[entityName]" /> <g:if test="${params.q && params.q?.trim() != ''}">${params.q} - </g:if>Results

Showing ${searchResult.offset + 1} - ${searchResult.results.size() + searchResult.offset} of ${searchResult.total} results for ${params.q}  

Nothing matched your query - ${params.q}

Suggestions:

  • Try a suggested query: Search again with the suggestQuery option
    Note: Suggestions are only available when classes are mapped with spellCheck options, either at the class or property level.
    The simplest way to do this is add spellCheck "include" to the domain class searchable mapping closure.
    See the plugin/Compass documentation Mapping sections for details.

Did you mean ${StringQueryUtils.highlightTermDiffs(params.q.trim(), searchResult.suggestedQuery)}?

Your query - ${params.q} - is not valid.

Suggestions:

  • Fix the query: see Lucene query syntax for examples
  • Remove special characters like " - [ ], before searching, eg, ${LuceneUtils.cleanQuery(params.q)}
    Use the Searchable Plugin's LuceneUtils#cleanQuery helper method for this: Search again with special characters removed
  • Escape special characters like " - [ ] with \, eg, ${LuceneUtils.escapeQuery(params.q)}
    Use the Searchable Plugin's LuceneUtils#escapeQuery helper method for this: Search again with special characters escaped
    Or use the Searchable Plugin's escape option: Search again with the escape option enabled
${desc.encodeAsHTML()}



Page: 1