@sitevision/api 1.0.19 → 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/common/router/index.d.ts +1 -1
- 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,277 @@
|
|
|
1
|
+
import SearchResult from "../../SearchResult";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* <p>
|
|
5
|
+
* A searcher with highly configurable behaviour.
|
|
6
|
+
* </p>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* The <code>Searcher</code> is the mother of all querying and the powerful big brother of <code>SearchUtil</code>.
|
|
10
|
+
* When the basic convenience methods in {@link senselogic.sitevision.api.search.SearchUtil} doesn't fit your needs,
|
|
11
|
+
* you can always use the <code>Searcher</code> instead!
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* The behaviour of a <code>Searcher</code> is stipulated via it's assembly of <em>components</em>. The following components are available:
|
|
16
|
+
* </p>
|
|
17
|
+
* <ul>
|
|
18
|
+
* <li>
|
|
19
|
+
* {@link senselogic.sitevision.api.search.searcher.component.Parser}<em>
|
|
20
|
+
* - what parser should be used to handle the queries and what field/fields should be queried?
|
|
21
|
+
* </em>
|
|
22
|
+
* </li>
|
|
23
|
+
* <li>
|
|
24
|
+
* {@link senselogic.sitevision.api.search.searcher.component.Filter}<em>
|
|
25
|
+
* - how should the result be limited?
|
|
26
|
+
* </em>
|
|
27
|
+
* </li>
|
|
28
|
+
* <li>
|
|
29
|
+
* {@link senselogic.sitevision.api.search.searcher.component.SpellCheck}<em>
|
|
30
|
+
* - should the search engine try to get suggestions (did you mean)?
|
|
31
|
+
* </em>
|
|
32
|
+
* </li>
|
|
33
|
+
* <li>
|
|
34
|
+
* {@link senselogic.sitevision.api.search.searcher.component.Highlight}<em>
|
|
35
|
+
* - which fields should be highlighted and how?
|
|
36
|
+
* </em>
|
|
37
|
+
* </li>
|
|
38
|
+
* <li>
|
|
39
|
+
* {@link senselogic.sitevision.api.search.searcher.component.Sort}<em>
|
|
40
|
+
* - how should the result be sorted?
|
|
41
|
+
* </em>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* {@link senselogic.sitevision.api.search.searcher.component.Monitor}<em>
|
|
45
|
+
* - how should querying be monitored? (e.g. should search query logging mode be on or off?)
|
|
46
|
+
* </em>
|
|
47
|
+
* </li>
|
|
48
|
+
* </ul>
|
|
49
|
+
* <p>
|
|
50
|
+
* All components are optional and are assembled using a {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder}.
|
|
51
|
+
* When the <code>Searcher</code> is created, it <strong>can be re-used</strong> for subsequent searching.
|
|
52
|
+
* </p>
|
|
53
|
+
*
|
|
54
|
+
* <p>
|
|
55
|
+
* <strong>Example of how to get and use a Searcher in Velocity:</strong>
|
|
56
|
+
* </p>
|
|
57
|
+
* <pre><code>
|
|
58
|
+
* <em>## Get the search factory</em>
|
|
59
|
+
* #set ($searchFactory = $sitevisionUtils.searchFactory)
|
|
60
|
+
*
|
|
61
|
+
* <em>## Get the search builder</em>
|
|
62
|
+
* #set ($searcherBuilder = $searchFactory.searcherBuilder)
|
|
63
|
+
*
|
|
64
|
+
* <em>## Configure the search builder (use component builders to create whatever components that is needed and add them)</em>
|
|
65
|
+
* <em>...</em>
|
|
66
|
+
*
|
|
67
|
+
* <em>## Create the searcher</em>
|
|
68
|
+
* #set ($searcher = $searcherBuilder.build())
|
|
69
|
+
*
|
|
70
|
+
* <em>## Search and handle the result</em>
|
|
71
|
+
* #set ($searchResult = $searcher.search('example*', 10))
|
|
72
|
+
* #if ($searchResult.hasHits())
|
|
73
|
+
* <ol>
|
|
74
|
+
* #foreach ($hit in $searchResult.hits)
|
|
75
|
+
* <li><em>...</em></li>
|
|
76
|
+
* #end
|
|
77
|
+
* </ol>
|
|
78
|
+
* #end
|
|
79
|
+
* </code></pre>
|
|
80
|
+
*
|
|
81
|
+
* <p>
|
|
82
|
+
* What <em>index</em> to query can also be specified via the <code>SearcherBuilder</code>.
|
|
83
|
+
* Please note that <em>fields might differ between index</em> so if you query multiple indexes and re-use the <code>SearcherBuilder</code>,
|
|
84
|
+
* you must also re-set the components that are field-dependant (e.g. the Sort, the Highlight, the Parser
|
|
85
|
+
* if you have specified custom query fields etc.).
|
|
86
|
+
* </p>
|
|
87
|
+
* <p>
|
|
88
|
+
* <strong>Example of how to query two indexes using server-side JavaScript</strong><br>(i.e. search identities from the the
|
|
89
|
+
* <em>user identity index</em> and pages/files/images from the <em>node index</em>):
|
|
90
|
+
* </p>
|
|
91
|
+
* <pre><code>
|
|
92
|
+
* <em>// Get a search builder</em>
|
|
93
|
+
* var searcherBuilder = require('SearcherBuilder');
|
|
94
|
+
*
|
|
95
|
+
* <em>// Build a 'node index' Searcher and search</em>
|
|
96
|
+
* var nodeSearcher = searcherBuilder <em>// Will use the default node index</em>
|
|
97
|
+
* .build();
|
|
98
|
+
* var nodeResult = nodeSearcher.search('nisse', 3);
|
|
99
|
+
*
|
|
100
|
+
* <em>// Build a 'user identity index' Searcher and search</em>
|
|
101
|
+
* var indexUtil = require('IndexUtil');
|
|
102
|
+
* var userIdentityIndexType = require('IndexUtil.IndexType.USER_IDENTITY');
|
|
103
|
+
* var identityResult = searcherBuilder
|
|
104
|
+
* .setIndex(indexUtil.getDefaultIndex(userIdentityIndexType))
|
|
105
|
+
* .build()
|
|
106
|
+
* .search('nisse', 10);
|
|
107
|
+
*
|
|
108
|
+
* <em>// Iterate results</em>
|
|
109
|
+
* var hits, hit;
|
|
110
|
+
* if (identityResult.hasHits()) {
|
|
111
|
+
* hits = identityResult.getHits();
|
|
112
|
+
* while (hits.hasNext()) {
|
|
113
|
+
* hit = hits.next();
|
|
114
|
+
* <em>// Handle hit from user identity index</em>
|
|
115
|
+
* ...
|
|
116
|
+
* }
|
|
117
|
+
* }
|
|
118
|
+
* if (nodeResult.hasHits()) {
|
|
119
|
+
* hits = nodeResult.getHits();
|
|
120
|
+
* while (hits.hasNext()) {
|
|
121
|
+
* hit = hits.next();
|
|
122
|
+
* <em>// Handle hit from node index</em>
|
|
123
|
+
* ...
|
|
124
|
+
* }
|
|
125
|
+
* }</code></pre>
|
|
126
|
+
*
|
|
127
|
+
* <p>
|
|
128
|
+
* <strong>Tip!</strong> The {@link senselogic.sitevision.api.base.Builder Builder interface documentation} contains
|
|
129
|
+
* more information about Builders and how to work with them!
|
|
130
|
+
* </p>
|
|
131
|
+
*
|
|
132
|
+
* <p>
|
|
133
|
+
* <strong>Query syntax note! </strong>Query strings should be expressed according to the <em>Solr query syntax</em>.
|
|
134
|
+
* The syntax is basically the
|
|
135
|
+
* <em><a href="http://lucene.apache.org/core/4_10_3/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description">
|
|
136
|
+
* Lucene query syntax</a></em>
|
|
137
|
+
* with <em><a href="http://wiki.apache.org/solr/SolrQuerySyntax#Differences_From_Lucene_Query_Parser">some minor differences</a></em>.
|
|
138
|
+
* Also note that a general recommendation is to always use the <em>prefix operators</em> (<code>+</code>/<code>-</code>) instead of the
|
|
139
|
+
* <em>boolean keywords</em> (AND/OR/NOT) to avoid unexpected behaviour. For deeper understanding, see for example
|
|
140
|
+
* <a href="https://lucidworks.com/blog/2011/12/28/why-not-and-or-and-not/">Why Not AND, OR, And NOT?</a>.
|
|
141
|
+
* </p>
|
|
142
|
+
*
|
|
143
|
+
* <p>
|
|
144
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
145
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder#build()}.
|
|
146
|
+
* See {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder} for how to obtain an instance
|
|
147
|
+
* of the <code>SearcherBuilder</code> interface.
|
|
148
|
+
* </p>Executes a search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
149
|
+
*
|
|
150
|
+
* <p>
|
|
151
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
152
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
153
|
+
* </p>Executes a search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
154
|
+
*
|
|
155
|
+
* <p>
|
|
156
|
+
* This method is typically used if you want to execute a complex query (i.e. <code>aQuery</code>), but display a
|
|
157
|
+
* more simpler one (i.e. <code>aDisplayQuery</code>) when rendering the search result.
|
|
158
|
+
* Use {@link senselogic.sitevision.api.search.SearchResult#getQuery()} to get the <code>aQuery</code> and use
|
|
159
|
+
* {@link senselogic.sitevision.api.search.SearchResult#getDisplayQuery()} to get the <code>aDisplayQuery</code>.
|
|
160
|
+
* </p>
|
|
161
|
+
*
|
|
162
|
+
* <p>
|
|
163
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
164
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
165
|
+
* </p>Executes a paginated search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
166
|
+
*
|
|
167
|
+
* <p>
|
|
168
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
169
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
170
|
+
* </p>Executes a paginated search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
171
|
+
*
|
|
172
|
+
* <p>
|
|
173
|
+
* This method is typically used if you want to execute a paginated complex query (i.e. <code>aQuery</code>), but display a
|
|
174
|
+
* more simpler one (i.e. <code>aDisplayQuery</code>) when rendering the search result.
|
|
175
|
+
* Use {@link senselogic.sitevision.api.search.SearchResult#getQuery()} to get the <code>aQuery</code> and use
|
|
176
|
+
* {@link senselogic.sitevision.api.search.SearchResult#getDisplayQuery()} to get the <code>aDisplayQuery</code>.
|
|
177
|
+
* </p>
|
|
178
|
+
*
|
|
179
|
+
* <p>
|
|
180
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
181
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
182
|
+
* </p>
|
|
183
|
+
* @author Magnus Lövgren
|
|
184
|
+
* @since Sitevision 3.6
|
|
185
|
+
*/
|
|
186
|
+
interface Searcher {
|
|
187
|
+
/**
|
|
188
|
+
* Executes a search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
189
|
+
*
|
|
190
|
+
* <p>
|
|
191
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
192
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
193
|
+
* </p>
|
|
194
|
+
* @param aQuery the query string
|
|
195
|
+
* @param aMaxHitsToReturn maximum total number of hits to be returned
|
|
196
|
+
* @return the search result, never <code>null</code>
|
|
197
|
+
* @throws IllegalArgumentException if <code>aQuery</code> is null or whitespace-only, if <code>aStartAtHit</code> is negative, if <code>aMaxHitsToReturn</code> is negative or zero.
|
|
198
|
+
*/
|
|
199
|
+
search(aQuery: string, aMaxHitsToReturn: number): SearchResult;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Executes a search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
203
|
+
*
|
|
204
|
+
* <p>
|
|
205
|
+
* This method is typically used if you want to execute a complex query (i.e. <code>aQuery</code>), but display a
|
|
206
|
+
* more simpler one (i.e. <code>aDisplayQuery</code>) when rendering the search result.
|
|
207
|
+
* Use {@link senselogic.sitevision.api.search.SearchResult#getQuery()} to get the <code>aQuery</code> and use
|
|
208
|
+
* {@link senselogic.sitevision.api.search.SearchResult#getDisplayQuery()} to get the <code>aDisplayQuery</code>.
|
|
209
|
+
* </p>
|
|
210
|
+
*
|
|
211
|
+
* <p>
|
|
212
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
213
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
214
|
+
* </p>
|
|
215
|
+
* @param aQuery the query string
|
|
216
|
+
* @param aDisplayQuery the "human friendly" variant of the query string that can be used/retrieved when rendering the search result. Note! If <code>aDisplayQuery</code> is <code>null</code>, <code>aQuery</code> will be used as <code>aDisplayQuery</code>.
|
|
217
|
+
* @param aMaxHitsToReturn maximum total number of hits to be returned
|
|
218
|
+
* @return the search result, never <code>null</code>
|
|
219
|
+
* @throws IllegalArgumentException if <code>aQuery</code> is null or whitespace-only, if <code>aStartAtHit</code> is negative, if <code>aMaxHitsToReturn</code> is negative or zero.
|
|
220
|
+
* @since Sitevision 3.6.4
|
|
221
|
+
*/
|
|
222
|
+
search(
|
|
223
|
+
aQuery: string,
|
|
224
|
+
aDisplayQuery: string,
|
|
225
|
+
aMaxHitsToReturn: number
|
|
226
|
+
): SearchResult;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Executes a paginated search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
230
|
+
*
|
|
231
|
+
* <p>
|
|
232
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
233
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
234
|
+
* </p>
|
|
235
|
+
* @param aQuery the query string
|
|
236
|
+
* @param aStartAtHit number of leading hits to be skipped
|
|
237
|
+
* @param aMaxHitsToReturn maximum total number of hits to be returned
|
|
238
|
+
* @return the search result, never <code>null</code>
|
|
239
|
+
* @throws IllegalArgumentException if <code>aQuery</code> is null or whitespace-only, if <code>aStartAtHit</code> is negative, if <code>aMaxHitsToReturn</code> is negative or zero.
|
|
240
|
+
*/
|
|
241
|
+
search(
|
|
242
|
+
aQuery: string,
|
|
243
|
+
aStartAtHit: number,
|
|
244
|
+
aMaxHitsToReturn: number
|
|
245
|
+
): SearchResult;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Executes a paginated search using the components/behaviour that was specified when the <code>Searcher</code> was created.
|
|
249
|
+
*
|
|
250
|
+
* <p>
|
|
251
|
+
* This method is typically used if you want to execute a paginated complex query (i.e. <code>aQuery</code>), but display a
|
|
252
|
+
* more simpler one (i.e. <code>aDisplayQuery</code>) when rendering the search result.
|
|
253
|
+
* Use {@link senselogic.sitevision.api.search.SearchResult#getQuery()} to get the <code>aQuery</code> and use
|
|
254
|
+
* {@link senselogic.sitevision.api.search.SearchResult#getDisplayQuery()} to get the <code>aDisplayQuery</code>.
|
|
255
|
+
* </p>
|
|
256
|
+
*
|
|
257
|
+
* <p>
|
|
258
|
+
* <em>Note! <code>aQuery</code> will be stripped from Local params,
|
|
259
|
+
* see {@link senselogic.sitevision.api.search.query.QueryStringUtil#stripLocalParams(String)}.</em>
|
|
260
|
+
* </p>
|
|
261
|
+
* @param aQuery the query string
|
|
262
|
+
* @param aDisplayQuery the "human friendly" variant of the query string that can be used/retrieved when rendering the search result. Note! If <code>aDisplayQuery</code> is <code>null</code>, <code>aQuery</code> will be used as <code>aDisplayQuery</code>.
|
|
263
|
+
* @param aStartAtHit number of leading hits to be skipped
|
|
264
|
+
* @param aMaxHitsToReturn maximum total number of hits to be returned
|
|
265
|
+
* @return the search result, never <code>null</code>
|
|
266
|
+
* @throws IllegalArgumentException if <code>aQuery</code> is null or whitespace-only, if <code>aStartAtHit</code> is negative, if <code>aMaxHitsToReturn</code> is negative or zero.
|
|
267
|
+
* @since Sitevision 3.6.4
|
|
268
|
+
*/
|
|
269
|
+
search(
|
|
270
|
+
aQuery: string,
|
|
271
|
+
aDisplayQuery: string,
|
|
272
|
+
aStartAtHit: number,
|
|
273
|
+
aMaxHitsToReturn: number
|
|
274
|
+
): SearchResult;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export default Searcher;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>
|
|
3
|
+
* A filter component that defines the filtering behaviour for a {@link senselogic.sitevision.api.search.searcher.Searcher}.
|
|
4
|
+
* </p>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* The actual behaviour is specified when it is constructed using the
|
|
8
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.FilterBuilder}.
|
|
9
|
+
* The component is applied to the <code>Searcher</code> via
|
|
10
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder#setFilter(Filter)}
|
|
11
|
+
* when the <code>Searcher</code> is constructed.
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
16
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.FilterBuilder#build()}.
|
|
17
|
+
* See {@link senselogic.sitevision.api.search.searcher.builder.FilterBuilder} for how to obtain an instance of the
|
|
18
|
+
* <code>FilterBuilder</code> interface.
|
|
19
|
+
* </p>
|
|
20
|
+
* @author Magnus Lövgren
|
|
21
|
+
* @since Sitevision 3.6
|
|
22
|
+
*/
|
|
23
|
+
interface Filter {}
|
|
24
|
+
|
|
25
|
+
export default Filter;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>
|
|
3
|
+
* A highlight component that defines the highlighting behaviour for a {@link senselogic.sitevision.api.search.searcher.Searcher}.
|
|
4
|
+
* </p>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* The actual behaviour is specified when it is constructed using the
|
|
8
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.HighlightBuilder}
|
|
9
|
+
* The component is applied to the <code>Searcher</code> via
|
|
10
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder#setHighlight(Highlight)}
|
|
11
|
+
* when the <code>Searcher</code> is constructed.
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* <em>Solr note: this component depicts the solr.HighlightComponent</em>
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* <p>
|
|
19
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
20
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.HighlightBuilder#build()}.
|
|
21
|
+
* See {@link senselogic.sitevision.api.search.searcher.builder.HighlightBuilder} for how to obtain an instance of the
|
|
22
|
+
* <code>HighlightBuilder</code> interface.
|
|
23
|
+
* </p>
|
|
24
|
+
* @author Magnus Lövgren
|
|
25
|
+
* @since Sitevision 3.6
|
|
26
|
+
*/
|
|
27
|
+
interface Highlight {}
|
|
28
|
+
|
|
29
|
+
export default Highlight;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>
|
|
3
|
+
* A monitor component that defines monitoring behaviour for a {@link senselogic.sitevision.api.search.searcher.Searcher}.
|
|
4
|
+
* </p>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* The actual behaviour is specified when it is constructed using the
|
|
8
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.MonitorBuilder}
|
|
9
|
+
* The component is applied to the <code>Searcher</code> via
|
|
10
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder#setMonitor(Monitor)}
|
|
11
|
+
* when the <code>Searcher</code> is constructed.
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
16
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.MonitorBuilder#build()}.
|
|
17
|
+
* See {@link senselogic.sitevision.api.search.searcher.builder.MonitorBuilder} for how to obtain an instance of the
|
|
18
|
+
* <code>MonitorBuilder</code> interface.
|
|
19
|
+
* </p>
|
|
20
|
+
* @author Magnus Lövgren
|
|
21
|
+
* @since Sitevision 4.1
|
|
22
|
+
*/
|
|
23
|
+
interface Monitor {}
|
|
24
|
+
|
|
25
|
+
export default Monitor;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>
|
|
3
|
+
* A parser component that defines the query parsing behaviour for a {@link senselogic.sitevision.api.search.searcher.Searcher}.
|
|
4
|
+
* </p>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* The component behaviour is specified when it is constructed and it is applied to the <code>Searcher</code> via
|
|
8
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder#setParser(Parser)}
|
|
9
|
+
* when the <code>Searcher</code> is constructed. There are two parsers available:
|
|
10
|
+
* </p>
|
|
11
|
+
* <ul>
|
|
12
|
+
* <li>
|
|
13
|
+
* A <em>multi-field</em> parser is configured via the {@link senselogic.sitevision.api.search.searcher.builder.ExtendedDismaxParserBuilder}
|
|
14
|
+
* </li>
|
|
15
|
+
* <li>
|
|
16
|
+
* A <em>single-field</em> parser is configured via the {@link senselogic.sitevision.api.search.searcher.builder.StandardParserBuilder}
|
|
17
|
+
* </li>
|
|
18
|
+
* </ul>
|
|
19
|
+
* <p>
|
|
20
|
+
* The default Sitevision portlets use the <em>ExtendedDismaxParser</em>.
|
|
21
|
+
* </p>
|
|
22
|
+
*
|
|
23
|
+
* <p>
|
|
24
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
25
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.ExtendedDismaxParserBuilder#build()}
|
|
26
|
+
* or {@link senselogic.sitevision.api.search.searcher.builder.StandardParserBuilder#build()}.
|
|
27
|
+
* See {@link senselogic.sitevision.api.search.searcher.builder.ExtendedDismaxParserBuilder} or
|
|
28
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.StandardParserBuilder} for how to obtain such instance.
|
|
29
|
+
* </p>
|
|
30
|
+
* @author Magnus Lövgren
|
|
31
|
+
* @since Sitevision 3.6
|
|
32
|
+
*/
|
|
33
|
+
interface Parser {}
|
|
34
|
+
|
|
35
|
+
export default Parser;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>
|
|
3
|
+
* A sort component that defines the sorting behaviour for a {@link senselogic.sitevision.api.search.searcher.Searcher}.
|
|
4
|
+
* </p>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* The actual behaviour is specified when it is constructed using the
|
|
8
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SortBuilder}
|
|
9
|
+
* The component is applied to the <code>Searcher</code> via
|
|
10
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder#setSort(Sort)}
|
|
11
|
+
* when the <code>Searcher</code> is constructed.
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
16
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SortBuilder#build()}.
|
|
17
|
+
* See {@link senselogic.sitevision.api.search.searcher.builder.SortBuilder} for how to obtain an instance of the
|
|
18
|
+
* <code>SortBuilder</code> interface.
|
|
19
|
+
* </p>
|
|
20
|
+
* @author Magnus Lövgren
|
|
21
|
+
* @since Sitevision 3.6
|
|
22
|
+
*/
|
|
23
|
+
interface Sort {}
|
|
24
|
+
|
|
25
|
+
export default Sort;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>
|
|
3
|
+
* A spell check component that defines the "did you mean" behaviour for a {@link senselogic.sitevision.api.search.searcher.Searcher}.
|
|
4
|
+
* </p>
|
|
5
|
+
*
|
|
6
|
+
* <p>
|
|
7
|
+
* The actual behaviour is specified when it is constructed using the
|
|
8
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SpellCheckBuilder}
|
|
9
|
+
* The component is applied to the <code>Searcher</code> via
|
|
10
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SearcherBuilder#setSpellCheck(SpellCheck)}
|
|
11
|
+
* when the <code>Searcher</code> is constructed.
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* <em>Solr note: this component depicts the solr.SpellCheckComponent</em>
|
|
16
|
+
* </p>
|
|
17
|
+
*
|
|
18
|
+
* <p>
|
|
19
|
+
* An instance of the Sitevision class implementing this interface can be obtained via
|
|
20
|
+
* {@link senselogic.sitevision.api.search.searcher.builder.SpellCheckBuilder#build()}.
|
|
21
|
+
* See {@link senselogic.sitevision.api.search.searcher.builder.SpellCheckBuilder} for how to obtain an instance of the
|
|
22
|
+
* <code>SpellCheckBuilder</code> interface.
|
|
23
|
+
* </p>
|
|
24
|
+
* @author Magnus Lövgren
|
|
25
|
+
* @since Sitevision 3.6
|
|
26
|
+
*/
|
|
27
|
+
interface SpellCheck {}
|
|
28
|
+
|
|
29
|
+
export default SpellCheck;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A custom sort that enables users to re-sort the search result
|
|
3
|
+
* on a certain index field with a certain sort order.Gets the name of this custom sort.Gets the identifier of this custom sort.Gets the name of the index field this custom sort uses.Whether the sort order is descending or not.Whether or not this custom sort is selected.Gets the relative URL for this custom sort.Returns the query parameters for this custom sort.
|
|
4
|
+
*
|
|
5
|
+
* <p>
|
|
6
|
+
* The sort query params is a sub-set of the sort URL.
|
|
7
|
+
* </p>
|
|
8
|
+
*
|
|
9
|
+
* <p>
|
|
10
|
+
* An example: If the sortURL is:<br>
|
|
11
|
+
* <code>/a/b/c.html?query=d&e=f&g=h</code><br>
|
|
12
|
+
* the sortQueryParams will be:<br>
|
|
13
|
+
* <code>d&e=f&g=h</code><br>
|
|
14
|
+
* <em>
|
|
15
|
+
* (Note that the value starts with the "query" parameter, but <strong>without</strong> the actual query parameter
|
|
16
|
+
* name: '<span style="text-decoration:line-through">query=</span>')
|
|
17
|
+
* </em>
|
|
18
|
+
* </p>
|
|
19
|
+
* @author Magnus Lövgren
|
|
20
|
+
* @see senselogic.sitevision.api.search.SearchResult#getCustomSorts()
|
|
21
|
+
* @since Sitevision 3.1
|
|
22
|
+
*/
|
|
23
|
+
interface CustomSort {
|
|
24
|
+
/**
|
|
25
|
+
* Gets the name of this custom sort.
|
|
26
|
+
* @return the sort name
|
|
27
|
+
*/
|
|
28
|
+
getName(): string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Gets the identifier of this custom sort.
|
|
32
|
+
* @return the sort identifier
|
|
33
|
+
*/
|
|
34
|
+
getSortId(): string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gets the name of the index field this custom sort uses.
|
|
38
|
+
* @return the field name
|
|
39
|
+
*/
|
|
40
|
+
getField(): string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Whether the sort order is descending or not.
|
|
44
|
+
* @return <code>true</code> if the order of this custom this sort is <em>descending</em>, <code>false</code> otherwise (i.e. order is <em>ascending</em>)
|
|
45
|
+
*/
|
|
46
|
+
isDescending(): boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Whether or not this custom sort is selected.
|
|
50
|
+
* @return <code>true</code> if this sort is selected, <code>false</code> otherwise
|
|
51
|
+
*/
|
|
52
|
+
isSelected(): boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gets the relative URL for this custom sort.
|
|
56
|
+
* @return the URL for this custom sort
|
|
57
|
+
*/
|
|
58
|
+
getSortURL(): string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Returns the query parameters for this custom sort.
|
|
62
|
+
*
|
|
63
|
+
* <p>
|
|
64
|
+
* The sort query params is a sub-set of the sort URL.
|
|
65
|
+
* </p>
|
|
66
|
+
*
|
|
67
|
+
* <p>
|
|
68
|
+
* An example: If the sortURL is:<br>
|
|
69
|
+
* <code>/a/b/c.html?query=d&e=f&g=h</code><br>
|
|
70
|
+
* the sortQueryParams will be:<br>
|
|
71
|
+
* <code>d&e=f&g=h</code><br>
|
|
72
|
+
* <em>
|
|
73
|
+
* (Note that the value starts with the "query" parameter, but <strong>without</strong> the actual query parameter
|
|
74
|
+
* name: '<span style="text-decoration:line-through">query=</span>')
|
|
75
|
+
* </em>
|
|
76
|
+
* </p>
|
|
77
|
+
* @return the query parameters, with the actual query parameter first with no name
|
|
78
|
+
*/
|
|
79
|
+
getSortQueryParams(): string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export default CustomSort;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A "Did you mean" suggestion for a search result.Number of expected hits for this suggestionThe name/expression of the suggestion
|
|
3
|
+
* @author Magnus Lövgren
|
|
4
|
+
* @since Sitevision 3.0
|
|
5
|
+
* @see senselogic.sitevision.api.search.SearchResult#getSuggestions()
|
|
6
|
+
*/
|
|
7
|
+
interface SearchSuggestion {
|
|
8
|
+
/**
|
|
9
|
+
* Number of expected hits for this suggestion
|
|
10
|
+
* @return number of expected hits, or <code>-1</code> if unavailable
|
|
11
|
+
*/
|
|
12
|
+
getCount(): number;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The name/expression of the suggestion
|
|
16
|
+
* @return the suggestion name
|
|
17
|
+
*/
|
|
18
|
+
getName(): string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default SearchSuggestion;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>
|
|
3
|
+
* Interface exposing directory attributes of an internal directory object. The attribute name is the LDAP / Directory attribute
|
|
4
|
+
* name which is not the same thing as the internal field name represented by Field.Id. The mapping between
|
|
5
|
+
* field name and attribute name is defined in the attribute mapping in LdapSchema.
|
|
6
|
+
* </p>
|
|
7
|
+
*
|
|
8
|
+
* <p>
|
|
9
|
+
* This API can also be used to get / set attributes "outside" of the schema.
|
|
10
|
+
* Set methods operates directly to the LDAP source!
|
|
11
|
+
* The methods will never throw exceptions. Any problem will be written to the server log.
|
|
12
|
+
* </p>
|
|
13
|
+
*
|
|
14
|
+
* <p>
|
|
15
|
+
* <em>Note!</em> an initial lookup in the UserObjectProperties will be made to see if the attribute is available.
|
|
16
|
+
* If a lookup to a Directory/LDAP source is required, the resulting value will be stored in the UserObjectProperties
|
|
17
|
+
* to avoid further calls.
|
|
18
|
+
* </p>
|
|
19
|
+
*
|
|
20
|
+
* <p>
|
|
21
|
+
* <strong>Deprecation note!</strong> This is a deprecated legacy interface for operating on "internal" Sitevision objects.
|
|
22
|
+
* Use {@link senselogic.sitevision.api.security.DirectoryUtil} to get LDAP values for a directory object <code>Node</code>.
|
|
23
|
+
* </p>Returns the directory attribute values for the given attribute name.Sets directory attributes on a directory object. <br>
|
|
24
|
+
* This method silently discards any exception that might occur.Returns the directory attribute value for the given attribute name.Sets directory attributes on a directory object. <br>
|
|
25
|
+
* This method silently discards any exception that might occur.Returns the directory attribute value as a <code>String</code> if <code>returnAsString</code>
|
|
26
|
+
* equals <code>true</code>.
|
|
27
|
+
* @author Karl Eklöf
|
|
28
|
+
*/
|
|
29
|
+
interface DirectoryAttributes {
|
|
30
|
+
/**
|
|
31
|
+
* Returns the directory attribute values for the given attribute name.
|
|
32
|
+
* @param anAttributeName The attribute name for which to get the attribute value for.
|
|
33
|
+
* @return The attribute value which maps to the given attribute name or <code>null</code> if no value maps to the given name.
|
|
34
|
+
*/
|
|
35
|
+
getAttributeValues(anAttributeName: string): unknown[];
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Sets directory attributes on a directory object. <br>
|
|
39
|
+
* This method silently discards any exception that might occur.
|
|
40
|
+
* @param anAttributeName The directory attribute to set.
|
|
41
|
+
* @param aValues The directory values to be set.
|
|
42
|
+
*/
|
|
43
|
+
setAttributeValues(anAttributeName: string, aValues: unknown[]): void;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Returns the directory attribute value for the given attribute name.
|
|
47
|
+
* @param anAttributeName The attribute name for which to get the attribute value for.
|
|
48
|
+
* @return The attribute value which maps to the given attribute name or <code>null</code> if no value maps to the given name.
|
|
49
|
+
*/
|
|
50
|
+
getAttributeValue(anAttributeName: string): unknown;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Sets directory attributes on a directory object. <br>
|
|
54
|
+
* This method silently discards any exception that might occur.
|
|
55
|
+
* @param anAttributeName The directory attribute to set.
|
|
56
|
+
* @param aValue The directory value to be set.
|
|
57
|
+
*/
|
|
58
|
+
setAttributeValue(anAttributeName: string, aValue: string): void;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Returns the directory attribute value as a <code>String</code> if <code>returnAsString</code>
|
|
62
|
+
* equals <code>true</code>.
|
|
63
|
+
* @param anAttributeName The attribute name for which to get the attribute value for.
|
|
64
|
+
* @param returnAsString If <code>true</code> the value is returned as a <code>String</code>.
|
|
65
|
+
* @return The attribute value as a <code>String</code> if <code>returnAsString</code> equals <code>true</code> or <code>null</code> if no value maps to the given name.
|
|
66
|
+
*/
|
|
67
|
+
getAttributeValue(anAttributeName: string, returnAsString: boolean): unknown;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export default DirectoryAttributes;
|