Interface HitLocations
-
- All Known Implementing Classes:
DefaultHitLocations
@Uncommitted @Public public interface HitLocations
Represents the locations of a search result hit.locationsshow where a given term occurs inside of a given field.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HitLocationsadd(HitLocation l)add a location and allow method chaininglongcount()size of all()List<String>fields()list the fields in this locationList<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 termList<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
-
-
-
Method Detail
-
add
HitLocations add(HitLocation l)
add a location and allow method chaining
-
get
List<HitLocation> get(String field)
list all locations for a given field (any term)
-
get
List<HitLocation> get(String field, String term)
list all locations for a given field and term
-
getAll
List<HitLocation> getAll()
list all locations (any field, any term)
-
count
long count()
size of all()
-
-