Class SearchExclusions

java.lang.Object
io.fluxzero.common.search.SearchExclusions

public final class SearchExclusions extends Object
Sparse field exclusions for text search, encoded as ordinary internal document metadata. The binary document format and retained property values remain unchanged. Documents written before this information was available retain summary-based matching until they are reindexed from their typed values.
  • Field Details

    • METADATA_KEY

      public static final String METADATA_KEY
      Reserved metadata key mapping concrete, escaped document paths to true.
      See Also:
  • Method Details

    • isMetadataPath

      public static boolean isMetadataPath(Document.Path path)
      Returns whether a path belongs to the internal exclusion metadata rather than user content.
    • addTo

      public static void addTo(Map<Document.Entry, List<Document.Path>> entries, Collection<String> excludedPaths)
      Adds excluded raw paths using the existing binary document metadata representation.
    • read

      public static Set<String> read(Map<Document.Entry, List<Document.Path>> entries)
      Reads concrete excluded paths without reconstructing the document body or all of its metadata.