Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic JSON indexing template #586

Merged
merged 4 commits into from
Feb 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
366 changes: 366 additions & 0 deletions config_generation/xmls/json_url_indexing_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,366 @@
<?xml version="1.0" encoding="utf-8"?>
<Sinequa>
<Description></Description>
<Connector>json.v2</Connector>
<Identity></Identity>
<Indexers></Indexers>
<Index></Index>
<Domain></Domain>
<TreeRoot>/Testing/Solar System Exploration/</TreeRoot>
<ForceReindexation>false</ForceReindexation>
<Plugin></Plugin>
<IncludedExtensions>htm;html</IncludedExtensions>
<ExcludedExtensions></ExcludedExtensions>
<IncludedFilenames></IncludedFilenames>
<ExcludedFilenames>*index.html;*.xml</ExcludedFilenames>
<IncludedFolders></IncludedFolders>
<ExcludedFolders></ExcludedFolders>
<Indexation>
<Mappings></Mappings>
<SimulateLemma>false</SimulateLemma>
<SimulateEngine>false</SimulateEngine>
<SimulateCache>false</SimulateCache>
<SimulateLemmaMin></SimulateLemmaMin>
<SimulateLemmaMax></SimulateLemmaMax>
<EngineMetaEnabled>true</EngineMetaEnabled>
<ThumbnailHeight></ThumbnailHeight>
<ThumbnailWidth></ThumbnailWidth>
<ThumbnailSmallTimeout></ThumbnailSmallTimeout>
<ThumbnailMediumTimeout></ThumbnailMediumTimeout>
<ThumbnailLargeTimeout></ThumbnailLargeTimeout>
<SynchThumbnailGen>false</SynchThumbnailGen>
<StoreInCollectionCache>false</StoreInCollectionCache>
<GetFilePropertiesFromConverter>false</GetFilePropertiesFromConverter>
<CollectionStateParallelRowFetch>0</CollectionStateParallelRowFetch>
</Indexation>
<System>
<LogLevel>TRACE</LogLevel>
</System>
<DisplayLongProperties>false</DisplayLongProperties>
<LongPropertyLimit></LongPropertyLimit>
<UsePerformanceMetrics>false</UsePerformanceMetrics>
<LogPerformanceMetricsPeriodically>false</LogPerformanceMetricsPeriodically>
<PasswordRepository></PasswordRepository>
<StoreDocumentCache></StoreDocumentCache>
<AuditEnabled>false</AuditEnabled>
<SaveDeniedDocs>false</SaveDeniedDocs>
<SavePropertiesToRegistry>false</SavePropertiesToRegistry>
<CollectionStateNative>false</CollectionStateNative>
<HtmlNavigatorNative>true</HtmlNavigatorNative>
<XPathNavigatorNative>false</XPathNavigatorNative>
<StatusMaxOk></StatusMaxOk>
<DelApiSecret></DelApiSecret>
<IndexerClient>
<Simulate>false</Simulate>
<SimulateGetCollectionState>false</SimulateGetCollectionState>
<New>true</New>
<SendThreadCount></SendThreadCount>
<QueueMaxCount></QueueMaxCount>
<DirectFileAccess>false</DirectFileAccess>
<UseCompression>false</UseCompression>
<SessionIsFinishedWait>false</SessionIsFinishedWait>
<SendTimeout></SendTimeout>
<ReceiveTimeout></ReceiveTimeout>
<RetryConnectCount></RetryConnectCount>
<RetryConnectDelay></RetryConnectDelay>
<SleepQueueFull></SleepQueueFull>
<SleepQueueFullCount></SleepQueueFullCount>
<SleepQueueFullQuick></SleepQueueFullQuick>
<SleepQueueFullQuickCount></SleepQueueFullQuickCount>
<SleepCheckOpen></SleepCheckOpen>
<SleepCheckOpenCount></SleepCheckOpenCount>
<SleepCheckOpenQuick></SleepCheckOpenQuick>
<SleepCheckOpenQuickCount></SleepCheckOpenQuickCount>
<DeactivationTimeout></DeactivationTimeout>
<BackToSendingQueueCount></BackToSendingQueueCount>
</IndexerClient>
<ForceBlobSend>false</ForceBlobSend>
<ContinueOnError>true</ContinueOnError>
<DoDelete>true</DoDelete>
<DeleteOnError>false</DeleteOnError>
<DeleteOnEnumerationError>false</DeleteOnEnumerationError>
<AcceptDeleteAll>false</AcceptDeleteAll>
<DeleteMaxPercentThreshold></DeleteMaxPercentThreshold>
<DeleteMaxThreshold></DeleteMaxThreshold>
<DeleteMinRemainingThreshold></DeleteMinRemainingThreshold>
<SaveCollectionState>false</SaveCollectionState>
<IncrementalState>false</IncrementalState>
<RealTimeIncrementalState>true</RealTimeIncrementalState>
<RealTimeInfoOnError>false</RealTimeInfoOnError>
<ConversionProxies></ConversionProxies>
<ConversionPlan></ConversionPlan>
<AddBaseHref>true</AddBaseHref>
<AddMetaContentType>false</AddMetaContentType>
<Throttle></Throttle>
<DocumentClass></DocumentClass>
<ConnectorLanguage></ConnectorLanguage>
<ClearHttpRequestCanonicalizeAsFilePath>true</ClearHttpRequestCanonicalizeAsFilePath>
<IndexZipContent>false</IndexZipContent>
<IndexPdfAttachments>false</IndexPdfAttachments>
<IndexOleAttachments>false</IndexOleAttachments>
<IndexMsgContent>false</IndexMsgContent>
<IndexMsgAttachments>false</IndexMsgAttachments>
<IndexOftContent>false</IndexOftContent>
<IndexOftAttachments>false</IndexOftAttachments>
<IndexEmlContent>false</IndexEmlContent>
<IndexEmlAttachments>false</IndexEmlAttachments>
<IndexPstContent>false</IndexPstContent>
<IndexOstContent>false</IndexOstContent>
<IndexPstMsg>true</IndexPstMsg>
<IndexPstMsgAttachments>true</IndexPstMsgAttachments>
<IndexPstContact>false</IndexPstContact>
<IndexPstCalendar>false</IndexPstCalendar>
<IndexPstNote>false</IndexPstNote>
<IndexPstTask>false</IndexPstTask>
<IndexPstDocument>true</IndexPstDocument>
<PstUseSafeId>false</PstUseSafeId>
<IndexArchivesExtensions></IndexArchivesExtensions>
<ArchiveItemsUseArchiveVersion>false</ArchiveItemsUseArchiveVersion>
<UseShortAttachmentId>false</UseShortAttachmentId>
<UseExtendedExtensionGuesser>false</UseExtendedExtensionGuesser>
<XmpExtensions></XmpExtensions>
<MediaExtensions></MediaExtensions>
<ExiftoolExtensions></ExiftoolExtensions>
<EarlySelectionQuery></EarlySelectionQuery>
<SelectionQuery></SelectionQuery>
<AttachmentSelectionQuery></AttachmentSelectionQuery>
<ArchiveItemSelectionQuery></ArchiveItemSelectionQuery>
<EngineConnectionWait></EngineConnectionWait>
<CalculateGraphBoost>false</CalculateGraphBoost>
<GraphBoostColumn></GraphBoostColumn>
<GraphBoostEMColumn></GraphBoostEMColumn>
<GraphBoostIterations></GraphBoostIterations>
<GraphBoostPower></GraphBoostPower>
<GraphBoostAdd></GraphBoostAdd>
<UseFieldPermissions>false</UseFieldPermissions>
<ShardIndexes></ShardIndexes>
<ShardingStrategy>Balanced</ShardingStrategy>
<ShardSelections></ShardSelections>
<CurationType></CurationType>
<CurationIdPattern></CurationIdPattern>
<RunIndexMiningInIndexer>false</RunIndexMiningInIndexer>
<Namespace></Namespace>
<Json>
<MasterFileToIndex></MasterFileToIndex>
<MasterUrlToIndex>$.url_list.url</MasterUrlToIndex>
<FileToIndexSep></FileToIndexSep>
<FileToIndexUseMasterVersion>false</FileToIndexUseMasterVersion>
<UrlToIndexSep></UrlToIndexSep>
<UrlToIndexUseMasterVersion>false</UrlToIndexUseMasterVersion>
<SubSelect>
<Name>solar</Name>
<LinkedObject>$.data</LinkedObject>
<LinkedObjectRoot>$.solar</LinkedObjectRoot>
<QueryExpression></QueryExpression>
<CacheSize></CacheSize>
<Sep></Sep>
</SubSelect>
<DataSource>
<ToBeIndexed>true</ToBeIndexed>
<Name>url_list</Name>
<Method>GET</Method>
<Source>https://sde-indexing-helper.nasa-impact.net/candidate-urls-api/solar_system_exploration/</Source>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is meant to be a template, should we get rid of specific values like this one?

CarsonDavis marked this conversation as resolved.
Show resolved Hide resolved
<Root>$.results</Root>
<Description></Description>
<WaitBeforeNext></WaitBeforeNext>
<NextPageExpression>https://sde-indexing-helper.nasa-impact.net/candidate-urls-api/solar_system_exploration/?format=json&amp;page={Add(datasource.url_list.pagenumber,1)}</NextPageExpression>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This as well. But maybe we add a variable where "solar_system_exploration" is.

CarsonDavis marked this conversation as resolved.
Show resolved Hide resolved
<EndPageExpression>datasource.url_list.pagenumber=132</EndPageExpression>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 132? Is there a way to add a comment above this line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might need to do a little bit more work to have a reliable way of calculating the actual pagenumber

<ContentType></ContentType>
<Content></Content>
<IsStart>true</IsStart>
<DataSource>
<ToBeIndexed>true</ToBeIndexed>
<Name>data2</Name>
<Method>GET</Method>
<Source>$.data</Source>
<Root>$.Spase</Root>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why $.Spase?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a weird sinequa artifact. it doesn't actually appear in the admin

</DataSource>
CarsonDavis marked this conversation as resolved.
Show resolved Hide resolved
<ConnectorModeCondition>BothModes</ConnectorModeCondition>
<FSIncludedExtensions></FSIncludedExtensions>
<FSExcludedExtensions></FSExcludedExtensions>
<FSIncludedFilenames></FSIncludedFilenames>
<FSExcludedFilenames></FSExcludedFilenames>
<FSIncludedFolders></FSIncludedFolders>
<FSExcludedFolders></FSExcludedFolders>
<Recursive>false</Recursive>
<UrlAccess></UrlAccess>
<ActionOnSelectedItem>AddOrUpdate</ActionOnSelectedItem>
</DataSource>
</Json>
<FSIncludedExtensions></FSIncludedExtensions>
<FSExcludedExtensions></FSExcludedExtensions>
<FSIncludedFilenames></FSIncludedFilenames>
<FSExcludedFilenames></FSExcludedFilenames>
<FSIncludedFolders></FSIncludedFolders>
<FSExcludedFolders></FSExcludedFolders>
<HtmlBuilderType></HtmlBuilderType>
<UrlAccess>
<UseDefaultCredentials>true</UseDefaultCredentials>
<UseDefaultNetworkCredentials>false</UseDefaultNetworkCredentials>
<User></User>
<Password></Password>
<Domain></Domain>
<UseRfc1945>false</UseRfc1945>
<Timeout></Timeout>
<ChangeConnectionGroupNameOnTimeout>false</ChangeConnectionGroupNameOnTimeout>
<AllowAuthenticatedConnectionSharing>true</AllowAuthenticatedConnectionSharing>
<PreAuthenticate>false</PreAuthenticate>
<HttpVersion></HttpVersion>
<KeepAlive>true</KeepAlive>
<SecurityProtocol></SecurityProtocol>
<UserAgent></UserAgent>
<ClientCertificateFile></ClientCertificateFile>
<ClientCertificatePassword></ClientCertificatePassword>
<ClientCertificateStorage></ClientCertificateStorage>
<AllowXPathCookies>false</AllowXPathCookies>
<UseHttpClientForWebRequests>false</UseHttpClientForWebRequests>
<UseBrowserForWebRequests>false</UseBrowserForWebRequests>
<BrowserForWebRequestsReadinessThreshold></BrowserForWebRequestsReadinessThreshold>
<BrowserForWebRequestsInitialDelay></BrowserForWebRequestsInitialDelay>
<BrowserForWebRequestsMaxTotalDelay></BrowserForWebRequestsMaxTotalDelay>
<BrowserForWebRequestsMaxResourcesDelay></BrowserForWebRequestsMaxResourcesDelay>
<BrowserForWebRequestsLogLevel></BrowserForWebRequestsLogLevel>
<WebConnectionPluginName></WebConnectionPluginName>
<PostLoginUrl></PostLoginUrl>
<PostLoginData></PostLoginData>
<GetBeforePostLogin>false</GetBeforePostLogin>
<PostLoginAutoRedirect>true</PostLoginAutoRedirect>
<ReLoginCount></ReLoginCount>
<ReLoginDelay></ReLoginDelay>
<DetectHtmlLoginPattern></DetectHtmlLoginPattern>
<BrowserLogin>
<Activate>false</Activate>
<RemoteDebuggingPort></RemoteDebuggingPort>
<BrowserLogLevel></BrowserLogLevel>
<SuccessCondition></SuccessCondition>
<CookieFilter></CookieFilter>
</BrowserLogin>
<FtpUser></FtpUser>
<FtpPassword></FtpPassword>
<FtpDomain></FtpDomain>
<FtpUseBinary>true</FtpUseBinary>
<FtpUsePassive>true</FtpUsePassive>
<FtpReadWriteTimeout></FtpReadWriteTimeout>
<FtpTimeout></FtpTimeout>
<FtpEnableSsl>false</FtpEnableSsl>
<FileUser></FileUser>
<FilePassword></FilePassword>
<FileDomain></FileDomain>
<FileTimeout></FileTimeout>
<AmazonS3>
<AccessKey></AccessKey>
<SecretKey></SecretKey>
<RegionEndpoint>eu-west-1</RegionEndpoint>
<ServiceURL></ServiceURL>
</AmazonS3>
<ProxyAutoDetect>true</ProxyAutoDetect>
<ProxyAddress></ProxyAddress>
<ProxyBypassOnLocal>true</ProxyBypassOnLocal>
<ProxyServer></ProxyServer>
<ProxyPort>80</ProxyPort>
<ProxyUseDefaultCredentials>true</ProxyUseDefaultCredentials>
<ProxyUseDefaultNetworkCredentials>false</ProxyUseDefaultNetworkCredentials>
<ProxyUser></ProxyUser>
<ProxyPassword></ProxyPassword>
<ProxyDomain></ProxyDomain>
<BrowserForWebRequestsViewportWidth></BrowserForWebRequestsViewportWidth>
<BrowserForWebRequestsViewportHeight></BrowserForWebRequestsViewportHeight>
</UrlAccess>
<WorkerCount>6</WorkerCount>
<MaxWorkerPerHost></MaxWorkerPerHost>
<UrlList></UrlList>
<DynamicUrlList></DynamicUrlList>
<UrlStayInside>true</UrlStayInside>
<UrlRefererStayInside>true</UrlRefererStayInside>
<FollowLinks>true</FollowLinks>
<MaxLevel>100</MaxLevel>
<MaxToIndex>100000</MaxToIndex>
<MaxToCrawl>100000</MaxToCrawl>
<MaxRedirection>10</MaxRedirection>
<CrawlMaxSize>-1</CrawlMaxSize>
<CrawlTimeout>-1</CrawlTimeout>
<NormalizeUrls>true</NormalizeUrls>
<CorrectDomainCookies>false</CorrectDomainCookies>
<IgnoreSessionCookies>false</IgnoreSessionCookies>
<DownloadImages>false</DownloadImages>
<DownloadMedia>false</DownloadMedia>
<DownloadCss>false</DownloadCss>
<DownloadFtp>true</DownloadFtp>
<DownloadFile>true</DownloadFile>
<IndexJs>false</IndexJs>
<FollowJs>true</FollowJs>
<CrawlFlash>true</CrawlFlash>
<IndexEmptyPages>true</IndexEmptyPages>
<CrawlWebsphereSeedlist>true</CrawlWebsphereSeedlist>
<KeepHashFragmentInUrl>false</KeepHashFragmentInUrl>
<RetryCount>1</RetryCount>
<RetryPause>0 ms</RetryPause>
<UseIfModifiedSince>true</UseIfModifiedSince>
<UseIfNoneMatch>no</UseIfNoneMatch>
<AcceptWeakETag>false</AcceptWeakETag>
<ForcedEncoding></ForcedEncoding>
<UseCompression>false</UseCompression>
<UseUnsafeHeaderParsing>false</UseUnsafeHeaderParsing>
<NormalizeSecureSchemesWhenTestingVisited>false</NormalizeSecureSchemesWhenTestingVisited>
<ExactDeduplication>false</ExactDeduplication>
<NearDeduplication>false</NearDeduplication>
<CrawlPauseDelay></CrawlPauseDelay>
<CrawlPauseCount></CrawlPauseCount>
<UseRuntimeAutoRedirect>false</UseRuntimeAutoRedirect>
<RememberDnsFailure>true</RememberDnsFailure>
<RememberConnectFailure>true</RememberConnectFailure>
<RememberTrustFailure>true</RememberTrustFailure>
<RememberProxyNameResolutionFailure>false</RememberProxyNameResolutionFailure>
<UseRobotsNoIndex>false</UseRobotsNoIndex>
<UseRobotsNoFollow>true</UseRobotsNoFollow>
<UseRobotsTxt>false</UseRobotsTxt>
<RobotsTxtCaseSensitive>false</RobotsTxtCaseSensitive>
<LoadRobotsTxtSitemapUrls>false</LoadRobotsTxtSitemapUrls>
<CheckSitemapUrlLastmodInRealtimeMode>false</CheckSitemapUrlLastmodInRealtimeMode>
<AddRobotsTxtAllowUrlsToSeedList>false</AddRobotsTxtAllowUrlsToSeedList>
<UseCanonicalLinks>false</UseCanonicalLinks>
<UseRelNoFollow>false</UseRelNoFollow>
<DownloadSelectionQuery></DownloadSelectionQuery>
<FollowSelectionQuery></FollowSelectionQuery>
<IndexSelectionQuery></IndexSelectionQuery>
<LoadDefaultTags>true</LoadDefaultTags>
<LoadDefaultJsTransforms>true</LoadDefaultJsTransforms>
<Revision>1</Revision>
<visibility></visibility>
<EnableNeuralIndexing>false</EnableNeuralIndexing>
<NeuralSearchSelectionQuery></NeuralSearchSelectionQuery>
<HttpCodesToRetry></HttpCodesToRetry>
<DeleteOnNetworkOrServerError>false</DeleteOnNetworkOrServerError>
<PdfGen>
<ConverterType></ConverterType>
<TimeoutSmall></TimeoutSmall>
<TimeoutMedium></TimeoutMedium>
<TimeoutLarge></TimeoutLarge>
</PdfGen>
<DataSourceGraph>{"class":"go.GraphLinksModel","nodeKeyProperty":":id","nodeCategoryProperty":":type","linkCategoryProperty":":type","linkFromPortIdProperty":":fromPort","linkToPortIdProperty":":toPort","linkFromKeyProperty":":from","linkToKeyProperty":":to","nodeDataArray":[{":id":"start",":type":"Start","Name":"Start"},{":id":"1url_list_sendrequest",":type":"DataSourceSendRequest","Name":"'url_list'\nSend request 'GET'\nhttps:\/\n\/sde-indexing-help\ner.nasa-impact.net\n\/candidate-urls-ap\ni\/nasa_power\/"},{":id":"1url_list_foreach",":type":"DataSourceForEach","Name":"For each item\n$.results\nAdd (or update)"},{":id":"to_indexer_1url_list_foreach",":type":"End","Name":"To indexer"}],"linkDataArray":[{":from":"start",":to":"1url_list_sendrequest",":fromPort":"out",":toPort":"in",":type":"ds_to_ds_link"},{":from":"1url_list_sendrequest",":to":"1url_list_foreach",":fromPort":"out",":toPort":"in",":type":"ds_to_ds_link"},{":from":"1url_list_foreach",":to":"to_indexer_1url_list_foreach",":fromPort":"out",":toPort":"in",":type":"ds_to_ds_link","Name":"To indexer"}]}</DataSourceGraph>
<DisableDifferentialRights>false</DisableDifferentialRights>
<LogPerformanceMetricsPeriod></LogPerformanceMetricsPeriod>
<DocCountLimitOnCollectProperties></DocCountLimitOnCollectProperties>
<FetchCollectionDataDirectlyFromEngine></FetchCollectionDataDirectlyFromEngine>
<Mapping>
<Name>id</Name>
<Value>$.url_list.url</Value>
<Description>id</Description>
<Selection></Selection>
<DefaultValue></DefaultValue>
</Mapping>
<Mapping>
<Name>version</Name>
<Value>$.url_list.hash</Value>
<Description>version</Description>
<Selection></Selection>
<DefaultValue></DefaultValue>
</Mapping>
<Mapping>
<Name>title</Name>
<Value>$.url_list.title</Value>
<Description>Data item title</Description>
<Selection></Selection>
<DefaultValue></DefaultValue>
</Mapping>
</Sinequa>