001    package railo.runtime.search;
002    
003    /**
004     * a singl result item
005     */
006    public interface SearchResulItem {
007    
008        /**
009         * @return Returns the recordsSearched.
010         */
011        public abstract int getRecordsSearched();
012    
013        /**
014         * @return Returns the score.
015         */
016        public abstract float getScore();
017    
018        /**
019         * @return Returns the summary.
020         */
021        public abstract String getSummary();
022    
023        /**
024         * @return Returns the title.
025         */
026        public abstract String getTitle();
027    
028        /**
029         * @return Returns the id.
030         */
031        public abstract String getId();
032    
033        /**
034         * @return Returns the key
035         */
036        public abstract String getKey();
037    
038        /**
039         * @return Returns the url
040         */
041        public abstract String getUrl();
042    
043        /**
044         * @deprecated use instead <code>getCustom(int index)</code>
045         * @return Returns the custom1.
046         */
047        public abstract String getCustom1();
048    
049        /**
050         * @deprecated use instead <code>getCustom(int index)</code>
051         * @return Returns the custom2.
052         */
053        public abstract String getCustom2();
054    
055        /**
056         * @deprecated use instead <code>getCustom(int index)</code>
057         * @return Returns the custom3.
058         */
059        public abstract String getCustom3();
060    
061        /**
062         * @deprecated use instead <code>getCustom(int index)</code>
063         * @return Returns the custom4.
064         */
065        public abstract String getCustom4();
066        
067        public abstract String getCustom(int index) throws SearchException;
068        
069    
070    
071        /**
072             * @return the category
073             */
074            public String getCategory();
075            
076            /**
077             * @return the categoryTree
078             */
079            public String getCategoryTree();
080            
081            /**
082             * @return the mimeType
083             */
084            public String getMimeType();
085            /**
086             * @return the author
087             */
088            public String getAuthor();
089    
090            /**
091             * @return the size
092             */
093            public String getSize();
094            
095            
096        /**
097             * @return the contextSummary
098             */
099            public String getContextSummary();
100    
101    }