SolrIndexerFieldSpec (taack-ui 0.3.8 API)
Package: taack.solr

[Groovy] Class SolrIndexerFieldSpec

    • taack.solr.SolrIndexerFieldSpec


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

      SolrSpecifier delegated class Describe how the fields should be indexed, scored and faceted. See TaackSearchService for a code sample.

      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          void indexField(java.lang.String i18n, SolrFieldType fieldType, float boost, boolean faceted, FieldInfo[] fieldInfo)
          Add domain class field index
          void indexField(java.lang.String i18n, SolrFieldType fieldType, java.lang.String fieldPrefix, float boost, boolean faceted, java.lang.String value)
          Add domain class field index via direct value and specifying fieldPrefix
          void indexField(java.lang.String i18n, SolrFieldType fieldType, java.lang.String fieldPrefix, boolean faceted, java.lang.String value)
          Index field with default boost
          void indexField(java.lang.String i18n, SolrFieldType fieldType, java.lang.String fieldPrefix, boolean faceted, java.util.List<java.lang.String> value)
          Index field ..
      • 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()
      • Method Detail

        • void indexField(java.lang.String i18n, SolrFieldType fieldType, float boost, boolean faceted, FieldInfo[] fieldInfo)

          Add domain class field index

          Parameters:
          i18n - The label of the field in the search result
          fieldType - Kind of index we want for this field, see SolrFieldType
          boost - Boost the rank of the object in results if this field match the search
          faceted - Is this field part of the index
          fieldInfo - Point to the value using fieldInfo

        • void indexField(java.lang.String i18n, SolrFieldType fieldType, java.lang.String fieldPrefix, float boost, boolean faceted, java.lang.String value)

          Add domain class field index via direct value and specifying fieldPrefix

          Parameters:
          i18n
          fieldType
          fieldPrefix - Uniq prefix in the Solr Index
          boost
          faceted
          value - Value to Index

        • void indexField(java.lang.String i18n, SolrFieldType fieldType, java.lang.String fieldPrefix, boolean faceted, java.lang.String value)

          Index field with default boost

          Parameters:
          i18n
          fieldType
          fieldPrefix - Uniq prefix in the Solr Index
          faceted
          value - Value to Index

        • void indexField(java.lang.String i18n, SolrFieldType fieldType, java.lang.String fieldPrefix, boolean faceted, java.util.List<java.lang.String> value)

          Index field ..

          Parameters:
          i18n
          fieldType
          fieldPrefix - Uniq prefix in the Solr Index
          faceted
          value - Multivalued strings