org.hibernate.search.util.impl

## Class InternalAnalyzerUtils

- java.lang.Object
- - org.hibernate.search.util.impl.InternalAnalyzerUtils

-     public final class InternalAnalyzerUtils
      extends Object

  Analysis helpers that have no reason to be exposed publicly as `AnalyzerUtils` is.
  Author:
    Yoann Rodiere

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `analyzeSortableValue(Analyzer analyzer, String fieldName, String text)` Returns the first token resulting from the analysis, logging a warning if there are more than one token.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### analyzeSortableValue

          public static String analyzeSortableValue(Analyzer analyzer,
                                                    String fieldName,
                                                    String text)

      Returns the first token resulting from the analysis, logging a warning if there are more than one token.
      Parameters:
        `analyzer` - the Lucene analyzer to use
        `fieldName` - the name of the field: might affect the analyzer behavior
        `text` - the value to analyze
      Returns:
        the first token resulting from the analysis
      Throws:
        `SearchException` - if a problem occurs when analyzing the sortable field's value.

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved