Class SpanQuery

    • Method Detail

      • isSpanContaining

        public boolean isSpanContaining()
        Is this variant instance of kind span_containing?
      • spanContaining

        public SpanContainingQuery spanContaining()
        Get the span_containing variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_containing kind.
      • isFieldMaskingSpan

        public boolean isFieldMaskingSpan()
        Is this variant instance of kind field_masking_span?
      • fieldMaskingSpan

        public SpanFieldMaskingQuery fieldMaskingSpan()
        Get the field_masking_span variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the field_masking_span kind.
      • isSpanFirst

        public boolean isSpanFirst()
        Is this variant instance of kind span_first?
      • spanFirst

        public SpanFirstQuery spanFirst()
        Get the span_first variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_first kind.
      • isSpanGap

        public boolean isSpanGap()
        Is this variant instance of kind span_gap?
      • spanGap

        public SpanGapQuery spanGap()
        Get the span_gap variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_gap kind.
      • isSpanMulti

        public boolean isSpanMulti()
        Is this variant instance of kind span_multi?
      • spanMulti

        public SpanMultiTermQuery spanMulti()
        Get the span_multi variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_multi kind.
      • isSpanNear

        public boolean isSpanNear()
        Is this variant instance of kind span_near?
      • spanNear

        public SpanNearQuery spanNear()
        Get the span_near variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_near kind.
      • isSpanNot

        public boolean isSpanNot()
        Is this variant instance of kind span_not?
      • spanNot

        public SpanNotQuery spanNot()
        Get the span_not variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_not kind.
      • isSpanOr

        public boolean isSpanOr()
        Is this variant instance of kind span_or?
      • spanOr

        public SpanOrQuery spanOr()
        Get the span_or variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_or kind.
      • isSpanTerm

        public boolean isSpanTerm()
        Is this variant instance of kind span_term?
      • spanTerm

        public SpanTermQuery spanTerm()
        Get the span_term variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_term kind.
      • isSpanWithin

        public boolean isSpanWithin()
        Is this variant instance of kind span_within?
      • spanWithin

        public SpanWithinQuery spanWithin()
        Get the span_within variant value.
        Throws:
        java.lang.IllegalStateException - if the current variant is not of the span_within kind.