@InterfaceStability.Uncommitted @InterfaceAudience.Public public interface HitLocations
Represents the locations of a search result hit. locations
show where a given term occurs inside of a given field.
Modifier and Type | Method and Description |
---|---|
HitLocations |
add(HitLocation l)
add a location and allow method chaining
|
long |
count()
size of all()
|
List<String> |
fields()
list the fields in this location
|
List<HitLocation> |
get(String field)
list all locations for a given field (any term)
|
List<HitLocation> |
get(String field,
String term)
list all locations for a given field and term
|
List<HitLocation> |
getAll()
list all locations (any field, any term)
|
Set<String> |
terms()
list all terms in this locations, considering all fields (so a set)
|
List<String> |
termsFor(String field)
list the terms for a given field
|
HitLocations add(HitLocation l)
add a location and allow method chaining
List<HitLocation> get(String field)
list all locations for a given field (any term)
List<HitLocation> get(String field, String term)
list all locations for a given field and term
List<HitLocation> getAll()
list all locations (any field, any term)
long count()
size of all()
Copyright © 2015 Couchbase, Inc.