PostingsExtension extension
Extension methods and properties on PostingsMap.
- on
Properties
-
docIds
→ Set<
String> -
Available on PostingsMap, provided by the PostingsExtension extension
Returns all the unique document ids (document id) in the PostingsMap.no setter -
terms
→ List<
String> -
Available on PostingsMap, provided by the PostingsExtension extension
Returns the dictionary terms (keys) as an ordered list, sorted alphabetically.no setter
Methods
-
addTermPosition(
{required String term, required String docId, required Pt position, String? zone}) → bool -
Available on PostingsMap, provided by the PostingsExtension extension
Adds or updates a posting position for thedocId
to PostingsMap entry for theterm
. -
addZonePostings(
String term, String docId, ZonePostingsMap positions) → bool -
Available on PostingsMap, provided by the PostingsExtension extension
Adds a postings for thedocId
to PostingsMap entry for theterm
. -
containsAll(
Iterable< String> terms) → Set<String> -
Available on PostingsMap, provided by the PostingsExtension extension
Returns a Set of document id of those documents that contain all theterms
. -
containsAny(
Iterable< String> terms) → Set<String> -
Available on PostingsMap, provided by the PostingsExtension extension
Returns a Set of document id of those documents that contain any of theterms
. Used forindex-elimination
as a fist pass in scoring and ranking of search results. -
documentPostings(
Iterable< String> docIds) → PostingsMap -
Available on PostingsMap, provided by the PostingsExtension extension
Filters the PostingsMap by document ids. -
fieldPostings(
Iterable< String> fields) → PostingsMap -
Available on PostingsMap, provided by the PostingsExtension extension
Filters the PostingsMap by zone names. -
filter(
{Iterable< String> ? terms, Iterable<String> ? docIds, Iterable<String> ? fields}) → PostingsMap -
Available on PostingsMap, provided by the PostingsExtension extension
Filters the PostingsMap byterms
,docIds
ANDfields
. -
getPostings(
Iterable< String> terms) → PostingsMap -
Available on PostingsMap, provided by the PostingsExtension extension
Filters the PostingsMap by terms. -
termPostings(
String term) → List< DocPostingsMapEntry> -
Available on PostingsMap, provided by the PostingsExtension extension
Returns the list of all the DocPostingsMapEntry for theterm
from the PostingsMap. -
termPostingsList(
[Iterable< String> ? terms]) → List<DocPostingsMapEntry> -
Available on PostingsMap, provided by the PostingsExtension extension
Returns the list of all the DocPostingsMapEntry for theterms
from the PostingsMap. -
toList(
) → List< PostingsMapEntry> -
Available on PostingsMap, provided by the PostingsExtension extension
Returns the list of PostingsMapEntry elements in the PostingsMap in alphapetic order of the terms (keys).