@sitevision/api 1.0.20 → 1.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hidden/javax/jcr/Binary/index.d.ts +86 -0
- package/hidden/javax/jcr/Credentials/index.d.ts +11 -0
- package/hidden/javax/jcr/ImportUUIDBehavior/index.d.ts +11 -0
- package/hidden/javax/jcr/Item/index.d.ts +353 -0
- package/hidden/javax/jcr/ItemVisitor/index.d.ts +41 -0
- package/hidden/javax/jcr/NamespaceRegistry/index.d.ts +100 -0
- package/hidden/javax/jcr/Node/index.d.ts +2808 -0
- package/hidden/javax/jcr/NodeIterator/index.d.ts +18 -0
- package/hidden/javax/jcr/Property/index.d.ts +801 -0
- package/hidden/javax/jcr/PropertyIterator/index.d.ts +17 -0
- package/hidden/javax/jcr/RangeIterator/index.d.ts +75 -0
- package/hidden/javax/jcr/Repository/index.d.ts +318 -0
- package/hidden/javax/jcr/RepositoryFactory/index.d.ts +90 -0
- package/hidden/javax/jcr/Value/index.d.ts +190 -0
- package/hidden/javax/jcr/ValueFactory/index.d.ts +179 -0
- package/hidden/javax/jcr/Workspace/index.d.ts +1061 -0
- package/hidden/javax/jcr/lock/Lock/index.d.ts +142 -0
- package/hidden/javax/jcr/lock/LockManager/index.d.ts +217 -0
- package/hidden/javax/jcr/nodetype/ItemDefinition/index.d.ts +219 -0
- package/hidden/javax/jcr/nodetype/NodeDefinition/index.d.ts +158 -0
- package/hidden/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +74 -0
- package/hidden/javax/jcr/nodetype/NodeType/index.d.ts +349 -0
- package/hidden/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +248 -0
- package/hidden/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +16 -0
- package/hidden/javax/jcr/nodetype/NodeTypeManager/index.d.ts +218 -0
- package/hidden/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +98 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinition/index.d.ts +536 -0
- package/hidden/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +97 -0
- package/hidden/javax/jcr/observation/Event/index.d.ts +133 -0
- package/hidden/javax/jcr/observation/EventIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/EventJournal/index.d.ts +22 -0
- package/hidden/javax/jcr/observation/EventListener/index.d.ts +23 -0
- package/hidden/javax/jcr/observation/EventListenerIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/observation/ObservationManager/index.d.ts +227 -0
- package/hidden/javax/jcr/query/Query/index.d.ts +201 -0
- package/hidden/javax/jcr/query/QueryManager/index.d.ts +73 -0
- package/hidden/javax/jcr/query/QueryResult/index.d.ts +51 -0
- package/hidden/javax/jcr/query/Row/index.d.ts +159 -0
- package/hidden/javax/jcr/query/RowIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/And/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/BindVariableValue/index.d.ts +15 -0
- package/hidden/javax/jcr/query/qom/ChildNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/Column/index.d.ts +39 -0
- package/hidden/javax/jcr/query/qom/Comparison/index.d.ts +82 -0
- package/hidden/javax/jcr/query/qom/Constraint/index.d.ts +13 -0
- package/hidden/javax/jcr/query/qom/DescendantNode/index.d.ts +31 -0
- package/hidden/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +29 -0
- package/hidden/javax/jcr/query/qom/DynamicOperand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +41 -0
- package/hidden/javax/jcr/query/qom/FullTextSearch/index.d.ts +89 -0
- package/hidden/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Join/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/JoinCondition/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Length/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/Literal/index.d.ts +18 -0
- package/hidden/javax/jcr/query/qom/LowerCase/index.d.ts +26 -0
- package/hidden/javax/jcr/query/qom/NodeLocalName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/NodeName/index.d.ts +16 -0
- package/hidden/javax/jcr/query/qom/Not/index.d.ts +20 -0
- package/hidden/javax/jcr/query/qom/Operand/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/Or/index.d.ts +30 -0
- package/hidden/javax/jcr/query/qom/Ordering/index.d.ts +53 -0
- package/hidden/javax/jcr/query/qom/PropertyExistence/index.d.ts +24 -0
- package/hidden/javax/jcr/query/qom/PropertyValue/index.d.ts +25 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModel/index.d.ts +64 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +638 -0
- package/hidden/javax/jcr/query/qom/SameNode/index.d.ts +27 -0
- package/hidden/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +36 -0
- package/hidden/javax/jcr/query/qom/Selector/index.d.ts +35 -0
- package/hidden/javax/jcr/query/qom/Source/index.d.ts +9 -0
- package/hidden/javax/jcr/query/qom/StaticOperand/index.d.ts +10 -0
- package/hidden/javax/jcr/query/qom/UpperCase/index.d.ts +26 -0
- package/hidden/javax/jcr/retention/Hold/index.d.ts +34 -0
- package/hidden/javax/jcr/retention/RetentionManager/index.d.ts +189 -0
- package/hidden/javax/jcr/retention/RetentionPolicy/index.d.ts +21 -0
- package/hidden/javax/jcr/security/AccessControlEntry/index.d.ts +24 -0
- package/hidden/javax/jcr/security/AccessControlList/index.d.ts +91 -0
- package/hidden/javax/jcr/security/AccessControlManager/index.d.ts +297 -0
- package/hidden/javax/jcr/security/AccessControlPolicy/index.d.ts +11 -0
- package/hidden/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +22 -0
- package/hidden/javax/jcr/security/Privilege/index.d.ts +117 -0
- package/hidden/javax/jcr/version/Version/index.d.ts +121 -0
- package/hidden/javax/jcr/version/VersionHistory/index.d.ts +307 -0
- package/hidden/javax/jcr/version/VersionIterator/index.d.ts +20 -0
- package/hidden/javax/jcr/version/VersionManager/index.d.ts +1082 -0
- package/hidden/senselogic/sitevision/api/base/Builder/index.d.ts +102 -0
- package/hidden/senselogic/sitevision/api/base/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/base/FilterSplit/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/base/Loadable/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/base/Resolver/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/base/Wrapper/index.d.ts +24 -0
- package/hidden/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +417 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +100 -0
- package/hidden/senselogic/sitevision/api/i18n/Currency/index.d.ts +120 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +65 -0
- package/hidden/senselogic/sitevision/api/mail/Mail/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +15 -0
- package/hidden/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +23 -0
- package/hidden/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +642 -0
- package/hidden/senselogic/sitevision/api/render/BuddyIconRenderer/BuddyIconInfo/index.d.ts +51 -0
- package/hidden/senselogic/sitevision/api/render/ImageScaler/index.d.ts +58 -0
- package/hidden/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +301 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ArticleUtilConstants/index.d.ts +85 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/ExceptionSuppressingProxyConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/IndexingUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/LinkPageUtilConstants/index.d.ts +67 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MathInstanceConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/MimeTypeUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/NodeTypeUtilConstants/index.d.ts +1243 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/OutputUtilConstants/index.d.ts +31 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PageUtilConstants/index.d.ts +91 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletContextUtilConstants/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/PortletUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/QueryStringUtilConstants/index.d.ts +19 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchHitConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/SearchResultConstants/index.d.ts +37 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/VersionUtilConstants/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +8 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +119 -0
- package/hidden/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +272 -0
- package/hidden/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +43 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +94 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +117 -0
- package/hidden/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +90 -0
- package/hidden/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +89 -0
- package/hidden/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +45 -0
- package/hidden/senselogic/sitevision/api/search/SearchHit/index.d.ts +1176 -0
- package/hidden/senselogic/sitevision/api/search/SearchResult/index.d.ts +414 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +27 -0
- package/hidden/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +61 -0
- package/hidden/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +277 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +35 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +25 -0
- package/hidden/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +82 -0
- package/hidden/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +21 -0
- package/hidden/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +70 -0
- package/hidden/senselogic/sitevision/api/security/MessageDigester/index.d.ts +50 -0
- package/hidden/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +72 -0
- package/hidden/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +29 -0
- package/hidden/senselogic/sitevision/api/security/SecretStore/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/security/UserUtil/index.d.ts +80 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +36 -0
- package/hidden/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +32 -0
- package/hidden/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +599 -0
- package/hidden/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +20 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElement/index.d.ts +55 -0
- package/hidden/senselogic/sitevision/api/xml/XmlElementHandler/index.d.ts +17 -0
- package/package.json +2 -4
- package/server/AliasUtil/index.d.ts +25 -0
- package/server/AliasUtil/index.js +10 -0
- package/server/ArchiveUtil/index.d.ts +65 -11
- package/server/ArraysInstance/index.d.ts +1846 -0
- package/server/ArticleUtil/index.d.ts +381 -69
- package/server/AuthenticationUtil/index.d.ts +106 -0
- package/server/BookmarkUtil/index.d.ts +36 -28
- package/server/BuddyIconRenderer/index.d.ts +240 -0
- package/server/ClientUtil/index.d.ts +18 -4
- package/server/CollaborationFactory/index.d.ts +42 -25
- package/server/CollaborationGroupFolderUtil/index.d.ts +40 -29
- package/server/CollaborationGroupTemplateUtil/index.d.ts +71 -39
- package/server/CollaborationGroupUtil/index.d.ts +128 -55
- package/server/CollectionsInstance/index.d.ts +738 -0
- package/server/ColorUtil/index.d.ts +22 -17
- package/server/CompoundAndFilterBuilder/index.d.ts +60 -0
- package/server/CompoundComparatorBuilder/index.d.ts +63 -0
- package/server/CompoundOrFilterBuilder/index.d.ts +59 -0
- package/server/ContentNodeUtil/index.d.ts +76 -0
- package/server/CurrencyFactory/index.d.ts +135 -0
- package/server/DateUtil/index.d.ts +154 -77
- package/server/DecorationUtil/index.d.ts +23 -0
- package/server/DeviceUtil/index.d.ts +36 -0
- package/server/DirectoryUtil/index.d.ts +107 -47
- package/server/DocTypeUtil/index.d.ts +149 -0
- package/server/EndecUtil/index.d.ts +537 -91
- package/server/ExtendedDismaxParserBuilder/index.d.ts +311 -0
- package/server/FileIconRenderer/index.d.ts +346 -0
- package/server/FileUtil/index.d.ts +462 -0
- package/server/FilterBuilder/index.d.ts +120 -0
- package/server/FolderUtil/index.d.ts +161 -0
- package/server/FontUtil/index.d.ts +49 -0
- package/server/FormatterBuilderFactory/index.d.ts +129 -0
- package/server/HighlightBuilder/index.d.ts +194 -0
- package/server/IconUtil/index.d.ts +37 -0
- package/server/ImageLinkRenderer/index.d.ts +134 -0
- package/server/ImageRenderer/index.d.ts +613 -231
- package/server/ImageUtil/index.d.ts +430 -0
- package/server/IndexUtil/index.d.ts +71 -0
- package/server/IndexingUtil/index.d.ts +92 -0
- package/server/InstanceCreatorUtil/index.d.ts +661 -0
- package/server/InstanceTypeUtil/index.d.ts +202 -0
- package/server/JwtUtil/index.d.ts +217 -0
- package/server/LandingPageUtil/index.d.ts +67 -50
- package/server/LinkPageUtil/index.d.ts +468 -0
- package/server/LinkRenderer/index.d.ts +1157 -0
- package/server/LinkTargetBuilder/index.d.ts +146 -0
- package/server/LinkValueBuilder/index.d.ts +129 -52
- package/server/ListWrapper/index.d.ts +172 -0
- package/server/LocaleUtil/index.d.ts +695 -61
- package/server/LogUtil/index.d.ts +118 -77
- package/server/MailBuilder/index.d.ts +238 -0
- package/server/MailUtil/index.d.ts +98 -0
- package/server/MathInstance/index.d.ts +681 -0
- package/server/MessageDigesterFactory/index.d.ts +49 -0
- package/server/MetadataDefinitionUtil/index.d.ts +118 -0
- package/server/MetadataUtil/index.d.ts +524 -79
- package/server/MimeTypeUtil/index.d.ts +316 -0
- package/server/MonitorBuilder/index.d.ts +51 -0
- package/server/NodeComparatorUtil/index.d.ts +397 -0
- package/server/NodeFactoryUtil/index.d.ts +32 -0
- package/server/NodeFilterUtil/index.d.ts +924 -0
- package/server/NodeIteratorUtil/index.d.ts +322 -72
- package/server/NodeResolverUtil/index.d.ts +767 -0
- package/server/NodeTreeUtil/index.d.ts +339 -63
- package/server/NodeTypeUtil/index.d.ts +391 -197
- package/server/OfflineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OnlineVersionPropertyUtil/index.d.ts +30 -0
- package/server/OutputUtil/index.d.ts +641 -0
- package/server/PageUtil/index.d.ts +330 -0
- package/server/PermissionUtil/index.d.ts +650 -0
- package/server/PortletContextUtil/index.d.ts +118 -37
- package/server/PortletContextUtil/index.js +1 -0
- package/server/PortletUtil/index.d.ts +40 -0
- package/server/PrincipalUtil/index.d.ts +51 -0
- package/server/Properties/index.d.ts +185 -38
- package/server/PropertyUtil/index.d.ts +2330 -406
- package/server/PublishingUtil/index.d.ts +385 -49
- package/server/QueryStringUtil/index.d.ts +737 -0
- package/server/RedirectUtil/index.d.ts +98 -0
- package/server/RelatedValueBuilder/index.d.ts +81 -39
- package/server/Requester/index.d.ts +441 -65
- package/server/ResourceLocatorUtil/index.d.ts +483 -227
- package/server/RestApi/index.d.ts +208 -23
- package/server/RestAppInvokerFactory/index.d.ts +73 -0
- package/server/RoleAssignmentBuilder/index.d.ts +60 -0
- package/server/RoleMatcherBuilder/index.d.ts +59 -0
- package/server/RoleUtil/index.d.ts +57 -0
- package/server/ScriptUtil/index.d.ts +625 -143
- package/server/SearchFactory/index.d.ts +133 -0
- package/server/SearchUtil/index.d.ts +164 -0
- package/server/SearcherBuilder/index.d.ts +260 -0
- package/server/Session/index.d.ts +1758 -0
- package/server/SimpleUserUtil/index.d.ts +39 -30
- package/server/SiteCookieUtil/index.d.ts +78 -53
- package/server/SortBuilder/index.d.ts +111 -0
- package/server/SpellCheckBuilder/index.d.ts +68 -0
- package/server/StandardParserBuilder/index.d.ts +112 -0
- package/server/StructureUtil/index.d.ts +167 -0
- package/server/SubscriberUtil/index.d.ts +122 -0
- package/server/SubscriptionUtil/index.d.ts +197 -0
- package/server/SystemUserUtil/index.d.ts +201 -98
- package/server/TagUtil/index.d.ts +193 -0
- package/server/TemplateUtil/index.d.ts +217 -0
- package/server/TemporaryFileNodeBuilder/index.d.ts +63 -0
- package/server/TemporaryNodeBuilder/index.d.ts +241 -0
- package/server/TextModuleRendererBuilder/index.d.ts +68 -0
- package/server/TimestampUtil/index.d.ts +98 -82
- package/server/TranslationUtil/index.d.ts +175 -0
- package/server/TrashcanUtil/index.d.ts +193 -24
- package/server/UserDataUtil/index.d.ts +167 -85
- package/server/UserFactory/index.d.ts +45 -30
- package/server/UserFieldRenderer/index.d.ts +258 -0
- package/server/UserIdentityUtil/index.d.ts +61 -29
- package/server/UserUtil/index.d.ts +69 -28
- package/server/Utils/index.d.ts +870 -12
- package/server/VelocityRenderer/index.d.ts +248 -0
- package/server/VersionUtil/index.d.ts +15 -12
- package/server/WebContentUtil/index.d.ts +644 -0
- package/server/WebResourceFactory/index.d.ts +66 -0
- package/server/XSLTUtil/index.d.ts +49 -10
- package/server/XmlParserUtil/index.d.ts +82 -81
- package/builtins/Binary/index.d.ts +0 -3
- package/builtins/Calendar/index.d.ts +0 -3
- package/builtins/Collection/index.d.ts +0 -3
- package/builtins/Date/index.d.ts +0 -3
- package/builtins/InputStream/index.d.ts +0 -3
- package/builtins/Instant/index.d.ts +0 -3
- package/builtins/List/index.d.ts +0 -3
- package/builtins/LocalDateTime/index.d.ts +0 -3
- package/builtins/Locale/index.d.ts +0 -3
- package/builtins/Node/index.d.ts +0 -3
- package/builtins/NodeIterator/index.d.ts +0 -27
- package/builtins/Property/index.d.ts +0 -3
- package/builtins/Serializable/index.d.ts +0 -3
- package/builtins/Set/index.d.ts +0 -3
- package/builtins/Throwable/index.d.ts +0 -3
- package/builtins/byte/index.d.ts +0 -3
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import SearchHighlighter from "../SearchHighlighter";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* <p>
|
|
5
|
+
* A <code>SearchResult</code> is a container for the hits returned by a search query. The object is lazy loaded
|
|
6
|
+
* and can potentially change its state with each extracted hit (i.e. <code>next()</code> is called on the <code>Iterator<SearchHit></code>).
|
|
7
|
+
* </p>
|
|
8
|
+
*
|
|
9
|
+
* <p>
|
|
10
|
+
* <strong>Note!</strong> This object is short lived in that sense that it is invalid after a specified timespan.
|
|
11
|
+
* Make sure it's handled correspondingly (i.e. do <em>not</em> cache it).
|
|
12
|
+
* </p><p>Accessor to the lazy loaded <code>Iterator</code> containing the search hits. Iterating the
|
|
13
|
+
* <code>Iterator</code> potentially changes the status of the <code>SearchResult</code>object.</p>
|
|
14
|
+
*
|
|
15
|
+
* <p>
|
|
16
|
+
* <strong>IMPORTANT NOTE!</strong> You should only call this method <strong>once</strong>! Subsequent calls
|
|
17
|
+
* will throw an <code>IllegalStateException</code>.
|
|
18
|
+
* </p><p>Convenience method for iterating search hits using the Java foreach loop construct.</p>
|
|
19
|
+
*
|
|
20
|
+
* <p>
|
|
21
|
+
* <strong>NOTE! This convenience method is just an ALIAS for the {@link #getHits()} method!<br>
|
|
22
|
+
* Restrictions and such that applies to {@link #getHits()} also applies to this method!</strong>
|
|
23
|
+
* </p>
|
|
24
|
+
*
|
|
25
|
+
* <p>
|
|
26
|
+
* This is a convenience method for enabling iteration of search hits using the <em>foreach loop</em>:
|
|
27
|
+
* </p>
|
|
28
|
+
* <pre><code>
|
|
29
|
+
* SearchResult searchResult = ...
|
|
30
|
+
* for (SearchHit searchHit : searchResult) {
|
|
31
|
+
* ...
|
|
32
|
+
* }</code></pre>...so you don't have to use the <em>for loop</em> and iterate via the <code>getHits()</code> method:
|
|
33
|
+
* <pre><code><em>
|
|
34
|
+
* SearchResult searchResult = ...
|
|
35
|
+
* for (Iterator<SearchHit> searchHits = searchResult.getHits(); searchHits.hasNext();) {
|
|
36
|
+
* SearchHit searchHit = searchHits.next();
|
|
37
|
+
* ...
|
|
38
|
+
* }</em></code></pre>...or use the <em>while loop</em>:<pre><code><em>
|
|
39
|
+
* SearchResult searchResult = ...
|
|
40
|
+
* Iterator<SearchHit> searchHits = searchResult.getHits();
|
|
41
|
+
* while (searchHits.hasNext()) {
|
|
42
|
+
* SearchHit searchHit = searchHits.next();
|
|
43
|
+
* ...
|
|
44
|
+
* }</em></code></pre><p>Accessor to the exact number of hits. This operation renders the lazy loaded
|
|
45
|
+
* optimization obsolete having to resolve each node to do authorization etc. The
|
|
46
|
+
* value can be less than the value returned by {@link #getApproximateCount} for
|
|
47
|
+
* authenticated users.</p>
|
|
48
|
+
*
|
|
49
|
+
* <p>
|
|
50
|
+
* <strong>Potentially a very expensive operation!</strong> To be used only when an
|
|
51
|
+
* exact count is really, REALLY needed. Normally {@link #getApproximateCount} will
|
|
52
|
+
* suffise (paging etc.).
|
|
53
|
+
* </p>
|
|
54
|
+
*
|
|
55
|
+
* <p>
|
|
56
|
+
* <strong>Tip!</strong> If you require exact accuracy for "small" search results and accept
|
|
57
|
+
* potential inaccurate hit count for "large" results - use {@link #getEffectiveCount(int)} instead!
|
|
58
|
+
* </p>
|
|
59
|
+
*
|
|
60
|
+
* <p>
|
|
61
|
+
* <strong>Note:</strong> If your only interest in this method is to check if the exact count is more
|
|
62
|
+
* than zero or not, you SHOULD use {@link #hasHits} instead.<br><br>In other words, this:
|
|
63
|
+
* </p>
|
|
64
|
+
* <pre><code>
|
|
65
|
+
* if (!mySearchResult.hasHits())
|
|
66
|
+
* {
|
|
67
|
+
* <em>// Handle no hits</em>
|
|
68
|
+
* ...
|
|
69
|
+
* }</code></pre>
|
|
70
|
+
* <p>
|
|
71
|
+
* is always much, Much, MUCH preferred to this:
|
|
72
|
+
* </p>
|
|
73
|
+
* <pre><code>
|
|
74
|
+
* if (mySearchResult.getExactCount() == 0)
|
|
75
|
+
* {
|
|
76
|
+
* <em>// Handle no hits</em>
|
|
77
|
+
* ...
|
|
78
|
+
* }</code></pre><p>Whether the search result contains hits or not.</p>
|
|
79
|
+
*
|
|
80
|
+
* <p>
|
|
81
|
+
* This is a convenience method that enables you to check if there are any hits, without obtaining a (possibly unneeded)
|
|
82
|
+
* iterator via {@link #getHits}.
|
|
83
|
+
* </p>
|
|
84
|
+
* <p>
|
|
85
|
+
* In other words, this:
|
|
86
|
+
* </p>
|
|
87
|
+
* <pre><code>
|
|
88
|
+
* if (mySearchResult.hasHits())
|
|
89
|
+
* {
|
|
90
|
+
* <em>// Handle hits</em>
|
|
91
|
+
* Iterator<SearchHit> hitIterator = mySearchResult.getHits();
|
|
92
|
+
* ...
|
|
93
|
+
* }</code></pre>
|
|
94
|
+
* <p>
|
|
95
|
+
* is preferred to this:
|
|
96
|
+
* </p>
|
|
97
|
+
* <pre><code>
|
|
98
|
+
* Iterator<SearchHit> hitIterator = mySearchResult.getHits();
|
|
99
|
+
* if (hitIterator.hasNext())
|
|
100
|
+
* {
|
|
101
|
+
* <em>// Handle hits</em>
|
|
102
|
+
* ...
|
|
103
|
+
* }</code></pre>
|
|
104
|
+
*
|
|
105
|
+
* <p>
|
|
106
|
+
* <strong>Note:</strong> This method <em>must</em> be called before iterating the hits. If you already have started iterating
|
|
107
|
+
* the hits, the result of this method is indeterminate.
|
|
108
|
+
* </p>
|
|
109
|
+
*
|
|
110
|
+
* <p>
|
|
111
|
+
* <strong>Note:</strong> If your only interest is to check if exact count is more than zero or not, this method
|
|
112
|
+
* is much, much less expensive than calling {@link #getExactCount} and comparing the result to zero.
|
|
113
|
+
* </p><p>Predicts the number of hits by disregarding expensive operations like node authorization etc.
|
|
114
|
+
* This value can be higher than the value returned by {@link #getExactCount} for authenticated users.</p>
|
|
115
|
+
*
|
|
116
|
+
* <p>
|
|
117
|
+
* <strong>Tip!</strong> If you require exact accuracy for "small" search results and accept approximate hit count for
|
|
118
|
+
* "large" results, you would typically use the {@link #getEffectiveCount(int)} method!
|
|
119
|
+
* </p><p>Returns the <em>exact</em> hit count or the <em>approximate</em> hit count, given a specified count threshold.</p>
|
|
120
|
+
*
|
|
121
|
+
* <p>
|
|
122
|
+
* This method enables you to get accurate hit count for "small" search results and estimated hit count for "large" search results.
|
|
123
|
+
* A "silver bullet" method when deciding between using the potentially less performant (but exact) {@link #getExactCount()} and the
|
|
124
|
+
* well performant (but potentially inexact) {@link #getApproximateCount()}
|
|
125
|
+
* </p>
|
|
126
|
+
*
|
|
127
|
+
* <p>
|
|
128
|
+
* <strong>An example: </strong><code>getEffectiveCount(100)</code>
|
|
129
|
+
* </p>
|
|
130
|
+
* <ul>
|
|
131
|
+
* <li>returns <code>exactCount</code> if the estimated hit count is <em>lower</em> than 100</li>
|
|
132
|
+
* <li>returns <code>approximateCount</code> if the estimated hit count is <em>equal or higher</em> than 100</li>
|
|
133
|
+
* </ul><p>
|
|
134
|
+
* The search query that was used to create this search result.
|
|
135
|
+
* </p><p>
|
|
136
|
+
* The "human friendly" variant of the query to display in search results.
|
|
137
|
+
* </p>
|
|
138
|
+
* <p>
|
|
139
|
+
* Note! if no specific <em>display query</em> was specified when assembling/executing the search
|
|
140
|
+
* (see {@link senselogic.sitevision.api.search.searcher.Searcher}), this method will
|
|
141
|
+
* return same value as {@link #getQuery()}.
|
|
142
|
+
* </p><p>The current status of the search. This value might change when iterating the
|
|
143
|
+
* <code>Iterator</code> containing the {@link SearchHit} objects.</p><p>
|
|
144
|
+
* Accessor to a string representation of the status code.
|
|
145
|
+
* </p>Returns the facet fields for this search result.Returns suggestions for this search result.Returns the custom sorts for this search result.<em><strong>Note! Do not use this method. This method will return a deprecated and non-functional object instance.
|
|
146
|
+
* It will be completely removed in future versions of Sitevision!</strong></em><em><strong>Note! Do not use this method. It will be completely removed in future versions of Sitevision!</strong></em>
|
|
147
|
+
*
|
|
148
|
+
* <p>
|
|
149
|
+
* Use {@link senselogic.sitevision.api.script.ScriptUtil#getFormatPattern(java.util.Locale)}
|
|
150
|
+
* and {@link senselogic.sitevision.api.script.ScriptUtil#getDateAsString(String, java.util.Date)} instead to format dates for search hits.
|
|
151
|
+
* </p>Search is successful.Search is unsuccessful due to a missing index.Search is unsuccessful due to an invalid search query.Search is unsuccessful due to an unexpected error.
|
|
152
|
+
* @author Mikael Wikblom
|
|
153
|
+
* @since Sitevision 2.6_06
|
|
154
|
+
*/
|
|
155
|
+
interface SearchResult {
|
|
156
|
+
/**
|
|
157
|
+
* <p>Accessor to the lazy loaded <code>Iterator</code> containing the search hits. Iterating the
|
|
158
|
+
* <code>Iterator</code> potentially changes the status of the <code>SearchResult</code>object.</p>
|
|
159
|
+
*
|
|
160
|
+
* <p>
|
|
161
|
+
* <strong>IMPORTANT NOTE!</strong> You should only call this method <strong>once</strong>! Subsequent calls
|
|
162
|
+
* will throw an <code>IllegalStateException</code>.
|
|
163
|
+
* </p>
|
|
164
|
+
* @return An <code>Iterator</code> containing the <code>SearchHit</code> objects
|
|
165
|
+
* @see #getStatus()
|
|
166
|
+
* @see #getStatusMessage()
|
|
167
|
+
* @see #iterator()
|
|
168
|
+
* @throws IllegalStateException if this method is called more than once
|
|
169
|
+
*/
|
|
170
|
+
getHits(): unknown;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* <p>Convenience method for iterating search hits using the Java foreach loop construct.</p>
|
|
174
|
+
*
|
|
175
|
+
* <p>
|
|
176
|
+
* <strong>NOTE! This convenience method is just an ALIAS for the {@link #getHits()} method!<br>
|
|
177
|
+
* Restrictions and such that applies to {@link #getHits()} also applies to this method!</strong>
|
|
178
|
+
* </p>
|
|
179
|
+
*
|
|
180
|
+
* <p>
|
|
181
|
+
* This is a convenience method for enabling iteration of search hits using the <em>foreach loop</em>:
|
|
182
|
+
* </p>
|
|
183
|
+
* <pre><code>
|
|
184
|
+
* SearchResult searchResult = ...
|
|
185
|
+
* for (SearchHit searchHit : searchResult) {
|
|
186
|
+
* ...
|
|
187
|
+
* }</code></pre>...so you don't have to use the <em>for loop</em> and iterate via the <code>getHits()</code> method:
|
|
188
|
+
* <pre><code><em>
|
|
189
|
+
* SearchResult searchResult = ...
|
|
190
|
+
* for (Iterator<SearchHit> searchHits = searchResult.getHits(); searchHits.hasNext();) {
|
|
191
|
+
* SearchHit searchHit = searchHits.next();
|
|
192
|
+
* ...
|
|
193
|
+
* }</em></code></pre>...or use the <em>while loop</em>:<pre><code><em>
|
|
194
|
+
* SearchResult searchResult = ...
|
|
195
|
+
* Iterator<SearchHit> searchHits = searchResult.getHits();
|
|
196
|
+
* while (searchHits.hasNext()) {
|
|
197
|
+
* SearchHit searchHit = searchHits.next();
|
|
198
|
+
* ...
|
|
199
|
+
* }</em></code></pre>
|
|
200
|
+
* @return An <code>Iterator</code> containing the <code>SearchHit</code> objects
|
|
201
|
+
* @see #getHits()
|
|
202
|
+
* @since Sitevision 3.0.2
|
|
203
|
+
*/
|
|
204
|
+
iterator(): unknown;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* <p>Accessor to the exact number of hits. This operation renders the lazy loaded
|
|
208
|
+
* optimization obsolete having to resolve each node to do authorization etc. The
|
|
209
|
+
* value can be less than the value returned by {@link #getApproximateCount} for
|
|
210
|
+
* authenticated users.</p>
|
|
211
|
+
*
|
|
212
|
+
* <p>
|
|
213
|
+
* <strong>Potentially a very expensive operation!</strong> To be used only when an
|
|
214
|
+
* exact count is really, REALLY needed. Normally {@link #getApproximateCount} will
|
|
215
|
+
* suffise (paging etc.).
|
|
216
|
+
* </p>
|
|
217
|
+
*
|
|
218
|
+
* <p>
|
|
219
|
+
* <strong>Tip!</strong> If you require exact accuracy for "small" search results and accept
|
|
220
|
+
* potential inaccurate hit count for "large" results - use {@link #getEffectiveCount(int)} instead!
|
|
221
|
+
* </p>
|
|
222
|
+
*
|
|
223
|
+
* <p>
|
|
224
|
+
* <strong>Note:</strong> If your only interest in this method is to check if the exact count is more
|
|
225
|
+
* than zero or not, you SHOULD use {@link #hasHits} instead.<br><br>In other words, this:
|
|
226
|
+
* </p>
|
|
227
|
+
* <pre><code>
|
|
228
|
+
* if (!mySearchResult.hasHits())
|
|
229
|
+
* {
|
|
230
|
+
* <em>// Handle no hits</em>
|
|
231
|
+
* ...
|
|
232
|
+
* }</code></pre>
|
|
233
|
+
* <p>
|
|
234
|
+
* is always much, Much, MUCH preferred to this:
|
|
235
|
+
* </p>
|
|
236
|
+
* <pre><code>
|
|
237
|
+
* if (mySearchResult.getExactCount() == 0)
|
|
238
|
+
* {
|
|
239
|
+
* <em>// Handle no hits</em>
|
|
240
|
+
* ...
|
|
241
|
+
* }</code></pre>
|
|
242
|
+
* @return The number of hits
|
|
243
|
+
* @see #getApproximateCount()
|
|
244
|
+
* @see #getEffectiveCount(int)
|
|
245
|
+
* @see #hasHits()
|
|
246
|
+
*/
|
|
247
|
+
getExactCount(): number;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* <p>Whether the search result contains hits or not.</p>
|
|
251
|
+
*
|
|
252
|
+
* <p>
|
|
253
|
+
* This is a convenience method that enables you to check if there are any hits, without obtaining a (possibly unneeded)
|
|
254
|
+
* iterator via {@link #getHits}.
|
|
255
|
+
* </p>
|
|
256
|
+
* <p>
|
|
257
|
+
* In other words, this:
|
|
258
|
+
* </p>
|
|
259
|
+
* <pre><code>
|
|
260
|
+
* if (mySearchResult.hasHits())
|
|
261
|
+
* {
|
|
262
|
+
* <em>// Handle hits</em>
|
|
263
|
+
* Iterator<SearchHit> hitIterator = mySearchResult.getHits();
|
|
264
|
+
* ...
|
|
265
|
+
* }</code></pre>
|
|
266
|
+
* <p>
|
|
267
|
+
* is preferred to this:
|
|
268
|
+
* </p>
|
|
269
|
+
* <pre><code>
|
|
270
|
+
* Iterator<SearchHit> hitIterator = mySearchResult.getHits();
|
|
271
|
+
* if (hitIterator.hasNext())
|
|
272
|
+
* {
|
|
273
|
+
* <em>// Handle hits</em>
|
|
274
|
+
* ...
|
|
275
|
+
* }</code></pre>
|
|
276
|
+
*
|
|
277
|
+
* <p>
|
|
278
|
+
* <strong>Note:</strong> This method <em>must</em> be called before iterating the hits. If you already have started iterating
|
|
279
|
+
* the hits, the result of this method is indeterminate.
|
|
280
|
+
* </p>
|
|
281
|
+
*
|
|
282
|
+
* <p>
|
|
283
|
+
* <strong>Note:</strong> If your only interest is to check if exact count is more than zero or not, this method
|
|
284
|
+
* is much, much less expensive than calling {@link #getExactCount} and comparing the result to zero.
|
|
285
|
+
* </p>
|
|
286
|
+
* @return if the search result contains hits or not (or another way to put it - has an exact count higher than zero)
|
|
287
|
+
* @since Sitevision 2.6.1_04
|
|
288
|
+
*/
|
|
289
|
+
hasHits(): boolean;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* <p>Predicts the number of hits by disregarding expensive operations like node authorization etc.
|
|
293
|
+
* This value can be higher than the value returned by {@link #getExactCount} for authenticated users.</p>
|
|
294
|
+
*
|
|
295
|
+
* <p>
|
|
296
|
+
* <strong>Tip!</strong> If you require exact accuracy for "small" search results and accept approximate hit count for
|
|
297
|
+
* "large" results, you would typically use the {@link #getEffectiveCount(int)} method!
|
|
298
|
+
* </p>
|
|
299
|
+
* @return An approximation (upper bound) of the number of hits
|
|
300
|
+
* @see #getEffectiveCount(int)
|
|
301
|
+
* @see #getExactCount()
|
|
302
|
+
*/
|
|
303
|
+
getApproximateCount(): number;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* <p>Returns the <em>exact</em> hit count or the <em>approximate</em> hit count, given a specified count threshold.</p>
|
|
307
|
+
*
|
|
308
|
+
* <p>
|
|
309
|
+
* This method enables you to get accurate hit count for "small" search results and estimated hit count for "large" search results.
|
|
310
|
+
* A "silver bullet" method when deciding between using the potentially less performant (but exact) {@link #getExactCount()} and the
|
|
311
|
+
* well performant (but potentially inexact) {@link #getApproximateCount()}
|
|
312
|
+
* </p>
|
|
313
|
+
*
|
|
314
|
+
* <p>
|
|
315
|
+
* <strong>An example: </strong><code>getEffectiveCount(100)</code>
|
|
316
|
+
* </p>
|
|
317
|
+
* <ul>
|
|
318
|
+
* <li>returns <code>exactCount</code> if the estimated hit count is <em>lower</em> than 100</li>
|
|
319
|
+
* <li>returns <code>approximateCount</code> if the estimated hit count is <em>equal or higher</em> than 100</li>
|
|
320
|
+
* </ul>
|
|
321
|
+
* @param aHitCountThreshold threshold for when "exact" count is less important, i.e. threshold for when to use approximate count instead of exact count.
|
|
322
|
+
* @return the effective hit count
|
|
323
|
+
* @see #getApproximateCount()
|
|
324
|
+
* @see #getExactCount()
|
|
325
|
+
* @since Sitevision 3.0
|
|
326
|
+
*/
|
|
327
|
+
getEffectiveCount(aHitCountThreshold: number): number;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* <p>
|
|
331
|
+
* The search query that was used to create this search result.
|
|
332
|
+
* </p>
|
|
333
|
+
* @return The search query used to create this <code>SearchResult</code> object
|
|
334
|
+
* @see #getDisplayQuery()
|
|
335
|
+
*/
|
|
336
|
+
getQuery(): string;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* <p>
|
|
340
|
+
* The "human friendly" variant of the query to display in search results.
|
|
341
|
+
* </p>
|
|
342
|
+
* <p>
|
|
343
|
+
* Note! if no specific <em>display query</em> was specified when assembling/executing the search
|
|
344
|
+
* (see {@link senselogic.sitevision.api.search.searcher.Searcher}), this method will
|
|
345
|
+
* return same value as {@link #getQuery()}.
|
|
346
|
+
* </p>
|
|
347
|
+
* @return The "human friendly" variant of the search query used to create this <code>SearchResult</code> object
|
|
348
|
+
* @see #getQuery()
|
|
349
|
+
* @since Sitevision 3.6.4
|
|
350
|
+
*/
|
|
351
|
+
getDisplayQuery(): string;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* <p>The current status of the search. This value might change when iterating the
|
|
355
|
+
* <code>Iterator</code> containing the {@link SearchHit} objects.</p>
|
|
356
|
+
* @return The current status of the search. The value corresponds to any of the <code>STATUS</code> fields {@link #STATUS_OK}, {@link #STATUS_INDEX_NOT_AVAILABLE}, {@link #STATUS_PARSE_ERROR}, {@link #STATUS_UNEXPECTED_ERROR}
|
|
357
|
+
*/
|
|
358
|
+
getStatus(): number;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* <p>
|
|
362
|
+
* Accessor to a string representation of the status code.
|
|
363
|
+
* </p>
|
|
364
|
+
* @return A string representation of the status code, can be <code>null</code> if status is <code>STATUS_OK</code>
|
|
365
|
+
* @see #getStatus()
|
|
366
|
+
*/
|
|
367
|
+
getStatusMessage(): string;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Returns the facet fields for this search result.
|
|
371
|
+
* @return a list of search facet fields, or <code>null</code> if there are no facet fields
|
|
372
|
+
* @since Sitevision 3.0
|
|
373
|
+
*/
|
|
374
|
+
getFacetFields(): unknown[];
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Returns suggestions for this search result.
|
|
378
|
+
* @return a list of suggestions, or <code>null</code> if there are no suggestions
|
|
379
|
+
* @since Sitevision 3.0
|
|
380
|
+
*/
|
|
381
|
+
getSuggestions(): unknown[];
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Returns the custom sorts for this search result.
|
|
385
|
+
* @return a list of custom sorts, or <code>null</code> if there are no custom sorts
|
|
386
|
+
* @since Sitevision 3.2
|
|
387
|
+
*/
|
|
388
|
+
getCustomSorts(): unknown[];
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* <em><strong>Note! Do not use this method. This method will return a deprecated and non-functional object instance.
|
|
392
|
+
* It will be completely removed in future versions of Sitevision!</strong></em>
|
|
393
|
+
* @return a search highlighter, returns <code>null</code> if the search result doesn't have any hits (i.e <code>!aSearchResult.hasHits()</code>)
|
|
394
|
+
* @since Sitevision 2.7_06
|
|
395
|
+
* @deprecated since Sitevision 3.0
|
|
396
|
+
*/
|
|
397
|
+
getSearchHighlighter(): SearchHighlighter;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* <em><strong>Note! Do not use this method. It will be completely removed in future versions of Sitevision!</strong></em>
|
|
401
|
+
*
|
|
402
|
+
* <p>
|
|
403
|
+
* Use {@link senselogic.sitevision.api.script.ScriptUtil#getFormatPattern(java.util.Locale)}
|
|
404
|
+
* and {@link senselogic.sitevision.api.script.ScriptUtil#getDateAsString(String, java.util.Date)} instead to format dates for search hits.
|
|
405
|
+
* </p>
|
|
406
|
+
* @param aLocale the locale that should be used when creating the date formatter, if <code>null</code>, <code>locale.ENGLISH</code> will be used
|
|
407
|
+
* @return a date formatter using the default date pattern of the Sitevision standard search portlet.
|
|
408
|
+
* @since Sitevision 2.7_06
|
|
409
|
+
* @deprecated since Sitevision 3.0
|
|
410
|
+
*/
|
|
411
|
+
getDateFormatter(aLocale: unknown): unknown;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
export default SearchResult;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A facet field of a search result.Returns the name of this facet field.Returns the facet values for this facet field.Convenience method for getting the number of values for this facet field.
|
|
3
|
+
* @author Niclas Hedlund
|
|
4
|
+
* @since Sitevision 3.0
|
|
5
|
+
* @see senselogic.sitevision.api.search.SearchResult#getFacetFields()
|
|
6
|
+
*/
|
|
7
|
+
interface SearchFacetField {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the name of this facet field.
|
|
10
|
+
* @return the facet field name
|
|
11
|
+
*/
|
|
12
|
+
getName(): string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Returns the facet values for this facet field.
|
|
16
|
+
* @return the list of values for this facet field, or <code>null</code> if there are no values
|
|
17
|
+
*/
|
|
18
|
+
getFacetValues(): unknown[];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Convenience method for getting the number of values for this facet field.
|
|
22
|
+
* @return number of values
|
|
23
|
+
*/
|
|
24
|
+
getValueCount(): number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default SearchFacetField;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A facet value of a facet field.Returns the number of occurrences (number of expected hits when searching with this facet value).Returns the name of this facet valueReturns the relative URL for executing a query for this facet value.Returns the query parameters for this facet value.
|
|
3
|
+
* <p>
|
|
4
|
+
* The filter query params is a sub-set of the filter URL.
|
|
5
|
+
* </p>
|
|
6
|
+
*
|
|
7
|
+
* <p>An example: If the filterURL is:<br>
|
|
8
|
+
* <code>/a/b/c.html?query=d&e=f&g=h</code><br>
|
|
9
|
+
* the filterQueryParams will be:<br>
|
|
10
|
+
* <code>d&e=f&g=h</code><br>
|
|
11
|
+
* <em>(Note that the value starts with the "query" parameter, but <strong>without</strong> the actual query
|
|
12
|
+
* parameter name: '<span style="text-decoration:line-through">query=</span>')</em>
|
|
13
|
+
* </p>Returns whether or not this facet value is selected.
|
|
14
|
+
* @author Magnus Lövgren
|
|
15
|
+
* @since Sitevision 3.0
|
|
16
|
+
* @see senselogic.sitevision.api.search.facet.SearchFacetField#getFacetValues()
|
|
17
|
+
*/
|
|
18
|
+
interface SearchFacetValue {
|
|
19
|
+
/**
|
|
20
|
+
* Returns the number of occurrences (number of expected hits when searching with this facet value).
|
|
21
|
+
* @return the number of occurrences for this facet value.
|
|
22
|
+
*/
|
|
23
|
+
getCount(): number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Returns the name of this facet value
|
|
27
|
+
* @return the name of this facet value
|
|
28
|
+
*/
|
|
29
|
+
getName(): string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Returns the relative URL for executing a query for this facet value.
|
|
33
|
+
* @return the facet value query URL
|
|
34
|
+
*/
|
|
35
|
+
getFilterURL(): string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Returns the query parameters for this facet value.
|
|
39
|
+
* <p>
|
|
40
|
+
* The filter query params is a sub-set of the filter URL.
|
|
41
|
+
* </p>
|
|
42
|
+
*
|
|
43
|
+
* <p>An example: If the filterURL is:<br>
|
|
44
|
+
* <code>/a/b/c.html?query=d&e=f&g=h</code><br>
|
|
45
|
+
* the filterQueryParams will be:<br>
|
|
46
|
+
* <code>d&e=f&g=h</code><br>
|
|
47
|
+
* <em>(Note that the value starts with the "query" parameter, but <strong>without</strong> the actual query
|
|
48
|
+
* parameter name: '<span style="text-decoration:line-through">query=</span>')</em>
|
|
49
|
+
* </p>
|
|
50
|
+
* @return the query parameters, with the actual query parameter first with no name
|
|
51
|
+
*/
|
|
52
|
+
getFilterQueryParams(): string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Returns whether or not this facet value is selected.
|
|
56
|
+
* @return <code>true</code> if this facet value is selected, <code>false</code> otherwise
|
|
57
|
+
*/
|
|
58
|
+
isSelected(): boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default SearchFacetValue;
|