Class DocumentsOnlyRankProfile

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class DocumentsOnlyRankProfile
    extends RankProfile
    A rank profile which ignores all calls made to it which may fail in a document only setting. This is used by the search definition parser when it is requested to parse documents only, to avoid having to check for this in every method which adds to the rank profile. (And why do we ever want to parse documents only? Because it is used when generating Java classes from documents, where the full application package may not be available.)
    Author:
    bratseth
    • Constructor Detail

      • DocumentsOnlyRankProfile

        public DocumentsOnlyRankProfile​(java.lang.String name,
                                        Search search,
                                        RankProfileRegistry rankProfileRegistry)
    • Method Detail

      • addFunction

        public void addFunction​(java.lang.String name,
                                java.util.List<java.lang.String> arguments,
                                java.lang.String expression,
                                boolean inline)
        Description copied from class: RankProfile
        Adds a function
        Overrides:
        addFunction in class RankProfile