Class HitLocation
java.lang.Object
com.couchbase.client.java.search.result.hits.HitLocation
@Uncommitted @Public public class HitLocation extends Object
A FTS result hit location indicates at which position a given term occurs inside a given field.
In case the field is an array,
arrayPositions
will indicate which index/indices in the
array contain the term.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Constructor Summary
Constructors Constructor Description HitLocation(String field, String term, long pos, long start, long end)
HitLocation(String field, String term, long pos, long start, long end, long[] arrayPositions)
-
Method Summary
-
Constructor Details
-
HitLocation
-
HitLocation
-
-
Method Details
-
field
-
term
-
pos
public long pos() -
start
public long start() -
end
public long end() -
arrayPositions
public long[] arrayPositions()- Returns:
- the array positions, or null if not applicable.
-
equals
-
hashCode
public int hashCode() -
toString
-