SolrSpecifier (taack-ui 0.3.9-SNAPSHOT API)
Package: taack.solr

[Groovy] Class SolrSpecifier

    • taack.solr.SolrSpecifier


    • @groovy.transform.CompileStatic
      final class SolrSpecifier
      extends java.lang.Object

      Specify how to index a domain, how to label it in the search. See TaackSearchService.registerSolrSpecifier To register a domain search.

      • Constructor Summary

          Constructors 
          Constructor and description
          SolrSpecifier (java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> type, org.codehaus.groovy.runtime.MethodClosure show, org.codehaus.groovy.runtime.MethodClosure label, groovy.lang.Closure closure)
          Only constructor
      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          org.codehaus.groovy.runtime.MethodClosure getLabel()
          Returns:
          Method called to construct the object label in the search result list
          org.codehaus.groovy.runtime.MethodClosure getShow()
          Returns:
          Method used to show the object when clicking on the label of the object in the search result list
          java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> getType()
          void visitSolr(ISolrIndexerVisitor visitor, org.grails.datastore.gorm.GormEntity entity)
      • Inherited Methods Summary

          Inherited Methods 
          Methods inherited from class Name
          class java.lang.Object java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
      • Constructor Detail

        • SolrSpecifier(java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> type, org.codehaus.groovy.runtime.MethodClosure show, org.codehaus.groovy.runtime.MethodClosure label, @groovy.lang.DelegatesTo(strategy: Closure.DELEGATE_FIRST, value: SolrIndexerFieldSpec) groovy.lang.Closure closure)

          Only constructor

          Parameters:
          type - The Gorm class
          show - The action to show when clicking on the object in the search. The access control should be managed from there
          label - The method which will label the search entry for this object
          closure - How to index fields for this class (See SolrIndexerFieldSpec

      • Method Detail

        • org.codehaus.groovy.runtime.MethodClosure getLabel()

          Returns:
          Method called to construct the object label in the search result list

        • org.codehaus.groovy.runtime.MethodClosure getShow()

          Returns:
          Method used to show the object when clicking on the label of the object in the search result list

        • java.lang.Class<? extends org.grails.datastore.gorm.GormEntity> getType()