Class Field
- java.lang.Object
-
- com.yahoo.searchlib.ranking.features.fieldmatch.Field
-
public class Field extends java.lang.Object
Represents a document field which can be matched and ranked against.- Author:
- bratseth
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Field.Term
A term in a field
-
Constructor Summary
Constructors Constructor Description Field(java.lang.String fieldString)
Creates a field from a space-separated stringField(java.util.List<Field.Term> terms)
Creates a field from a list of terms
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Field.Term>
terms()
Returns an immutable list of the terms in this
-
-
-
Constructor Detail
-
Field
public Field(java.lang.String fieldString)
Creates a field from a space-separated string
-
Field
public Field(java.util.List<Field.Term> terms)
Creates a field from a list of terms
-
-
Method Detail
-
terms
public java.util.List<Field.Term> terms()
Returns an immutable list of the terms in this
-
-