Class SpanQuery

    • Constructor Detail

      • SpanQuery

        public SpanQuery()
    • Method Detail

      • getField

        public abstract String getField()
        Returns the name of the field matched by this query.
      • getTermStates

        public static Map<Term,​TermStates> getTermStates​(SpanWeight... weights)
        Build a map of terms to TermStates, for use in constructing SpanWeights
        NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
      • getTermStates

        public static Map<Term,​TermStates> getTermStates​(Collection<SpanWeight> weights)
        Build a map of terms to TermStates, for use in constructing SpanWeights
        NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.