Interface HitLocations
- All Known Implementing Classes:
DefaultHitLocations
@Uncommitted @Public public interface HitLocations
Represents the locations of a search result hit.
locations show
where a given term occurs inside of a given field.- Since:
- 2.3.0
- Author:
- Simon Baslé, Michael Nitschinger
-
Method Summary
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 Details
-
add
add a location and allow method chaining -
get
list all locations for a given field (any term) -
get
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() -
fields
list the fields in this location -
termsFor
list the terms for a given field -
terms
list all terms in this locations, considering all fields (so a set)
-